A部分:实验调试及验证
A.1部分: 连接拓扑图
1. 将S1、S2配置在一个VTP域内,VTP域名itaa,
双交换单臂路由的实现
。2. S1为VTP SERVER,S2为VTP CLIENT。
3. 使用路由器模拟PC。
A.3部分:设备基本配置
S1:
Switch>enable
Switch#configure terminal
Switch(config)#no ip domain-lookup
Switch(config)#hostname S1
S1(config)#enable secret itaa
S1(config)#username S1 privilege 15 secret ccnp
S1(config)#banner motd#
Do not enter this Switch!!!
#
S1(config)#line console 0
S1(config-line)#logging synchronous
S1(config-line)#exec-timeout 0 0
S1(config-line)#password ccna
S1(config-line)#login
S1(config-line)#line vty 0 4
S1(config-line)#password ccie
S1(config-line)#login
S1(config-line)#service password-encryption
S1(config)#vlan 10
S1(config-vlan)#vlan 20
S1(config-vlan)#exit
S1(config)#vtp domain itaa
S1(config)#vtp mode server
S1(config)#interface f0/1
S1(config-if)#switchport mode access
S1(config-if)#switchport access vlan 10
S1(config-if)#interface f0/2
S1(config-if)#switchport mode access
S1(config-if)#switchport access vlan 10
S1(config-if)#interface f0/10
S1(config-if)#switchport mode trunk
S1(config-if)#switchport trunk allowed vlan all
S1(config-if)#interface f0/11
S1(config-if)#switchport mode trunk
S1(config-if)#switchport trunk allowed vlan all
S2:
Switch>enable
Switch#configure terminal
Switch(config)#no ip domain-lookup
Switch(config)#hostname S2
S2(config)#enable secret itaa
S2(config)#username S2 privilege 15 secret itaa
S2(config)#banner motd #
Do not enter this switch!!!
#
S2(config)#line con 0
S2(config-line)#logging synchronous
S2(config-line)#exec-timeout 0 0
S2(config-line)#password ccna
S2(config-line)#login
S2(config-line)#line vty 0 4
S2(config-line)#password ccie
S2(config-line)#login
S2(config-line)#service password-encryption
S2(config)#vtp mode client
S2(config)#interface f0/3
S2(config-if)#switchport mode access
S2(config-if)#switchport access vlan 20
S2(config-if)#interface f0/4
S2(config-if)#switchport mode access
S2(config-if)#switchport access vlan 20
S2(config-if)#interface f0/10
S2(config-if)#switchport mode trunk
S2(config-if)#switchport trunk allowed vlan all
R1:
Router>enable
Router#configure terminal
Router(config)#hostname R1
R1(config)#enable secret itaa
R1(config)#username R1 privilege 15 secret ccnp
R1(config)#banner motd #
Do not enter this router!!!
#
R1(config)#line console 0
R1(config-line)#logging synchronous
R1(config-line)#exec-timeout 0 0
R1(config-line)#password ccna
R1(config-line)#login
R1(config-line)#line vty 0 4
R1(config-line)#password ccie
R1(config-line)#login
R1(config-line)#service password-encryption
R1(config)#interface f0/1
R1(config-if)#no shutdown
R1(config-if)#interface f0/1.10
R1(config-subif)#ip address 10.1.1.254 255.255.255.0
R1(config-subif)#encapsulation dot1q 10
R1(config-subif)#interface f0/1.20
R1(config-subif)#ip address 20.1.1.254 255.255.255.0
R1(config-subif)#encapsulation dot1q 20
PC01:
Router>enable
Router#configure terminal
Router(config)#no ip domain-lookup
Router(config)#hostname PC01
PC01(config)#enable secret itaa
PC01(config)#username PC01 privilege 15 secret ccnp
PC01(config)#banner motd #
Do not enter this PC!!!
#
PC01(config)#line console 0
PC01(config)#logging synchronous
PC01(config)#exec-timeout 0 0
PC01(config)#password ccna
PC01(config)#login
PC01(config)#line vty 0 4
PC01(config)#password ccie
PC01(config)#login
PC01(config)#interface f0/1
PC01(config-if)#no shutdown
PC01(config-if)#description f0/1 is connected to S1 f0/1
PC01(config-if)#ip address 10.1.1.1 255.255.255.0
PC01(config-if)#exi
PC01(config)#ip route 0.0.0.0 0.0.0.0 10.1.1.254
PC02:
Router>enable
Router#configure terminal
Router(config)#no ip domain-lookup
Router(config)#hostname PC02
PC02(config)#enable secret itaa
PC02(config)#username PC02 privilege 15 secret ccnp
PC02(config)#banner motd #
Do not enter this PC!!!
#
PC02(config)#line console 0
PC02(config)#logging synchronous
PC02(config)#exec-timeout 0 0
PC02(config)#password ccna
PC02(config)#login
PC02(config)#line vty 0 4
PC02(config)#password ccie
PC02(config)#login
PC02(config)#interface f0/1
PC02(config-if)#no shutdown
PC02(config-if)#description f0/1 is connected to S1 f0/2
PC02(config-if)#ip address 10.1.1.2 255.255.255.0
PC02(config-if)#exi
PC02(config)#ip route 0.0.0.0 0.0.0.0 10.1.1.254
PC03:
Router>enable
Router#configure terminal
Router(config)#no ip domain-lookup
Router(config)#hostname PC03
PC03(config)#enable secret itaa
PC03(config)#username PC03 privilege 15 secret ccnp
PC03(config)#banner motd #
Do not enter this PC!!!
#
PC03(config)#line console 0
PC03(config)#logging synchronous
PC03(config)#exec-timeout 0 0
PC03(config)#password ccna
PC03(config)#login
PC03(config)#line vty 0 4
PC03(config)#password ccie
PC03(config)#login
PC03(config)#interface f0/1
PC03(config-if)#no shutdown
PC03(config-if)#description f0/1 is connected to S2 f0/3
PC03(config-if)#ip address 20.1.1.3 255.255.255.0
PC03(config-if)#exi
PC03(config)#ip route 0.0.0.0 0.0.0.0 20.1.1.254
PC04:
Router>enable
Router#configure terminal
Router(config)#no ip domain-lookup
Router(config)#hostname PC04
PC04(config)#enable secret itaa
PC04(config)#username PC04 privilege 15 secret ccnp
PC04(config)#banner motd #
Do not enter this PC!!!
#
PC04(config)#line console 0
PC04(config)#logging synchronous
PC04(config)#exec-timeout 0 0
PC04(config)#password ccna