H3C AR18-22 VLAN设置

    公司现在使用的是H3C AR18-22路由器,这个路由器其实可以理解为1个路由器加一个4口的可网管交换机,中间用一个虚拟的Ethernet1/0连接,但是由于只有4个接口只能做4个基于端口的vlan。由于公司网络规模的增加已经不能满足需求,因此新购买H3C 5024P交换机一台用作核心交换机,在5024P上划分vlan,用AR18-22做单臂路由。

AR18-22配置:

#
interface Ethernet1/0
#
interface Ethernet1/0.1
ip address 192.168.1.1 255.255.255.0
vlan-type dot1q vid 10
#
interface Ethernet1/0.2
ip address 192.168.2.1 255.255.255.0     
vlan-type dot1q vid 20
#
interface Ethernet1/0.3
ip address 192.168.3.1 255.255.255.0     
vlan-type dot1q vid 30

#
interface Ethernet1/0.4
ip address 192.168.4.1 255.255.255.0     
vlan-type dot1q vid 40

#
interface Ethernet1/0.5
ip address 192.168.5.1 255.255.255.0     
vlan-type dot1q vid 50

#
interface Ethernet1/1
#
interface Ethernet1/2
#
interface Ethernet1/3
#
interface Ethernet1/4
port link-type trunk
port trunk permit vlan  10 20 30 40 50

5024P配置:

#
interface GigabitEthernet0/1
port access vlan 10
flow-control
#
interface GigabitEthernet0/2
port access vlan 20
flow-control
#
interface GigabitEthernet0/3
port access vlan 30
flow-control
#
interface GigabitEthernet0/4
port access vlan 40
flow-control
#
interface GigabitEthernet0/5
port access vlan 50
flow-control

#
interface GigabitEthernet0/24
port link-type trunk
port trunk permit vlan all
flow-control

你可能感兴趣的:(职场,h3c,VLAN,休闲,trunk)