配置单臂路由
AR1:
#
sysname AR1
#
dhcp enable
#
ip pool 1
gateway-list 192.168.1.1
network 192.168.1.0 mask 255.255.255.0
dns-list 8.8.8.8
#
ip pool 2
gateway-list 192.168.2.1
network 192.168.2.0 mask 255.255.255.0
dns-list 8.8.8.8
#
ip pool 3
gateway-list 192.168.3.1
network 192.168.3.0 mask 255.255.255.0
dns-list 8.8.8.8
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/1.10
control-vid 10 dot1q-termination
dot1q termination vid 10
ip address 192.168.1.1 255.255.255.0
arp broadcast enable
dhcp select global
#
interface GigabitEthernet0/0/1.20
control-vid 20 dot1q-termination
dot1q termination vid 20
ip address 192.168.2.1 255.255.255.0
arp broadcast enable
dhcp select global
#
interface GigabitEthernet0/0/1.30
dot1q termination vid 30
ip address 192.168.3.1 255.255.255.0
arp broadcast enable
dhcp select global
Switch 1:
#
sysname Switch 1
#
vlan batch 10 20 30
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 10 20 30
#
interface GigabitEthernet0/0/2
port link-type access
port default vlan 10
#
interface GigabitEthernet0/0/3
port link-type access
port default vlan 20
#
interface GigabitEthernet0/0/4
port link-type access
port default vlan 30