多臺三層交換VLAN間相互通信配置方法
發(fā)布時間:2012-09-20 16:15:30 作者:佚名
我要評論

通過在SW100 來創(chuàng)建VLAN 100 ,sw2 上創(chuàng)建VLAN 200,因為VLAN100和VLAN200因為業(yè)務上的關系,需要兩臺PC之間相互通信,保證不同VLAN之間可以互相訪問。 本實驗將給您詳細闡述實現(xiàn)方法,將用到諸多交換知識點
本實驗需求:
通過在SW100 來創(chuàng)建VLAN 100 ,sw2 上創(chuàng)建VLAN 200,因為VLAN100和VLAN200因為業(yè)務上的關系,需要兩臺PC之間相互通信,保證不同VLAN之間可以互相訪問。 本實驗將給您詳細闡述實現(xiàn)方法,將用到諸多交換知識點。
實驗拓撲:

實驗過程 第一步 SW100基礎配置
SW100>
SW100>enable
SW100#conf t
Enter configuration commands, one per line. End with CNTL/Z.
SW100(config)#no ip do lo
SW100(config)#line con 0
SW100(config-line)#no exec-t
SW100(config-line)#logg syn
SW100(config-line)#exit
SW100(config)#username admin privilege 15 password admin
SW100(config)#line vty 0 15
SW100(config-line)#login local
SW100(config-line)#int f0/24
//配置把二層接口更改為三層接口
SW100(config-if)#no switchport
SW100(config-if)#ip add 12.0.0.1 255.255.255.0
00:02:57: %LINK-3-UPDOWN: Interface FastEthernet0/24, changed state to up
00:02:58: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed state to up
SW100(config-if)#no sh
[html]
第二步 SW200 基礎配置
[code]
Switch>enable
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#host SW200
SW200(config)#no ip do lo
SW200(config)#line con 0
SW200(config-line)#no exec-t
SW200(config-line)#logg syn
SW200(config-line)#exit
SW200(config)#username admin privilege 15 password admin
SW200(config)#line vty 0 15
SW200(config-line)#login local
SW200(config-line)#int f0/24
//把二層端口改變成三層接口
SW200(config-if)#no switchport
SW200(config-if)#ip add 12.0.0.2 255.2
00:03:40: %LINK-3-UPDOWN: Interface FastEthernet0/24, changed state to up
00:03:41: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed state to up
SW200(config-if)#ip add 12.0.0.2 255.255.255.0
SW200(config-if)#no sh
SW200(config-if)#exit
第三步 完整SW1上VLAN配置
//創(chuàng)建VLAN 100
SW100(config)#vlan 100
//給VLAN命名為100
SW100(config-vlan)#name 100
//進入f0/13接口模式下,把f0/13接口劃分到VLAN100
SW100(config-vlan)#int f0/13
SW100(config-if)#switchport mode access
SW100(config-if)#switchport access vlan 100
SW100(config-if)#exit
SW100(config)#int f0/13
//因為此接口連接的終端設備,故可以關閉生成樹的選舉,開啟快速端口特性
SW100(config-if)#spanning-tree portfast
%Warning: portfast should only be enabled on ports connected to a single
host. Connecting hubs, concentrators, switches, bridges, etc... to this
interface when portfast is enabled, can cause temporary bridging loops.
Use with CAUTION
%Portfast has been configured on FastEthernet0/15 but will only
have effect when the interface is in a non-trunking mode.
SW100(config-if)#exit
00:05:40: %SYS-5-CONFIG_I: Configured from console by console
//查看VLAN信息
SW100#show vlan brief
VLAN 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/14, Fa0/15, Fa0/16, Fa0/17
Fa0/18, Fa0/23, Gi0/1, Gi0/2
100 100 active Fa0/13
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup
第四步 完成SW200上VLAN配置
SW200(config)#vlan 200
SW200(config-vlan)#name 200
SW200(config-vlan)#int f0/15
SW200(config-if)#switchport mode access
SW200(config-if)#switchport access vlan 200
SW200(config-if)#exit
SW200(config)#int f0/15
SW200(config-if)#spanning-tree portfast
%Warning: portfast should only be enabled on ports connected to a single
host. Connecting hubs, concentrators, switches, bridges, etc... to this
interface when portfast is enabled, can cause temporary bridging loops.
Use with CAUTION
%Portfast has been configured on FastEthernet0/15 but will only
have effect when the interface is in a non-trunking mode.
SW100#show vlan brief
VLAN 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/14, Fa0/15, Fa0/16, Fa0/17
Fa0/18, Fa0/23, Gi0/1, Gi0/2
200 200 active Fa0/15
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup
第五步 在SW100上創(chuàng)建SVI(交換虛擬接口),并給SW100所連接PC配置IP地址為192.168.0.100,網關192.168.0.1(PC配置IP地址,網關,實驗手冊內容略過)
SW100#conf t
Enter configuration commands, one per line. End with CNTL/Z.
//進入VLAN 100
SW100(config)#int vlan 100
//配置VLAN100,IP地址,這里的IP地址,就是F0/13接口下PC所指的網關地址
SW100(config-if)#ip add 192.168.0.1 255.255.255.0
SW100(config-if)#no sh
SW100(config-if)#end
00:06:09: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan100, changed state to up
//從SW100上測試可以ping通本VLAN下PC
SW100#ping 192.168.0.100
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.0.100, timeout is 2 seconds:
!!!!!
第六步 在SW200上創(chuàng)建SVI(交換機虛擬接口),并給SW200所連接PC配置IP地址為172.16.0.100,網關172.16.0.1(PC配置IP地址,實驗手冊內容略過) SW200(config-if)#exit
SW200(config)#int vlan 200
SW200(config-if)#ip add 172.16.0.1 255.255.255.0
00:04:41: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan200, changed state to up
SW200(config-if)#no sh
SW200(config-if)#end
00:04:52: %SYS-5-CONFIG_I: Configured from console by console
SW200#ping 172.16.0.200
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.0.200, timeout is 2 seconds:
!!!!!
第七步 在SW100 上開啟路由功能,并運行動態(tài)路由協(xié)議
SW100#conf t
Enter configuration commands, one per line. End with CNTL/Z.
//開啟三層交換路由功能,默認是關閉的
SW100(config)#ip routing
SW100(config)#router ospf 100
SW100(config-router)#net 12.0.0.1 0.0.0.255 a 0
SW100(config-router)#net 192.168.0.1 0.0.0.255 a 0
SW100(config-router)#end
SW100#
00:08:11: %SYS-5-CONFIG_I: Configured from console by console
第八步 在SW200 上開啟路由功能,并運行動態(tài)路由協(xié)議
SW200#conf t
Enter configuration commands, one per line. End with CNTL/Z.
//注意:如果沒有開啟路由功能,直接運行路由協(xié)議,將提示如下的錯誤信息
SW200(config)#router ospf 200
IP routing not enabled
SW200(config)#ip routing
SW200(config)#router ospf 200
SW200(config-router)#net 12.0.0.2 0.0.0.255 a 0
SW200(config-router)#net 172.16.0.2 0.0.0.255 a 0
SW200(config-router)#end
00:05:27: %OSPF-5-ADJCHG: Process 200, Nbr 192.168.0.1 on FastEthernet0/24 from LOADING to FULL, Loading Done
//查看路由表,觀察通過OSPF學習到路由條目
SW200#show ip ro
00:05:33: %SYS-5-CONFIG_I: Configured from console by console
SW200#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
172.16.0.0/24 is subnetted, 1 subnets
C 172.16.0.0 is directly connected, Vlan200
O 192.168.0.0/24 [110/2] via 12.0.0.1, 00:00:02, FastEthernet0/24
12.0.0.0/24 is subnetted, 1 subnets
C 12.0.0.0 is directly connected, FastEthernet0/24
//測試IP連通性
SW200#ping 12.0.0.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 12.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms
SW200#ping 192.168.0.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms
SW200#ping 192.168.0.100
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.0.100, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms
SW200#
第九步 在PC2 用ping命令測試到PC1,測試vlan200是否可以和VLAN 100 PING通,測試結果全網ping 通,實驗現(xiàn)象成功(因為PC2是windows 7 簡體中文版本,故ping結果是中文方式顯示的) 測試步驟:開始-運行-cmd C:\>ping 172.16.0.1
正在 Ping 172.16.0.1 具有 32 字節(jié)的數(shù)據(jù):
來自 172.16.0.1 的回復: 字節(jié)=32 時間=1ms TTL=255
來自 172.16.0.1 的回復: 字節(jié)=32 時間=1ms TTL=255
來自 172.16.0.1 的回復: 字節(jié)=32 時間=1ms TTL=255
來自 172.16.0.1 的回復: 字節(jié)=32 時間=1ms TTL=255
172.16.0.1 的 Ping 統(tǒng)計信息:
數(shù)據(jù)包: 已發(fā)送 = 4,已接收 = 4,丟失 = 0 (0% 丟失),
往返行程的估計時間(以毫秒為單位):
最短 = 1ms,最長 = 1ms,平均 = 1ms
Control-C
^C
C:\>ping 12.0.0.2
正在 Ping 12.0.0.2 具有 32 字節(jié)的數(shù)據(jù):
來自 12.0.0.2 的回復: 字節(jié)=32 時間=2ms TTL=255
來自 12.0.0.2 的回復: 字節(jié)=32 時間=2ms TTL=255
來自 12.0.0.2 的回復: 字節(jié)=32 時間=2ms TTL=255
來自 12.0.0.2 的回復: 字節(jié)=32 時間=2ms TTL=255
12.0.0.2 的 Ping 統(tǒng)計信息:
數(shù)據(jù)包: 已發(fā)送 = 4,已接收 = 4,丟失 = 0 (0% 丟失),
往返行程的估計時間(以毫秒為單位):
最短 = 2ms,最長 = 2ms,平均 = 2ms
Control-C
^C
C:\>ping 12.0.0.1
正在 Ping 12.0.0.1 具有 32 字節(jié)的數(shù)據(jù):
來自 12.0.0.1 的回復: 字節(jié)=32 時間=1ms TTL=254
來自 12.0.0.1 的回復: 字節(jié)=32 時間=1ms TTL=254
來自 12.0.0.1 的回復: 字節(jié)=32 時間=1ms TTL=254
來自 12.0.0.1 的回復: 字節(jié)=32 時間=1ms TTL=254
12.0.0.1 的 Ping 統(tǒng)計信息:
數(shù)據(jù)包: 已發(fā)送 = 4,已接收 = 4,丟失 = 0 (0% 丟失),
往返行程的估計時間(以毫秒為單位):
最短 = 1ms,最長 = 1ms,平均 = 1ms
Control-C
^C
C:\>ping 192.168.0.1
正在 Ping 192.168.0.1 具有 32 字節(jié)的數(shù)據(jù):
來自 192.168.0.1 的回復: 字節(jié)=32 時間=1ms TTL=254
來自 192.168.0.1 的回復: 字節(jié)=32 時間=1ms TTL=254
來自 192.168.0.1 的回復: 字節(jié)=32 時間=1ms TTL=254
來自 192.168.0.1 的回復: 字節(jié)=32 時間=1ms TTL=254
192.168.0.1 的 Ping 統(tǒng)計信息:
數(shù)據(jù)包: 已發(fā)送 = 4,已接收 = 4,丟失 = 0 (0% 丟失),
往返行程的估計時間(以毫秒為單位):
最短 = 1ms,最長 = 1ms,平均 = 1ms
Control-C
^C
C:\>ping 192.168.0.200
正在 Ping 192.168.0.200 具有 32 字節(jié)的數(shù)據(jù):
Control-C
^C
C:\>ping 192.168.0.100
正在 Ping 192.168.0.100 具有 32 字節(jié)的數(shù)據(jù):
來自 192.168.0.100 的回復: 字節(jié)=32 時間=1ms TTL=62
來自 192.168.0.100 的回復: 字節(jié)=32 時間=1ms TTL=62
來自 192.168.0.100 的回復: 字節(jié)=32 時間=1ms TTL=62
來自 192.168.0.100 的回復: 字節(jié)=32 時間=1ms TTL=62
192.168.0.100 的 Ping 統(tǒng)計信息:
數(shù)據(jù)包: 已發(fā)送 = 4,已接收 =4,丟失 = 0 (0% 丟失),
往返行程的估計時間(以毫秒為單位):
最短 = 1ms,最長 = 1ms,平均 = 1ms
Control-C
^C
本文出自 “王萬利的博客” 博客
通過在SW100 來創(chuàng)建VLAN 100 ,sw2 上創(chuàng)建VLAN 200,因為VLAN100和VLAN200因為業(yè)務上的關系,需要兩臺PC之間相互通信,保證不同VLAN之間可以互相訪問。 本實驗將給您詳細闡述實現(xiàn)方法,將用到諸多交換知識點。
實驗拓撲:

實驗過程 第一步 SW100基礎配置
復制代碼
代碼如下:SW100>
SW100>enable
SW100#conf t
Enter configuration commands, one per line. End with CNTL/Z.
SW100(config)#no ip do lo
SW100(config)#line con 0
SW100(config-line)#no exec-t
SW100(config-line)#logg syn
SW100(config-line)#exit
SW100(config)#username admin privilege 15 password admin
SW100(config)#line vty 0 15
SW100(config-line)#login local
SW100(config-line)#int f0/24
//配置把二層接口更改為三層接口
SW100(config-if)#no switchport
SW100(config-if)#ip add 12.0.0.1 255.255.255.0
00:02:57: %LINK-3-UPDOWN: Interface FastEthernet0/24, changed state to up
00:02:58: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed state to up
SW100(config-if)#no sh
[html]
第二步 SW200 基礎配置
[code]
Switch>enable
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#host SW200
SW200(config)#no ip do lo
SW200(config)#line con 0
SW200(config-line)#no exec-t
SW200(config-line)#logg syn
SW200(config-line)#exit
SW200(config)#username admin privilege 15 password admin
SW200(config)#line vty 0 15
SW200(config-line)#login local
SW200(config-line)#int f0/24
//把二層端口改變成三層接口
SW200(config-if)#no switchport
SW200(config-if)#ip add 12.0.0.2 255.2
00:03:40: %LINK-3-UPDOWN: Interface FastEthernet0/24, changed state to up
00:03:41: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed state to up
SW200(config-if)#ip add 12.0.0.2 255.255.255.0
SW200(config-if)#no sh
SW200(config-if)#exit
第三步 完整SW1上VLAN配置
復制代碼
代碼如下://創(chuàng)建VLAN 100
SW100(config)#vlan 100
//給VLAN命名為100
SW100(config-vlan)#name 100
//進入f0/13接口模式下,把f0/13接口劃分到VLAN100
SW100(config-vlan)#int f0/13
SW100(config-if)#switchport mode access
SW100(config-if)#switchport access vlan 100
SW100(config-if)#exit
SW100(config)#int f0/13
//因為此接口連接的終端設備,故可以關閉生成樹的選舉,開啟快速端口特性
SW100(config-if)#spanning-tree portfast
%Warning: portfast should only be enabled on ports connected to a single
host. Connecting hubs, concentrators, switches, bridges, etc... to this
interface when portfast is enabled, can cause temporary bridging loops.
Use with CAUTION
%Portfast has been configured on FastEthernet0/15 but will only
have effect when the interface is in a non-trunking mode.
SW100(config-if)#exit
00:05:40: %SYS-5-CONFIG_I: Configured from console by console
//查看VLAN信息
SW100#show vlan brief
VLAN 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/14, Fa0/15, Fa0/16, Fa0/17
Fa0/18, Fa0/23, Gi0/1, Gi0/2
100 100 active Fa0/13
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup
第四步 完成SW200上VLAN配置
復制代碼
代碼如下:SW200(config)#vlan 200
SW200(config-vlan)#name 200
SW200(config-vlan)#int f0/15
SW200(config-if)#switchport mode access
SW200(config-if)#switchport access vlan 200
SW200(config-if)#exit
SW200(config)#int f0/15
SW200(config-if)#spanning-tree portfast
%Warning: portfast should only be enabled on ports connected to a single
host. Connecting hubs, concentrators, switches, bridges, etc... to this
interface when portfast is enabled, can cause temporary bridging loops.
Use with CAUTION
%Portfast has been configured on FastEthernet0/15 but will only
have effect when the interface is in a non-trunking mode.
SW100#show vlan brief
VLAN 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/14, Fa0/15, Fa0/16, Fa0/17
Fa0/18, Fa0/23, Gi0/1, Gi0/2
200 200 active Fa0/15
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup
第五步 在SW100上創(chuàng)建SVI(交換虛擬接口),并給SW100所連接PC配置IP地址為192.168.0.100,網關192.168.0.1(PC配置IP地址,網關,實驗手冊內容略過)
復制代碼
代碼如下:SW100#conf t
Enter configuration commands, one per line. End with CNTL/Z.
//進入VLAN 100
SW100(config)#int vlan 100
//配置VLAN100,IP地址,這里的IP地址,就是F0/13接口下PC所指的網關地址
SW100(config-if)#ip add 192.168.0.1 255.255.255.0
SW100(config-if)#no sh
SW100(config-if)#end
00:06:09: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan100, changed state to up
//從SW100上測試可以ping通本VLAN下PC
SW100#ping 192.168.0.100
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.0.100, timeout is 2 seconds:
!!!!!
第六步 在SW200上創(chuàng)建SVI(交換機虛擬接口),并給SW200所連接PC配置IP地址為172.16.0.100,網關172.16.0.1(PC配置IP地址,實驗手冊內容略過) SW200(config-if)#exit
SW200(config)#int vlan 200
SW200(config-if)#ip add 172.16.0.1 255.255.255.0
00:04:41: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan200, changed state to up
SW200(config-if)#no sh
SW200(config-if)#end
00:04:52: %SYS-5-CONFIG_I: Configured from console by console
SW200#ping 172.16.0.200
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.0.200, timeout is 2 seconds:
!!!!!
第七步 在SW100 上開啟路由功能,并運行動態(tài)路由協(xié)議
復制代碼
代碼如下:SW100#conf t
Enter configuration commands, one per line. End with CNTL/Z.
//開啟三層交換路由功能,默認是關閉的
SW100(config)#ip routing
SW100(config)#router ospf 100
SW100(config-router)#net 12.0.0.1 0.0.0.255 a 0
SW100(config-router)#net 192.168.0.1 0.0.0.255 a 0
SW100(config-router)#end
SW100#
00:08:11: %SYS-5-CONFIG_I: Configured from console by console
第八步 在SW200 上開啟路由功能,并運行動態(tài)路由協(xié)議
復制代碼
代碼如下:SW200#conf t
Enter configuration commands, one per line. End with CNTL/Z.
//注意:如果沒有開啟路由功能,直接運行路由協(xié)議,將提示如下的錯誤信息
SW200(config)#router ospf 200
IP routing not enabled
SW200(config)#ip routing
SW200(config)#router ospf 200
SW200(config-router)#net 12.0.0.2 0.0.0.255 a 0
SW200(config-router)#net 172.16.0.2 0.0.0.255 a 0
SW200(config-router)#end
00:05:27: %OSPF-5-ADJCHG: Process 200, Nbr 192.168.0.1 on FastEthernet0/24 from LOADING to FULL, Loading Done
//查看路由表,觀察通過OSPF學習到路由條目
SW200#show ip ro
00:05:33: %SYS-5-CONFIG_I: Configured from console by console
SW200#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
172.16.0.0/24 is subnetted, 1 subnets
C 172.16.0.0 is directly connected, Vlan200
O 192.168.0.0/24 [110/2] via 12.0.0.1, 00:00:02, FastEthernet0/24
12.0.0.0/24 is subnetted, 1 subnets
C 12.0.0.0 is directly connected, FastEthernet0/24
//測試IP連通性
SW200#ping 12.0.0.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 12.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms
SW200#ping 192.168.0.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms
SW200#ping 192.168.0.100
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.0.100, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms
SW200#
第九步 在PC2 用ping命令測試到PC1,測試vlan200是否可以和VLAN 100 PING通,測試結果全網ping 通,實驗現(xiàn)象成功(因為PC2是windows 7 簡體中文版本,故ping結果是中文方式顯示的) 測試步驟:開始-運行-cmd C:\>ping 172.16.0.1
正在 Ping 172.16.0.1 具有 32 字節(jié)的數(shù)據(jù):
來自 172.16.0.1 的回復: 字節(jié)=32 時間=1ms TTL=255
來自 172.16.0.1 的回復: 字節(jié)=32 時間=1ms TTL=255
來自 172.16.0.1 的回復: 字節(jié)=32 時間=1ms TTL=255
來自 172.16.0.1 的回復: 字節(jié)=32 時間=1ms TTL=255
172.16.0.1 的 Ping 統(tǒng)計信息:
數(shù)據(jù)包: 已發(fā)送 = 4,已接收 = 4,丟失 = 0 (0% 丟失),
往返行程的估計時間(以毫秒為單位):
最短 = 1ms,最長 = 1ms,平均 = 1ms
Control-C
^C
C:\>ping 12.0.0.2
正在 Ping 12.0.0.2 具有 32 字節(jié)的數(shù)據(jù):
來自 12.0.0.2 的回復: 字節(jié)=32 時間=2ms TTL=255
來自 12.0.0.2 的回復: 字節(jié)=32 時間=2ms TTL=255
來自 12.0.0.2 的回復: 字節(jié)=32 時間=2ms TTL=255
來自 12.0.0.2 的回復: 字節(jié)=32 時間=2ms TTL=255
12.0.0.2 的 Ping 統(tǒng)計信息:
數(shù)據(jù)包: 已發(fā)送 = 4,已接收 = 4,丟失 = 0 (0% 丟失),
往返行程的估計時間(以毫秒為單位):
最短 = 2ms,最長 = 2ms,平均 = 2ms
Control-C
^C
C:\>ping 12.0.0.1
正在 Ping 12.0.0.1 具有 32 字節(jié)的數(shù)據(jù):
來自 12.0.0.1 的回復: 字節(jié)=32 時間=1ms TTL=254
來自 12.0.0.1 的回復: 字節(jié)=32 時間=1ms TTL=254
來自 12.0.0.1 的回復: 字節(jié)=32 時間=1ms TTL=254
來自 12.0.0.1 的回復: 字節(jié)=32 時間=1ms TTL=254
12.0.0.1 的 Ping 統(tǒng)計信息:
數(shù)據(jù)包: 已發(fā)送 = 4,已接收 = 4,丟失 = 0 (0% 丟失),
往返行程的估計時間(以毫秒為單位):
最短 = 1ms,最長 = 1ms,平均 = 1ms
Control-C
^C
C:\>ping 192.168.0.1
正在 Ping 192.168.0.1 具有 32 字節(jié)的數(shù)據(jù):
來自 192.168.0.1 的回復: 字節(jié)=32 時間=1ms TTL=254
來自 192.168.0.1 的回復: 字節(jié)=32 時間=1ms TTL=254
來自 192.168.0.1 的回復: 字節(jié)=32 時間=1ms TTL=254
來自 192.168.0.1 的回復: 字節(jié)=32 時間=1ms TTL=254
192.168.0.1 的 Ping 統(tǒng)計信息:
數(shù)據(jù)包: 已發(fā)送 = 4,已接收 = 4,丟失 = 0 (0% 丟失),
往返行程的估計時間(以毫秒為單位):
最短 = 1ms,最長 = 1ms,平均 = 1ms
Control-C
^C
C:\>ping 192.168.0.200
正在 Ping 192.168.0.200 具有 32 字節(jié)的數(shù)據(jù):
Control-C
^C
C:\>ping 192.168.0.100
正在 Ping 192.168.0.100 具有 32 字節(jié)的數(shù)據(jù):
來自 192.168.0.100 的回復: 字節(jié)=32 時間=1ms TTL=62
來自 192.168.0.100 的回復: 字節(jié)=32 時間=1ms TTL=62
來自 192.168.0.100 的回復: 字節(jié)=32 時間=1ms TTL=62
來自 192.168.0.100 的回復: 字節(jié)=32 時間=1ms TTL=62
192.168.0.100 的 Ping 統(tǒng)計信息:
數(shù)據(jù)包: 已發(fā)送 = 4,已接收 =4,丟失 = 0 (0% 丟失),
往返行程的估計時間(以毫秒為單位):
最短 = 1ms,最長 = 1ms,平均 = 1ms
Control-C
^C
本文出自 “王萬利的博客” 博客
相關文章
- 因為市場部和人事部因為業(yè)務上的關系,需要兩臺服務器相互通信,所在還需要在3550上配置VLAN間相互通信2012-09-20
- 這篇文章主要介紹了圖解TCP通信三次握手和四次分手,對正在學習TPC通信的同學會有些幫助,需要的朋友可以參考下2014-09-24
SDN與交換機怎么實現(xiàn)通信 需達成什么“協(xié)議”
怎樣實現(xiàn)SDN與交換機通信?為了解決這個問題,目前有許多供應商正在開發(fā)開放傳輸交換機,它們將充當SDN控制器和光纖傳輸交換機之間的中介,需要的朋友可以參考下2014-09-16- 華為交換機怎么配置Trunk接口實現(xiàn)通信?交換機不配置置Trunk接口VLAN之間的數(shù)據(jù)是不能互通的,Trunk接口能收到所有VLAN的廣播包信息,但是怎么配置Trunk接口?請看下文詳細2015-12-11
- 家里的無線密碼忘記了,自己也無法登錄了,那如何修改無線密碼呢?2013-05-17
- 磊科無線路由器設置還是比較簡單的,相信新手看了這圖文教程也應該馬上就會說原來這么簡單,沒做之前覺得很難。其他的路由器設置也類似,都是比較簡單的?,F(xiàn)在都越來越傻瓜2014-04-03
- 無線路由器怎么限制別人網速,相信這是很多都想知道吧。用同一個路由器,難免就會出現(xiàn)有人看電影占網速的情況,對自己的網速造成很大的影響。今天腳本之家就教大家用路由器2014-07-15
- 家里有一臺臺式電腦是有線上網的,現(xiàn)在自己買了一臺筆記本和無線路由器,想實現(xiàn)筆記本練級無線路由器無線上網,但不知道如何操作,因此求助大俠幫忙指點下實現(xiàn)方法。2012-10-24
- 隨著現(xiàn)在智能化的普及應用,尤其是在智能家庭方面,無線通信技術起著非常重要的作用, EnOcean、Zigbee,Z-Wave和Bluetooth(藍牙)是當前連接智能家居產品的主要手段2016-05-31