华为eNSP 路由器单臂路由配置

1.实验拓扑图
华为eNSP 路由器单臂路由配置_第1张图片
2.IP地址自行规划设计和VLAN划分
在这里插入图片描述
3.对设备进行配置
(1)二层交换机配置

<Huawei>system-view 
[Huawei]vlan 2
[Huawei-vlan2]quit 

[Huawei]vlan 3
[Huawei-vlan3]quit

[Huawei]int e0/0/2
[Huawei-Ethernet0/0/2]port link-type access 
[Huawei-Ethernet0/0/2]port default vlan 2

[Huawei]int e0/0/3
[Huawei-Ethernet0/0/3]port link-type access
[Huawei-Ethernet0/0/3]port default vlan 3

[Huawei]int e0/0/1
[Huawei-Ethernet0/0/1]port link-type trunk 	
[Huawei-Ethernet0/0/1]port trunk allow-pass vlan all 

(2)路由器配置

<Huawei>system-view 

[Huawei]int g0/0/0.2
[Huawei-GigabitEthernet0/0/0.2]dot1q termination vid 2
[Huawei-GigabitEthernet0/0/0.2]arp broadcast enable 	
[Huawei-GigabitEthernet0/0/0.2]ip address 192.168.1.1 24

[Huawei]int g0/0/0.3
[Huawei-GigabitEthernet0/0/0.3]dot1q termination vid 3
[Huawei-GigabitEthernet0/0/0.3]arp broadcast enable
[Huawei-GigabitEthernet0/0/0.3]ip address 192.168.2.1 24

4.实验结果
PC2 ping PC1
华为eNSP 路由器单臂路由配置_第2张图片

你可能感兴趣的:(华为ensp)