手机版
你好,游客 登录 注册
背景:
阅读新闻

GNS3上实现基于Ftp和www服务的扩展访问列表IP ACL

[日期:2013-03-19] 来源:Linux社区  作者:tywangpanpan [字体:大 中 小]

〖设置访控列表的情况下〗

R1的配置信息:

Router#show runn

Building configuration...

Current configuration : 1094 bytes

!

version 12.4

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname Router

!

boot-start-marker

boot-end-marker

!

!

no aaa new-model

memory-size iomem 5

!

!

ip cef

!

!

interface FastEthernet0/0

ip address 172.16.1.1 255.255.255.0

duplex auto

speed auto

!

interface Serial1/0

ip address 172.16.3.1 255.255.255.0

ip access-group 100 out

serial restart-delay 0

clock rate 64000

!

interface Serial1/1

no ip address

shutdown

serial restart-delay 0

!

interface Serial1/2

no ip address

shutdown

serial restart-delay 0

!

interface Serial1/3

no ip address

shutdown

serial restart-delay 0

!

ip http server

no ip http secure-server

!

ip route 172.16.4.0 255.255.255.0 Serial1/0

!

!

access-list 100 deny  tcp 172.16.1.0 0.0.0.255 host 172.16.4.2 eq www

access-list 100 permit tcp 172.16.1.0 0.0.0.255 host 172.16.4.2 eq ftp

access-list 100 permit tcp 172.16.1.0 0.0.0.255 host 172.16.4.2 eq ftp-data

!

!

control-plane

!

line con 0

line aux 0

line vty 0 4

!

!

end

虚拟主机C1上的模式设置:

虚拟主机C1上的IP设置:

主机上的VMnet1虚拟网卡的IP配置:

虚拟主机C2上的模式设置:

虚拟主机C2上的IP设置:

主机上的VMnet2虚拟网卡的IP配置:

linux
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款