本文共 2781 字,大约阅读时间需要 9 分钟。
sys[Huawei]sys r1[r1]int g0/0/0[r1-g0/0/0]ip add 192.168.20.1 24[r1-g0/0/0]int g0/0/1[r1-g0/0/1]ip add 192.168.20.1 24[r1-g0/0/1]quit[r1]dis ip routing-table
2.配置AR1虚拟Loopback
[r1]int LoopBack 0[r1-LoopBack 0]ip add 1.1.1.1 32[r1-LoopBack 0]quit
3.同理配置AR2,AR3
4.以1.1.1.1和3.3.3.3互通为例[r1]ip route-static 3.3.3.3 32 192.168.10.2[r3]ip route-static 1.1.1.1 32 192.168.10.1
5.测试连通性
[r3]png -a 3.3.3.3 1.1.1.1
附实验图:
sys[Huawei]sys sw[sw]vlan 10[sw]vlan 20[sw]vlan 30[sw]dis vlan[sw]int e0/0/1[sw-e0/0/1]port link-type access[sw-e0/0/1]port default vlan 10[sw]int e0/0/2[sw-e0/0/2]port link-type access[sw-e0/0/2]port default vlan 20[sw]int e0/0/4[sw-e0/0/4]port link-type access[sw-e0/0/4]port default vlan 30[sw]int e0/0/3[sw-e0/0/3]port link-type trunk[sw-e0/0/3]port trunk allow-pass vlan all
3.设置AR1
sys[Huawei]sys r1 int g0/0/0.1 ip add 192.168.1.254 24 dot1q termination vid 10 arp broadcast enable dis this int g0/0/0.2 ip add 192.168.2.254 24 dot1q termination vid 20 arp broadcast enable dis this int g0/0/0.3 ip add 192.168.3.254 24 dot1q termination vid 30 arp broadcast enable dis this
4.尝试连接
pc>ping 192.168.2.1
附实验图
sys[Huawei]sys sw1[sw1]vlan 10[sw1]vlan 20[sw1]dis vlan[sw1]int e0/0/1[sw1-e0/0/1]port link-type access[sw1-e0/0/1]port default vlan 10[sw1]int e0/0/2[sw1-e0/0/2]port link-type access[sw1-e0/0/2]port default vlan 20[sw1]int e0/03[sw1-e0/0/4]port link-type access[sw1-e0/0/4]port default vlan 10[sw1]int e0/0/4[sw1-e0/0/3]port link-type trunk[sw1-e0/0/3]port trunk allow-pass vlan all[sw1]int e0/0/5[sw1-e0/0/5]port link-type access[sw1-e0/0/5]port default vlan 20
sys[Huawei]sys sw2[sw2]vlan 10[sw2]vlan 20[sw2]dis vlan[sw2]int e0/0/1[sw2-e0/0/1]port link-type access[sw2-e0/0/1]port default vlan20[sw2]int e0/0/2[sw2-e0/0/2]port link-type access[sw2-e0/0/2]port default vlan 10[sw2]int e0/03[sw2-e0/0/3]port link-type trunk[sw2-e0/0/3]port trunk allow-pass vlan all
3.配置路由器
sys[Huawei]sys r1 int g0/0/0 ip add 192.168.2.254 24 dis this int g0/0/1 ip add 10.0.0.1 8 dis this
sys[Huawei]sys r2 int g0/0/0 ip add 10.0.0.2 8 dis this int g0/0/1 ip add 192.168.10.254 24 dis this
4.设置静态路由
ip route-static 192.168.10.0 24 10.0.0.2 ip route-static 192.168.2.0 24 10.0.0.1
5,尝试连通
ping
附实验图
转载地址:http://qyfd.baihongyu.com/