单臂路由

交换机:undo terminal m
Info: Current terminal monitor is off.
system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname 1
[1]user-interface console 0
[1-ui-console0]idle-timeout 0 0
[1-ui-console0]quit
[1]vlan batch 10 20
Info: This operation may take a few seconds. Please wait for a moment…done.
[1]int e0/0/1
[1-Ethernet0/0/1]port hybrid pvid vlan 10
[1-Ethernet0/0/1]port hybrid untagged vlan 10
[1-Ethernet0/0/1]int e0/0/2
[1-Ethernet0/0/2]port hybrid pvid vlan 20
[1-Ethernet0/0/2]port hybrid untagged vlan 20
[1-Ethernet0/0/2]int g0/0/1
[1-GigabitEthernet0/0/1]port link-type trunk
[1-GigabitEthernet0/0/1]port trunk allow-pass vlan 10 20
路由器
undo terminal monitor
Info: Current terminal monitor is off.
system-view
Enter system view, return user view with Ctrl+Z. 
[Huawei]sysname 1
[1]user-interface console 0 
[1-ui-console0]idle-timeout 0 0
[1-ui-console0]quit
[1]int g0/0/0 
[1-GigabitEthernet0/0/0]undo shutdown
Info: Interface GigabitEthernet0/0/0 is not shutdown.
[1-GigabitEthernet0/0/0]int g0/0/0.1
[1-GigabitEthernet0/0/0.1]vlan-type dot1q 10 default
[1-GigabitEthernet0/0/0.1]ip add 192.168.1.1 24
[1-GigabitEthernet0/0/0.1]int g0/0/0.2
[1-GigabitEthernet0/0/0.2]vlan-type dot1q 20 default
[1-GigabitEthernet0/0/0.2]ip add 192.168.2.1 24

原文地址:https://www.cnblogs.com/sobk/p/14009403.html