第3层交换机DHCP中继代理配置使用第3层交换机作为DHCP中继代理
AR2的配置如下:
sysname AR2#dhcp enable# ippool DHCP1gateway-list 192.168.2.1网络192.168.2.0 mask 255.255.255.0 leaseday7hour0minute0DNS-list 114.0 iii 68.3.0 mask 255.255.255.0 leaseday7hour0minute0DNS-list 114.0 ippool DHCP3gateway-list 192.168.1.1网络192.162 - list 114.0 interfacegigabitethernet0/0/0IP address 192.168.100255.255.255.0 dhcpselectglobal # IP route-state
# sysname L3 # VLAN batch2to 3100 # DHCP enable # interface vlanif1IP address 192.168.1.1255.255.255.255.255.0 # interface vlanif2IP地址192.168.2.1255.255.255.0 dhcpselectrelaydhcprelayserver-IP 192.168.100.100 # interface vlanif 3ip address 192.168.3.1255.255.255.0 dhcpselectrelaydhcprelayserver-IP 192.168.100.100 # 接口vlanif 100 IP地址192.168.100.1255.255.255.0 #接口0/0/1端口链接- typetrunkporttt
sysname L2 # VLAN batch2to 3100 # interface vlanif 100 IP address 192.168.100.101255.255.255.0 # interface Ethernet0/0/0/0 interface以太网0/0/2端口链接- typeaccessportdefaultvlan3# interfacegigabitether 1端口链接- typeaccessportdefaultvlan 100