华为eNSP实验——单臂路由实现网络通信
二层交换机——路由器 实验(单臂路由)
R1:
The device is running!
u t m
Info: Current terminal monitor is off.
sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys
[Huawei]sysname R1
[R1]user-interface vty 0 4
[R1-ui-vty0-4]idle-timeout 0 0
[R1-ui-vty0-4]q
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]un sh
Info: Interface GigabitEthernet0/0/0 is not shutdown.
[R1-GigabitEthernet0/0/0]q
[R1]int g0/0/0.1
[R1-GigabitEthernet0/0/0.1]vlan-type dot1q 20 default
[R1-GigabitEthernet0/0/0.1]ip add 192.168.2.1 24
[R1-GigabitEthernet0/0/0.1]un sh
Info: Interface GigabitEthernet0/0/0.1 is not shutdown.
[R1-GigabitEthernet0/0/0.1]q
[R1]int g0/0/0.2
[R1-GigabitEthernet0/0/0.1]vlan-type dot1q 30 default
[R1-GigabitEthernet0/0/0.2]ip add 192.168.3.1 24
[R1-GigabitEthernet0/0/0.2]un sh
Info: Interface GigabitEthernet0/0/0.2 is not shutdown.
[R1-GigabitEthernet0/0/0.2]q
LSW2:
The device is running!
进入命令行输入“ping (另一台PC的IP地址)”,进行连接,能够成功连接,说明配置无问题,实现了二层交换机+路由器使网络成功通信。