这节我们来学习华为eNSP模拟器 单臂路由配置,先搭建拓扑图,如下:
然后根据上面所示IP进行相应设置。
接下来我们配置AR1路由器,命令如下:
<Huawei>sys
[Huawei]sysname R1
[R1]int g0/0/0.10
[R1-GigabitEthernet0/0/0.10]ip add 192.168.1.254 24
[R1-GigabitEthernet0/0/0.10]dot1q termination vid 10
[R1-GigabitEthernet0/0/0.10]arp broadcast enable
[R1]int g0/0/0.20
[R1-GigabitEthernet0/0/0.20]ip add 192.168.2.254 24
[R1-GigabitEthernet0/0/0.20]dot1q termination vid 20
[R1-GigabitEthernet0/0/0.20]arp broadcast enable
<R1>sa
再配置交换机LSW1,命令如下:
<Huawei>sys
[Huawei]sysname switch
[switch]int g0/0/1
[switch-GigabitEthernet0/0/1]port link-type trunk
[switch-GigabitEthernet0/0/1]port trunk pvid vlan 10
[switch-GigabitEthernet0/0/1]port trunk allow-pass vlan all
[switch]int g0/0/2
[switch-GigabitEthernet0/0/2]port link-type trunk
[switch-GigabitEthernet0/0/2]port trunk pvid vlan 10
[switch-GigabitEthernet0/0/2]port trunk allow-pass vlan all
[switch]int g0/0/3
[switch-GigabitEthernet0/0/3]port link-type trunk
[switch-GigabitEthernet0/0/3]port trunk pvid vlan 20
[switch-GigabitEthernet0/0/3]port trunk allow-pass vlan all
[switch]int g0/0/4
[switch-GigabitEthernet0/0/4]port link-type trunk
[switch-GigabitEthernet0/0/4]port trunk pvid vlan 20
[switch-GigabitEthernet0/0/4]port trunk allow-pass vlan all
<switch>sa
配置完了,我们来测试下:
PC1 ping PC3
经测试ping通,这节学习完毕!
下一篇:华为eNSP模拟器 第三层交换机实现vlan间通信配置实例
讨论数量:0