ccna-独臂路由VLAN配置实验

 
环境:2620 ROUTER 1    RT
          2950SWITCH    2     SWA     SWB
          PC 4     PC1 PC2 PC3 PC4
SWA FASTETHERNET0/3 -- SWB FASTETHERNET0/3
SWA FASTETHERNET0/12 -- RT FASTETHERNET 0/0
PC1 PC2 --SWA SWA FASTETHERNET0/1 SWA FASTETHERNET0/2
PC3 PC4 -- SWB SWA FASTETHERNET0/1 SWB FASTETHERNET0/2
ccna-独臂路由VLAN配置实验_休闲
 
 
SWITCH1:
Version 12.1
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname SWA
ip name-server 0.0.0.0
!
!
!
ip subnet-zero
!
!
!
!
!
!
spanning-tree extend system-id
!
!
!
!
           interface FastEthernet0/1
switchport access vlan 2
bandwidth 100000
!
interface FastEthernet0/2
switchport access vlan 3
bandwidth 100000
!
interface FastEthernet0/3
switchport mode trunk
bandwidth 100000
!
interface FastEthernet0/4
bandwidth 100000
!
interface FastEthernet0/5
bandwidth 100000
!
interface FastEthernet0/6
bandwidth 100000
!
interface FastEthernet0/7
bandwidth 100000
!
           interface FastEthernet0/8
bandwidth 100000
!
interface FastEthernet0/9
bandwidth 100000
!
interface FastEthernet0/10
bandwidth 100000
!
interface FastEthernet0/11
bandwidth 100000
!
interface FastEthernet0/12
switchport mode trunk
bandwidth 100000
!
vtp Server
vtp domain myyes
interface Vlan 1
no ip address
no ip route-cache
shutdown
vlan 2 name 2
vlan 3 name 3
!
ip classless
no ip http server
!
!
!
line con 0
transport input none
line aux 0
line vty 0 15
!
no scheduler allocate
end
 
 
 
SWITCH2:
Version 12.1
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname SWB
ip name-server 0.0.0.0
!
!
!
ip subnet-zero
!
!
!
!
!
!
spanning-tree extend system-id
!
!
!
!
           interface FastEthernet0/1
switchport access vlan 2
bandwidth 100000
!
interface FastEthernet0/2
switchport access vlan 3
bandwidth 100000
!
interface FastEthernet0/3
switchport mode trunk
bandwidth 100000
!
interface FastEthernet0/4
bandwidth 100000
!
interface FastEthernet0/5
bandwidth 100000
!
interface FastEthernet0/6
bandwidth 100000
!
interface FastEthernet0/7
bandwidth 100000
!
           interface FastEthernet0/8
bandwidth 100000
!
interface FastEthernet0/9
bandwidth 100000
!
interface FastEthernet0/10
bandwidth 100000
!
interface FastEthernet0/11
bandwidth 100000
!
interface FastEthernet0/12
bandwidth 100000
!
vtp Client
vtp domain myyes
interface Vlan 1
no ip address
no ip route-cache
shutdown
vlan 2 name 2
           vlan 3 name 3
!
ip classless
no ip http server
!
!
!
line con 0
transport input none
line aux 0
line vty 0 15
!
no scheduler allocate
end
 
 
 
ROUTER1
Version 12.1
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname RT
!
!
!
ip subnet-zero
!
!
!
!
!
!
!
!
!
!
           interface Serial0
no ip address
no ip directed-broadcast
bandwidth 1544
!
interface Serial1
no ip address
no ip directed-broadcast
bandwidth 1544
!
interface Serial2
no ip address
no ip directed-broadcast
bandwidth 1544
!
interface FastEthernet0/0
no ip address
no ip directed-broadcast
bandwidth 100000
!
interface FastEthernet0/0.1
encapsulation dot1q 2
ip address 192.168.1.254 255.255.255.0
!
           interface FastEthernet0/0.2
encapsulation dot1q 3
ip address 192.168.2.254 255.255.255.0
!
!
ip classless
no ip http server
!
!
!
line con 0
transport input none
line aux 0
line vty 0 4
!
no scheduler allocate
end
 
 
PC机IP设置如图不在发出来了!