1、关于vlan划分之noiprouting关于vlan划分之no-ip-routing在SW1上配置 VTP 、trunk、vlan RouterenRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#no ip do loRouter(config)#line con 0Router(config-line)#no exec-tRouter(config-line)#logg synRouter(config-line)#exiRouter(config)#host sw
2、1sw1(config)#no ip routingsw1(config)#Zsw1#vlan dasw1(vlan)#vtp domain vChanging VTP domain name from NULL to vsw1(vlan)#vtp server Device mode already VTP SERVER.sw1(vlan)#exiAPPLY completed.Exiting.sw1#conf tEnter configuration commands, one per line. End with CNTL/Z.sw1(config)#int f0/0sw1(config
3、-if)#swi mo trsw1(config-if)#exisw1(config)#Zsw1#vlan dasw1(vlan)#vlan 2 name 1VLAN 2 added: Name: 1sw1(vlan)#vlan 3 name 3VLAN 3 added: Name: 3sw1(vlan)#exiAPPLY completed.Exiting.sw1#conf tEnter configuration commands, one per line. End with CNTL/Z.sw1(config)#int f0/1sw1(config-if)#swi mo accsw1(
4、config-if)#swi acc vlan 2sw1(config)#int f0/2sw1(config-if)#swi mo accsw1(config-if)#swi acc vlan 3sw1(config-if)#exisw1(config)#Zsw1#show *Mar 1 00:19:21.967: %SYS-5-CONFIG_I: Configured from console by consolesw1#show vlan-sVLAN Name Status Ports- - - -1 default active Fa0/0, Fa0/3, Fa0/4, Fa0/5 F
5、a0/6, Fa0/7, Fa0/8, Fa0/9 Fa0/10, Fa0/11, Fa0/12, Fa0/13 Fa0/14, Fa0/152 2 active Fa0/13 3 active Fa0/21002 fddi-default active 1003 token-ring-default active 1004 fddinet-default active 1005 trnet-default active VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2- - - - - - - - - -
6、 -1 enet 100001 1500 - - - - - 1002 10032 enet 100002 1500 - - - - - 0 0 3 enet 100003 1500 - - - - - 0 0 1002 fddi 101002 1500 - - - - - 1 10031003 tr 101003 1500 1005 0 - - srb 1 10021004 fdnet 101004 1500 - - 1 ibm - 0 0 1005 trnet 101005 1500 - - 1 ibm - 0 0 sw1#conf tEnter configuration command
7、s, one per line. End with CNTL/Z.sw1(config)#int range f0/0 - 4sw1(config-if-range)#no shusw1(config-if-range)#在SW2上配置 VTP 、trunk、vlanRouterenRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#no ip do loRouter(config)#line con 0Router(config-line)#no exec-tRoute
8、r(config-line)#logg synRouter(config-line)#exiRouter(config)#host sw2 sw1(config)#no ip routingsw2(config)#Zsw2#vlan dasw2(vlan)#vtp domain vChanging VTP domain name from NULL to vsw2(vlan)#vtp client Setting device to VTP CLIENT mode.sw2(vlan)#exiIn CLIENT state, no apply attempted.Exiting.sw2#conf
9、 tEnter configuration commands, one per line. End with CNTL/Z.sw2(config)#int f0/0sw2(config-if)#swi mo trsw2(config-if)#exisw2(config)#int f0/1sw2(config-if)#Zsw2#*Mar 1 00:19:36.163: %SYS-5-CONFIG_I: Configured from console by consolesw2#conf tEnter configuration commands, one per line. End with C
10、NTL/Z.sw2(config)#int range f0/0 - 3sw2(config-if-range)#no shusw2(config-if-range)#Zsw2#show vlan-sVLAN Name Status Ports- - - -1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4 Fa0/5, Fa0/6, Fa0/7, Fa0/8 Fa0/9, Fa0/10, Fa0/11, Fa0/12 Fa0/13, Fa0/14, Fa0/152 2 active 3 3 active 1002 fddi-default active 1
11、003 token-ring-default active 1004 fddinet-default active 1005 trnet-default active VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2- - - - - - - - - - -1 enet 100001 1500 - - - - - 1002 10032 enet 100002 1500 - - - - - 0 0 3 enet 100003 1500 - - - - - 0 0 1002 fddi 101002 1500 -
12、 0 - - - 1 10031003 tr 101003 1500 1005 0 - - srb 1 10021004 fdnet 101004 1500 - - 1 ibm - 0 0 1005 trnet 101005 1500 - - 1 ibm - 0 0 sw2#conf tEnter configuration commands, one per line. End with CNTL/Z.sw2(config)#int f0/1sw2(config-if)#swi mo accsw2(config-if)#swi acc vlan 2sw2(config-if)#int f0/
13、2sw2(config-if)#swi mo accsw2(config-if)#swi acc vlan 3sw2(config-if)#exisw2#show vlan-s*Mar 1 00:21:08.103: %SYS-5-CONFIG_I: Configured from console by consolesw2#show vlan-sVLAN Name Status Ports- - - -1 default active Fa0/3, Fa0/4, Fa0/5, Fa0/6 Fa0/7, Fa0/8, Fa0/9, Fa0/10 Fa0/11, Fa0/12, Fa0/13,
14、Fa0/14 Fa0/152 2 active Fa0/13 3 active Fa0/21002 fddi-default active 1003 token-ring-default active 1004 fddinet-default active 1005 trnet-default active VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2- - - - - - - - - - -1 enet 100001 1500 - - - - - 1002 10032 enet 100002 1500
15、 - - - - - 0 0 3 enet 100003 1500 - - - - - 0 0 1002 fddi 101002 1500 - 0 - - - 1 10031003 tr 101003 1500 1005 0 - - srb 1 10021004 fdnet 101004 1500 - - 1 ibm - 0 0 1005 trnet 101005 1500 - - 1 ibm - 0 0 sw2#配置PCPC1RouterenRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Rou
16、ter(config)#no ip do loRouter(config)#line con 0Router(config-line)#no exec-tRouter(config-line)#logg synRouter(config-line)#exiRouter(config)#host pc1pc1(config)#int f0/0pc1(config-if)#no shupc1(config-if)#ip add 11.1.1.1 255.255.255.0pc1(config-if)#exipc1(config)#Zpc1#ping 11.1.3.1Type escape sequ
17、ence to abort.Sending 5, 100-byte ICMP Echos to 11.1.3.1, timeout is 2 seconds:.Success rate is 0 percent (0/5)pc1#conf tEnter configuration commands, one per line. End with CNTL/Z.PC2RouterenRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#no ip do loRouter(co
18、nfig)#line con 0Router(config-line)#no exec-tRouter(config-line)#logg synRouter(config-line)#exiRouter(config)#host pc2pc2(config)#int f0/0pc2(config-if)#no shupc2(config-if)#ip add 11.1.2.1 255.255.255.0pc2(config-if)#exiPC3RouterenRouter#conf tEnter configuration commands, one per line. End with C
19、NTL/Z.Router(config)#no ip do loRouter(config)#line con 0Router(config-line)#no exec-tRouter(config-line)#logg synRouter(config-line)#exiRouter(config)#host pc3pc3(config)#int f0/0pc3(config-if)#no shupc3(config-if)#ip add 11.*Mar 1 00:22:41.059: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed st
20、ate to up*Mar 1 00:22:42.059: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to uppc3(config-if)#ip add 11.1.3.1 255.255.255.0pc3(config-if)#exiPC4RouterenRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#no ip do loRouter(config)
21、#line con 0Router(config-line)#no exec-tRouter(config-line)#logg synRouter(config-line)#exiRouter(config)#host pc4pc4(config)#int f0/0pc4(config-if)#no shupc4(config-if)#ip add 11.1.4.1 255.255.255.0pc4(config-if)#exipc4(config)#Z同一VLAN下不同网段pc4#ping 11.1.2.1Type escape sequence to abort.Sending 5, 1
22、00-byte ICMP Echos to 11.1.2.1, timeout is 2 seconds:.Success rate is 0 percent (0/5)将PC1的IP改为和pc3同一网段pc1(config)#int f0/0pc1(config-if)#ip add 11.1.3.2 255.255.255.0pc1(config-if)#exipc1(config)#Zpc1#ping 11.1.3.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 11.1.3.1, timeout is 2
23、 seconds:.!Success rate is 80 percent (4/5), round-trip min/avg/max = 8/33/60 mspc1#在PC2上开启no ip routingpc2(config)#no ip routingpc2(config)#Zpc2#ping 11.1.4.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 11.1.4.1, timeout is 2 seconds:.Success rate is 0 percent (0/5)在PC4上开启no ip r
24、outing 将IP改为任意pc4(config)#no ip routingpc4(config)#Zpc4#*Mar 1 00:26:00.219: %SYS-5-CONFIG_I: Configured from console by consolepc4#conf tEnter configuration commands, one per line. End with CNTL/Z.pc4(config)#int f0/0pc4(config-if)#ip add 192.168.10.12 255.255.0.0pc4(config-if)#exipc4(config)#Zpc4#ping *Mar 1 00:28:03.115: %SYS-5-CONFIG_I: Configured from console by consolepc4#ping 11.1.2.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 11.1.2.1, timeout is 2 seconds:.!Success rate is 80 percent (4/5), round-trip min/avg/max = 12/19/24 mspc4#结论:
copyright@ 2008-2023 冰点文库 网站版权所有
经营许可证编号:鄂ICP备19020893号-2