实验要求:
Vlan2
、
vlan3
之间可以互访,
vlan4
、
vlan2,vlan4
、
vlan3
之间不可以互访,同时都可以访问
internet
。
配置:
R1#sh run <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
Building configuration...
Current configuration : 456 bytes
!
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname R1
!
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
shutdown
!
interface FastEthernet0/1
ip address 12.1.1.2 255.255.255.0
duplex auto
speed auto
!
interface Vlan1
no ip address
shutdown
!
ip classless
!
!
line con 0
line vty 0 4
login
!
!
end
R0#sh run
Building configuration...
Current configuration : 826 bytes
!
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password