1、三层交换 Word 文档 2R1RouterenRouter#config tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#no ip do lo Router(config)#lin con 0Router(config-line)#exec-t 0 0Router(config-line)#logg syn Router(config-line)#exitRouter(config)#hostname dwr1dwr1(config)#interdwr1(config)#interfac
2、e f0/0dwr1(config-if)#ip addwr1(config-if)#ip address 10.10.10.2 255.255.255.0dwr1(config-if)#no shutdwr1(config-if)#no shutdown dwr1(config-if)#*Mar 1 00:17:59.527: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up*Mar 1 00:18:00.527: %LINEPROTO-5-UPDOWN: Line protocol on Interface Fas
3、tEthernet0/0, changed state to updwr1(config-if)#exitdwr1(config)#ip route 0.0.0.0 0.0.0.0 10.10.10.1dwr1(config)#dwr1(config)#dwr1(config)#interdwr1(config)#interface f1/0dwr1(config-if)#ip adddwr1(config-if)#ip address 172.16.1.1 255.255.255.0 dwr1(config-if)#no shutdwr1(config-if)#no shutdown dwr
4、1(config-if)#*Mar 1 00:18:42.503: %LINK-3-UPDOWN: Interface FastEthernet1/0, changed state to up*Mar 1 00:18:43.503: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/0, changed state to updwr1(config-if)#exitdwr1(config)#3sw1RouterenRouter#config tEnter configuration commands, one per l
5、ine. End with CNTL/Z.Router(config)#no ip do lo Router(config)#lin con 0Router(config-line)#exec-t 0 0Router(config-line)#logg syn Router(config-line)#exitRouter(config)#hostname sw-3sw-3(config)#hostname dw3dwsw1 dw3dwsw1(config)#*Mar 1 00:03:59.787: %SPANTREE-7-RECV_1Q_NON_TRUNK: Received 802.1Q B
6、PDU on non trunk FastEthernet0/0 VLAN1.*Mar 1 00:03:59.787: %SPANTREE-7-BLOCK_PORT_TYPE: Blocking FastEthernet0/0 on VLAN1. Inconsistent port type.*Mar 1 00:03:59.835: %SPANTREE-7-RECV_1Q_NON_TRUNK: Received 802.1Q BPDU on non trunk FastEthernet0/1 VLAN1.*Mar 1 00:03:59.835: %SPANTREE-7-BLOCK_PORT_T
7、YPE: Blocking FastEthernet0/1 on VLAN1. Inconsistent port type.dw3dwsw1(config)#interdw3dwsw1(config)#interface rdw3dwsw1(config)#interface range f0/0 - 4dw3dwsw1(config-if-range)#swdw3dwsw1(config-if-range)#switchport modw3dwsw1(config-if-range)#switchport mode tdw3dwsw1(config-if-range)#switchport
8、 mode trunk dw3dwsw1(config-if-range)#exitdw3dwsw1(config)#*Mar 1 00:05:02.619: %SPANTREE-2-UNBLOCK_CONSIST_PORT: Unblocking FastEthernet0/1 on VLAN1. Port consistency restored. PVST+:Inconsistency timer expired. inconsistency 0 cleared for FastEthernet0/1*Mar 1 00:05:02.695: %DTP-5-TRUNKPORTON: Por
9、t Fa0/0 has become dot1q trunk*Mar 1 00:05:03.551: %DTP-5-TRUNKPORTON: Port Fa0/1-3 has become dot1q trunkdw3dwsw1(config)#*Mar 1 00:05:04.267: %DTP-5-TRUNKPORTON: Port Fa0/4 has become dot1q trunkdw3dwsw1(config)#dw3dwsw1(config)#dw3dwsw1(config)#exitdw3dwsw1#v*Mar 1 00:05:16.187: %SYS-5-CONFIG_I:
10、Configured from console by consoledw3dwsw1#vlan ddw3dwsw1(vlan)#vtp ddw3dwsw1(vlan)#vtp domain 123Changing VTP domain name from NULL to 123dw3dwsw1(vlan)#vtp cldw3dwsw1(vlan)#vtp client Setting device to VTP CLIENT mode.dw3dwsw1(vlan)#exitIn CLIENT state, no apply attempted.Exiting.dw3dwsw1#dw3dwsw1
11、#config terEnter configuration commands, one per line. End with CNTL/Z.dw3dwsw1(config)#interdw3dwsw1(config)#interface vlan 10dw3dwsw1(config-if)#ip ad*Mar 1 00:10:51.767: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan10, changed state to updw3dwsw1(config-if)#ip adddw3dwsw1(config-if)#ip add
12、ress 192.168.10.2 255.255.255.0dw3dwsw1(config-if)#no shutdw3dwsw1(config-if)#no shutdown dw3dwsw1(config-if)#exitdw3dwsw1(config)#interdw3dwsw1(config)#interface vlan 20dw3dwsw1(config-if)#ip *Mar 1 00:11:12.059: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan20, changed state to updw3dwsw1(co
13、nfig-if)#ip adddw3dwsw1(config-if)#ip adddw3dwsw1(config-if)#exit dw3dwsw1(config)#interdw3dwsw1(config)#interface vlan 20dw3dwsw1(config-if)#ip adddw3dwsw1(config-if)#ip address 192.168.20.2 255.255.255.0dw3dwsw1(config-if)#no shutdw3dwsw1(config-if)#no shutdown dw3dwsw1(config-if)#exitdw3dwsw1(con
14、fig)#interdw3dwsw1(config)#interface vlan 30dw3dwsw1(config-if)#ip adddw3dwsw1(config-if)#ip address 19*Mar 1 00:11:46.579: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan30, changed state to updw3dwsw1(config-if)#ip address 192.168.30.2 255.255.255.0dw3dwsw1(config-if)#no shutdw3dwsw1(config-i
15、f)#no shutdown dw3dwsw1(config-if)#exir % Invalid input detected at marker.dw3dwsw1(config-if)#exitdw3dwsw1(config)#ip routing dw3dwsw1(config)#dw3dwsw1(config)#dw3dwsw1(config)#dw3dwsw1(config)#interdw3dwsw1(config)#interface rdw3dwsw1(config)#interface range f0/0 - 1dw3dwsw1(config-if-range)#spand
16、w3dwsw1(config-if-range)#spanning-tree vlan 10 rdw3dwsw1(config-if-range)#spanning-tree vlan 10 rodw3dwsw1(config-if-range)#exit dw3dwsw1(config)#spandw3dwsw1(config)#spanning-tree vlan 10 rdw3dwsw1(config)#spanning-tree vlan 10 root sdw3dwsw1(config)#spanning-tree vlan 10 root secondary VLAN 10 bri
17、dge priority set to 16384 VLAN 10 bridge max aging time unchanged at 20 VLAN 10 bridge hello time unchanged at 2 VLAN 10 bridge forward delay unchanged at 15dw3dwsw1(config)#spandw3dwsw1(config)#spanning-tree vdw3dwsw1(config)#spanning-tree vlan 20 rdw3dwsw1(config)#spanning-tree vlan 20 root sdw3dw
18、sw1(config)#spanning-tree vlan 20 root secondary VLAN 20 bridge priority set to 16384 VLAN 20 bridge max aging time unchanged at 20 VLAN 20 bridge hello time unchanged at 2 VLAN 20 bridge forward delay unchanged at 15dw3dwsw1(config)#spandw3dwsw1(config)#spanning-tree vlan dw3dwsw1(config)#spanning-
19、tree vlan 30 rdw3dwsw1(config)#spanning-tree vlan 30 root pdw3dwsw1(config)#spanning-tree vlan 30 root primary VLAN 30 bridge priority set to 8192 VLAN 30 bridge max aging time unchanged at 20 VLAN 30 bridge hello time unchanged at 2 VLAN 30 bridge forward delay unchanged at 15dw3dwsw1(config)#inter
20、dw3dwsw1(config)#interface rdw3dwsw1(config)#interface range f0/0 - 1dw3dwsw1(config-if-range)#chdw3dwsw1(config-if-range)#channel-group 1 mo dw3dwsw1(config-if-range)#channel-group 1 mode on Creating a port-channel interface Port-channel1 *Mar 1 00:14:57.287: %LINK-3-UPDOWN: Interface Port-channel1
21、, changed state to up*Mar 1 00:14:58.287: %LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel1, changed state to downdw3dwsw1(config-if-range)#*Mar 1 00:14:58.667: %EC-5-BUNDLE: Interface Fa0/0 joined port-channel Po1*Mar 1 00:14:59.479: %EC-5-BUNDLE: Interface Fa0/1 joined port-channel Po1
22、dw3dwsw1(config-if-range)#*Mar 1 00:15:00.691: %LINK-3-UPDOWN: Interface Port-channel1, changed state to updw3dwsw1(config-if-range)#dw3dwsw1(config-if-range)#dw3dwsw1(config-if-range)#exit*Mar 1 00:15:03.691: %LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel1, changed state to updw3dwsw1
23、(config-if-range)#exitdw3dwsw1(config)#dw3dwsw1(config)#dw3dwsw1(config)#dw3dwsw1(config)#3dwsw2Router#config tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#no ip do lo Router(config)#lin con 0Router(config-line)#exec-t 0 0Router(config-line)#logg syn Router(config-line)
24、#exitRouter(config)#hostname dw3dwsw2dw3dwsw2(config)#dw3dwsw2(config)#dw3dwsw2(config)#interdw3dwsw2(config)#interface rdw3dwsw2(config)#interface range f0/0 - 4dw3dwsw2(config-if-range)#sdw3dwsw2(config-if-range)#smodw3dwsw2(config-if-range)#smotdw3dwsw2(config-if-range)#sw dw3dwsw2(config-if-rang
25、e)#switchport miodw3dwsw2(config-if-range)#switchport mo dw3dwsw2(config-if-range)#switchport mode tdw3dwsw2(config-if-range)#switchport mode trunk dw3dwsw2(config-if-range)#exitdw3dwsw2(config)#r*Mar 1 00:03:51.099: %DTP-5-TRUNKPORTON: Port Fa0/0-4 has become dot1q trunkdw3dwsw2(config)#exitdw3dwsw
26、2#*Mar 1 00:04:00.683: %SYS-5-CONFIG_I: Configured from console by consoledw3dwsw2#vtp ddw3dwsw2#vlan ddw3dwsw2(vlan)#vtp ddw3dwsw2(vlan)#vtp domain 123Changing VTP domain name from NULL to 123dw3dwsw2(vlan)#vtp 123 % Invalid input detected at marker.dw3dwsw2(vlan)#vtp serverDevice mode already VTP
27、SERVER.dw3dwsw2(vlan)#vlan 10VLAN 10 added: Name: VLAN0010dw3dwsw2(vlan)#vlan 20VLAN 20 added: Name: VLAN0020dw3dwsw2(vlan)#vlan 30VLAN 30 added: Name: VLAN0030dw3dwsw2(vlan)#exitAPPLY completed.Exiting.dw3dwsw2#dw3dwsw2#dw3dwsw2#config terEnter configuration commands, one per line. End with CNTL/Z.
28、dw3dwsw2(config)#interdw3dwsw2(config)#interface vlan 10dw3dwsw2(config-if)#ip a*Mar 1 00:08:36.851: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan10, changed state to updw3dwsw2(config-if)#ip adddw3dwsw2(config-if)#ip address 192.168.10.1 255.255.255.0 dw3dwsw2(config-if)#no shutdw3dwsw2(conf
29、ig-if)#no shutdown dw3dwsw2(config-if)#exitdw3dwsw2(config)#interdw3dwsw2(config)#interface vlan 20dw3dwsw2(config-if)#ip adddw3dwsw2(config-if)#ip address *Mar 1 00:09:01.971: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan20, changed state to updw3dwsw2(config-if)#ip address 192.168.20.1 255.
30、255.255.0dw3dwsw2(config-if)#no shutdw3dwsw2(config-if)#no shutdown dw3dwsw2(config-if)#exitr % Invalid input detected at marker.dw3dwsw2(config-if)#exit dw3dwsw2(config)#interdw3dwsw2(config)#interface vlan 30dw3dwsw2(config-if)#ip ad*Mar 1 00:09:26.203: %LINEPROTO-5-UPDOWN: Line protocol on Interf
31、ace Vlan30, changed state to updw3dwsw2(config-if)#ip addw3dwsw2(config-if)#ip address 192.168.30.1 255.255.255.0dw3dwsw2(config-if)#no shutdw3dwsw2(config-if)#no shutdown dw3dwsw2(config-if)#exitdw3dwsw2(config)#ip routing dw3dwsw2(config)#dw3dwsw2(config)#exitdw3dwsw2#*Mar 1 00:10:04.151: %SYS-5-CONFIG_I: Configured from console by consoledw3dwsw2#show vlan-sVLAN Name Status Ports- - -
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1