####################
華爲單臂路由試驗
####################
#########
交換機配置
#########
<Huawei>
<Huawei>
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]interface GigabitEthernet0/0/1
[Huawei-GigabitEthernet0/0/1]port link-type trunk
[Huawei-GigabitEthernet0/0/1]port trunk allow-pass vlan all
[Huawei-GigabitEthernet0/0/1]interface GigabitEthernet0/0/2
[Huawei-GigabitEthernet0/0/2]port link-type access
[Huawei-GigabitEthernet0/0/2]port default vlan 10
[Huawei-GigabitEthernet0/0/2]interface GigabitEthernet0/0/3
[Huawei-GigabitEthernet0/0/3]port link-type access
[Huawei-GigabitEthernet0/0/3]port default vlan 20網絡
#########
路由器配置
#########
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
第一步:子接口配置VLAN和網關
[Huawei]interface GigabitEthernet 0/0/0.1
[Huawei-GigabitEthernet0/0/0.1]dot1q termination vid 10
[Huawei-GigabitEthernet0/0/0.1]ip address 192.168.10.254 24
[Huawei-GigabitEthernet0/0/0.1]interface GigabitEthernet 0/0/0.2
[Huawei-GigabitEthernet0/0/0.2]dot1q termination vid 20
[Huawei-GigabitEthernet0/0/0.2]ip address 192.168.20.254 24
[Huawei-GigabitEthernet0/0/0.2]interface g0/0/0.1
第二步:開啓arp廣播(必須開啓)和dhcp功能(可手動配置ip)
[Huawei-GigabitEthernet0/0/0.1]arp broadcast enable
[Huawei-GigabitEthernet0/0/0.1]dhcp select interface
Error: Please enable DHCP in the global view first.
[Huawei-GigabitEthernet0/0/0.1]ide
Please check whether system data has been changed, and save data in timeblog
Configuration console time out, please press any key to log on接口
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]dhcp enable
Info: The operation may take a few seconds. Please wait for a moment.done.
[Huawei]interface g0/0/0.1
[Huawei-GigabitEthernet0/0/0.1]dhcp select interface
[Huawei-GigabitEthernet0/0/0.1]interface g0/0/0.2
[Huawei-GigabitEthernet0/0/0.2]arp broadcast enable
[Huawei-GigabitEthernet0/0/0.2]dhcp select interface
[Huawei-GigabitEthernet0/0/0.2]ip