#
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/1.1
dot1q termination vid 10
ip address 192.168.1.1 255.255.255.0
dhcp select global
#
interface GigabitEthernet0/0/1.2
dot1q termination vid 20
ip address 192.168.2.1 255.255.255.0
dhcp select global
#
交换机relay配置:
一般dhcp-server跟交换机不在同一个设备上。
#
interface GigabitEthernet0/0/0
#
interface GigabitEthernet0/0/0.2
dot1q termination vid 2
ip address 172.16.1.1 255.255.255.0
arp broadcast enable
#
interface GigabitEthernet0/0/0.3
dot1q termination vid 3
ip address 172.16.2.1 255.255.255.0
arp broadcast enable
#
interface GigabitEthernet0/0/0.4
dot1q termination vid 4
ip address 172.16.3.1 255.255.255.0
arp broadcast enable
#
交换机配置
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 to 4094
#
interface GigabitEthernet0/0/2
port link-type access
port default vlan 2
#
interface GigabitEthernet0/0/3
port link-type access
port default vlan 3
#
interface GigabitEthernet0/0/4
port default vlan 4
#
.rar