| 场景 | 互通割接验收、不通排查 |
|---|---|
| 适用 | 三层交换机 |
| 命令族 | display ip interface brief + display ip routing-table / show ip interface brief + show ip route / display ip interface brief + display ip routing-table |
华为 VRP
华为 VRP
<Huawei> display ip interface brief | include Vlanif ! 网关是否 up
<Huawei> display ip routing-table | include 192.168.10 ! 直连路由
<Huawei> display vlan 10 ! 成员端口是否存在 up
<Huawei> ping -a 192.168.10.1 192.168.20.2 ! 指定源验证思科 IOS
思科 IOS
SW-CORE-01# show ip interface brief | include Vlan
SW-CORE-01# show ip route | include 192.168.10
SW-CORE-01# show vlan id 10
SW-CORE-01# ping 192.168.20.2 source vlan 10H3C Comware
H3C Comware
<H3C> display ip interface brief | include Vlan
<H3C> display ip routing-table | include 192.168.10
<H3C> display vlan 10
<H3C> ping -a 192.168.10.1 192.168.20.2三级定位:① 两侧 VLAN 是否都有 up 成员端口(VLANIF/SVI 才会 up)② 网关 IP 是否在同一网段且掩码正确 ③ 终端网关是否指向本 VLANIF 地址。三层交换机内部直连路由自动生成,无需动态协议。