在客户已经将端口划分VLAN后怎样通过端口PING 包

来源:百度知道 编辑:UC知道 时间:2024/09/18 04:16:55
市场交换机返回维修,故障为1/0/9端口(9号网口)不通,客户已经将其划分VLAN 并分配ip地址,请问怎样在在 VLAN视图下对其进行PING 包测试
是VLAN配了地址

我们先给VLAN赋予一个虚地址:
s1(config)#int vlan 10
s1(config-if)#ip add 192.168.1.111 255.255.255.0
s1(config-if)#no shut
再通过ping扩展命令测试:
s1#ping
Protocol [ip]:
Target IP address: 192.168.1.1
Repeat count [5]:
Datagram size [100]:
Timeout in seconds [2]:
Extended commands [n]: yes
Source address or interface: 192.168.1.111
Type of service [0]:
Set DF bit in IP header? [no]:
Validate reply data? [no]:
Data pattern [0xABCD]:
Loose, Strict, Record, Timestamp, Verbose[none]:
Sweep range of sizes [n]:
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:
Packet sent with a source address of 192.168.1.111
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 31/31/32 ms
已经通了,看到了吧。

是端口配了IP地址还是VLAN 配了IP地址? 是什么品牌的交换?H3C cisco 还是其他?
========
一些低端的二层交换机确实配不了地址。我所用过的CISCO 4500系列的可以配置为3层口配地址的!

1楼2楼说的已