Huawei eNSP--arm routing configuration

Experimental topology

Here Insert Picture Description

1, configuration switch sw1

<Huawei>sys    ##进入系统视图模式
Enter system view, return user view with Ctrl+Z.
[Huawei]sys sw1     ##修改名字
[sw1]vlan batch 10 20   ##创建vlan10 20 
[sw1]int e0/0/1     ##进入接口
[sw1-Ethernet0/0/1]port link-type access   ##设置access 
[sw1-Ethernet0/0/1]port default vlan 10     ##将接口放到vlan10 中
[sw1-Ethernet0/0/1]q
[sw1]int e0/0/2
[sw1-Ethernet0/0/2]p l a
[sw1-Ethernet0/0/2]p d v 20
[sw1-Ethernet0/0/2]int g0/0/1
[sw1-GigabitEthernet0/0/1]p l t      ##设置trunk链路
[sw1-GigabitEthernet0/0/1]p t a v a  ##将所有vlan放到接口中

2, the router R1 Configuration

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys R1
[R1]int g0/0/0.10       ##进入逻辑子接口中
[R1-GigabitEthernet0/0/0.10]dot1q termination vid 10  ##封装dot1q协议,该子接口对应vlan10
[R1-GigabitEthernet0/0/0.10]ip add 192.168.10.1 24   ##设置网关
[R1-GigabitEthernet0/0/0.10]arp broadcast enable     ##开启广播
[R1-GigabitEthernet0/0/0.10]interface g0/0/0.20
[R1-GigabitEthernet0/0/0.20]d t v 20
[R1-GigabitEthernet0/0/0.20]ip address 192.168.20.1 24
[R1-GigabitEthernet0/0/0.20]arp b e

3, set the ip address of the pc

Here Insert Picture Description
Here Insert Picture Description

4, interoperability test

Here Insert Picture Description

thanks for reading!

Guess you like

Origin blog.51cto.com/14080162/2448976