[ensp自学]7.单臂路由

时间:2023-01-08 15:57:18

[ensp自学]7.单臂路由

<Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]undo in en
Info: Information center is disabled.
[Huawei]sys r1
[r1]int g0/0/0.1
[r1-GigabitEthernet0/0/0.1]dot1
[r1-GigabitEthernet0/0/0.1]dot1q ter
[r1-GigabitEthernet0/0/0.1]dot1q termination vi
[r1-GigabitEthernet0/0/0.1]dot1q termination vid 10
[r1-GigabitEthernet0/0/0.1]ip ad 192.168.10.254 24
[r1-GigabitEthernet0/0/0.1]arp b
[r1-GigabitEthernet0/0/0.1]arp broadcast en
[r1-GigabitEthernet0/0/0.1]int g0/0/0.2
[r1-GigabitEthernet0/0/0.2]dot1
[r1-GigabitEthernet0/0/0.2]dot1q ter
[r1-GigabitEthernet0/0/0.2]dot1q termination vi
[r1-GigabitEthernet0/0/0.2]dot1q termination vid 20
[r1-GigabitEthernet0/0/0.2]ip ad 192.168.20.254 24
[r1-GigabitEthernet0/0/0.2]arp b
[r1-GigabitEthernet0/0/0.2]arp broadcast en
[r1-GigabitEthernet0/0/0.2]int g0/0/0.3
[r1-GigabitEthernet0/0/0.3]dot1q termination vid 30
[r1-GigabitEthernet0/0/0.3]ip ad 192.168.30.254 24
[r1-GigabitEthernet0/0/0.3]arp b
[r1-GigabitEthernet0/0/0.3]arp broadcast en
[r1-GigabitEthernet0/0/0.3]q
[r1]q
<r1>save
The current configuration will be written to the device.
Are you sure to continue? (y/n)[n]:y
It will take several minutes to save configuration file, please wait.......
Configuration file had been saved successfully
Note: The configuration file will take effect after being activated
<r1>

交换机s1:

1,2,3口access对应vlan10,20,30 。

4口trunk。

[ensp自学]7.单臂路由