華爲單臂路由配置

華爲單臂路由配置

拓撲:

clip_image002

實現步驟:

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信息

clip_image004

clip_image006

重點:單臂路由的配置:

[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

最後 測試連通性:

clip_image008

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章