微笑男孩 发表于 2010-5-15 14:27:14

老三道实验题 我的疑问 希望大家能帮忙

ACL
Answer:
Configuring Access Control List
Corp1>enable
Corp1#configure terminal
Corp1(config)#access-list 123 permit tcp host 192.168.169.3 host 172.22.87.24 eq www
Corp1(config)#access-list 123 deny tcp any host 172.22.87.24 eq www
Corp1(config)#access-list 123 permit ip any any
Corp1(config)#end

Place the ACL to check for packets going outside the interface
Corp1#show ip interface brief
Interface            IP-Address      OK? Method Status                Protocol
FastEthernet0/0      172.22.87.30    YES manual up                  up
FastEthernet0/1      192.168.169.254 YES manual up                  up
Serial0/0/0            198.18.234.66   YES manual up                  up
Corp1(config)#interface fa0/0
Corp1(config-if)#ip access-group 123 out
Corp1(config-if)#end
Corp1#copy run startup-config


那个123是什么 看了好几题 那个数字都在变有100有128 .......不知道这个数字从哪得来

还有额前eq 后面的 www 有的是80这个又是什么数字???我从题目里那里可以得到这些数字信息???还是自己随便写的 小弟不才 希望有人告诉我

微笑男孩 发表于 2010-5-15 15:02:22

兄弟们帮帮忙啊 我学的时间不长 基础比较差 但是马上要考了 搞不懂

crbhx 发表于 2010-5-15 15:11:37

123 那个是自定义的acl编号,只要保持前后一致就行

eq是等于的意思      80 是指 http协议的端口   www大概也是指http协议的意思 ,不过我考的时候用的是80

微笑男孩 发表于 2010-5-15 15:31:04

哦 谢谢LS了就是说 那个123是自己定的
80和www自己选一个就可以是吧

crbhx 发表于 2010-5-15 18:11:33

   是的~
页: [1]
查看完整版本: 老三道实验题 我的疑问 希望大家能帮忙