eNSP二层交换机单臂路由

在这里插入图片描述

AR1:

<Huawei>
<Huawei>undo t m
Info: Current terminal monitor is off.	
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.	
[Huawei]sysname AR1
[AR1]user-interface console 0
[AR1-ui-console0]idle-timeout 0 0
[AR1-ui-console0]qu
[AR1]vlan batch 10 20
Info: This operation may take a few seconds. Please wait for a moment...done.
[AR1]int g0/0/1
[AR1-GigabitEthernet0/0/1]undo shut
Info: Interface GigabitEthernet0/0/1 is not shutdown.
[AR1-GigabitEthernet0/0/1]int g0/0/1.1
[AR1-GigabitEthernet0/0/1.1]vlan-type dot1q 10 default 
[AR1-GigabitEthernet0/0/1.1]ip address 192.168.1.1 24
[AR1-GigabitEthernet0/0/1.1]undo shut
Info: Interface GigabitEthernet0/0/1.1 is not shutdown.
[AR1-GigabitEthernet0/0/1.1]int g0/0/1.2
[AR1-GigabitEthernet0/0/1.2]vlan-type dot1q 20 default	
[AR1-GigabitEthernet0/0/1.2]ip address 192.168.2.1 24	
[AR1-GigabitEthernet0/0/1.2]undo shut
Info: Interface GigabitEthernet0/0/1.2 is not shutdown.
[AR1-GigabitEthernet0/0/1.2]qu
[AR1]

SW1:

<Huawei>
<Huawei>undo t m
Info: Current terminal monitor is off.	
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.	
[Huawei]sysname SW1		
[SW1]user-interface console 0
[SW1-ui-console0]idle-timeout 0 0
[SW1-ui-console0]qu
[SW1]vlan batch 10 20
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW1]int e0/0/1	
[SW1-Ethernet0/0/1]port link-type access 
[SW1-Ethernet0/0/1]port default vlan 10
[SW1-Ethernet0/0/1]int e0/0/2
[SW1-Ethernet0/0/2]port link-type access
[SW1-Ethernet0/0/2]port default vlan 20
[SW1-Ethernet0/0/2]qu
[SW1]int g0/0/1	
[SW1-GigabitEthernet0/0/1]port link-type trunk 
[SW1-GigabitEthernet0/0/1]port trunk allow-pass vlan 10 20
[SW1-GigabitEthernet0/0/1]qu
[SW1]

猜你喜欢

转载自blog.csdn.net/July_jojo/article/details/107456871