标签:交换 inf 测试 smi ping img rip 主机名 ima
SW-2配置:
<Huawei>sy 进系统视图 (默认在用户视图)
[Huawei]sysname SW-2 修改主机名为 SW-2
[SW-2]interface Vlanif 1 进vlan 1接口
[SW-2-Vlanif1]ip address 192.168.2.100 24 配置IP地址和子网掩码
测试交换机和交换机之间是否可以通信:
sw-2测试:
[SW-2]ping 192.168.2.100 ping自己的交换机ip地址
PING 192.168.2.100: 56 data bytes, press CTRL_C to break
Reply from 192.168.2.100: bytes=56 Sequence=1 ttl=255 time=30 ms
Reply from 192.168.2.100: bytes=56 Sequence=2 ttl=255 time=1 ms
Reply from 192.168.2.100: bytes=56 Sequence=3 ttl=255 time=10 ms
Reply from 192.168.2.100: bytes=56 Sequence=4 ttl=255 time=1 ms
Reply from 192.168.2.100: bytes=56 Sequence=5 ttl=255 time=10 ms
[SW-2]ping 192.168.1.100 ping对端交换机的IP地址
PING 192.168.1.100: 56 data bytes, press CTRL_C to break
Reply from 192.168.1.100: bytes=56 Sequence=1 ttl=254 time=110 ms
Reply from 192.168.1.100: bytes=56 Sequence=2 ttl=254 time=50 ms
Reply from 192.168.1.100: bytes=56 Sequence=3 ttl=254 time=50 ms
Reply from 192.168.1.100: bytes=56 Sequence=4 ttl=254 time=30 ms
Reply from 192.168.1.100: bytes=56 Sequence=5 ttl=254 time=40 ms
--- 192.168.1.100 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 30/56/110 ms
sw-1测试:
[SW-1]ping 192.168.1.100 ping本地交换机ip地址
PING 192.168.1.100: 56 data bytes, press CTRL_C to break
Reply from 192.168.1.100: bytes=56 Sequence=1 ttl=255 time=60 ms
Reply from 192.168.1.100: bytes=56 Sequence=2 ttl=255 time=1 ms
Reply from 192.168.1.100: bytes=56 Sequence=3 ttl=255 time=1 ms
Reply from 192.168.1.100: bytes=56 Sequence=4 ttl=255 time=30 ms
Reply from 192.168.1.100: bytes=56 Sequence=5 ttl=255 time=10 ms
--- 192.168.1.100 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 1/20/60 ms
[SW-1]ping 192.168.2.100 ping对端IP地址
PING 192.168.2.100: 56 data bytes, press CTRL_C to break
Reply from 192.168.2.100: bytes=56 Sequence=1 ttl=254 time=40 ms
Reply from 192.168.2.100: bytes=56 Sequence=2 ttl=254 time=30 ms
Reply from 192.168.2.100: bytes=56 Sequence=3 ttl=254 time=50 ms
Reply from 192.168.2.100: bytes=56 Sequence=4 ttl=254 time=40 ms
Reply from 192.168.2.100: bytes=56 Sequence=5 ttl=254 time=50 ms
--- 192.168.2.100 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 30/42/50 ms
==============================================================================
标签:交换 inf 测试 smi ping img rip 主机名 ima
原文地址:https://blog.51cto.com/12681944/2468741