〖设置访控列表的情况下〗
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配置:

