華為單臂路由配置
拓撲:
實現步驟:
1 先添加的交換機的vlan
[SW1]display this
sysname SW1
vlan batch 10 20
[SW2] vlan batch 10 20
2 進入交換機 接口配置接口所屬vlan:
[SW1:
interface Ethernet0/0/10
port link-type access
port default vlan 10
#
interface Ethernet0/0/20
port link-type access
port default vlan 20
SW2
interface Ethernet0/0/10
port link-type access
port default vlan 10
#
interface Ethernet0/0/20
port link-type access
port default vlan 20
#
配置交換機dot1Q. (trunk)
SW1:
#
interface Ethernet0/0/1
port link-type trunk
port trunk allow-pass vlan all
#
Sw2:#
interface Ethernet0/0/1
port link-type trunk
port trunk allow-pass vlan all
#
Sw3:
#
interface Ethernet0/0/10
port link-type trunk
port trunk allow-pass vlan 2 to 4094
##
interface Ethernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 to 4094
#
#
interface Ethernet0/0/2
port link-type trunk
port trunk allow-pass vlan 2 to 4094
#
查看 vlan信息
重點:單臂路由的配置:
[R1-Ethernet0/0/0.1]display this
#
interface Ethernet0/0/0.1
dot1q termination vid 10
ip address 192.168.1.1 255.255.255.0
arp broadcast enable
#
[R1-Ethernet0/0/0.2]display this
#
interface Ethernet0/0/0.2
dot1q termination vid 20
ip address 10.224.9.1 255.255.255.0
arp broadcast enable
最後 測試連通性:
華為單臂路由配置