单臂路由配置-华为ensp

2021/11/15 23:12:34

本文主要是介绍单臂路由配置-华为ensp,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

拓扑:

 LSW1:

vlan batch 10 20
#
interface GigabitEthernet0/0/1
 port link-type trunk
 port trunk allow-pass vlan 10 20
#
interface GigabitEthernet0/0/2
 port link-type access
 port default vlan 10
#
interface GigabitEthernet0/0/3
 port link-type access
 port default vlan 20

AR1:

sysname AR1
#
vlan batch 10 20
#
interface GigabitEthernet0/0/1.10
 dot1q termination vid 10
 ip address 192.168.10.254 255.255.255.0 
 arp broadcast enable
#
interface GigabitEthernet0/0/1.20
 dot1q termination vid 20
 ip address 192.168.20.254 255.255.255.0 
 arp broadcast enable

PC1:

 PC2:

 测试pc1 ping 网关192.168.10.254成功:

 测试pc1 ping PC2 192.168.20.1成功:

 



这篇关于单臂路由配置-华为ensp的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程