华为单臂路由配置

华为单臂路由配置

拓扑:

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

猜你喜欢

转载自blog.51cto.com/wskang/2120092
今日推荐