查看三层虚拟接口地址
5.1.2、在合法路由器AR1上配置5.1.2.1、配置与交换机相连的接口IP地址[SW1]dis ip int brief
<Huawei>sys
[Huawei]sys AR1
[AR1]int g0/0/0
5.1.3在非法的路由器AR2上配置5.1.3.1、配置接口IP地址为192.168.10.2 24[AR1-GigabitEthernet0/0/0]ip address 10.10.1.1 24
<Huawei>sys
[Huawei]sys AR2
[AR2]int g0/0/2
5.1.4测试直连路由[AR2-GigabitEthernet0/0/2]ip address 192.168.10.2 24
合法路由器AR1到三层交换机vlan20的网关vlanif 20
<AR1>ping 10.10.1.2
非法路由器AR2到三层交换机vlan10的网关vlanif 10
5.2、配置静态路由,使底层链路相通5.2.1在合法路由器AR1上配置5.2.1.1、配置一条静态路由,到192.168.10.0网段。下一跳是vlan10的网关地址<AR2>ping 192.168.10.254
5.2.2查看AR1的路由表[AR1]ip route-static 192.168.10.0 24 10.10.1.2
<AR1>dis ip routing-table