Home | 簡體中文 | 繁體中文 | 雜文 | 打賞(Donations) | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 知乎專欄 | Search | Email

16.5. DHCP

		
set interface ethernet1 dhcp server service  //在介面1開啟dhcp服務
set interface ethernet1 dhcp server enable  //在介面1開啟dhcp服務
set interface ethernet1 dhcp server option lease 1440000  //設置dhcp服務租期
set interface ethernet1 dhcp server option gateway 192.168.0.2
set interface ethernet1 dhcp server option netmask 255.255.255.0
set interface ethernet1 dhcp server option dns1 202.96.209.5
set interface ethernet1 dhcp server option dns2 202.96.209.133
set interface ethernet1 dhcp server ip 192.168.0.10 to 192.168.0.100   //dhcp地址池
		
		

DMZ 口 DHCP

set interface ethernet0/3 dhcp server service
set interface ethernet0/3 dhcp server enable
set interface ethernet0/3 dhcp server option lease 1440
set interface ethernet0/3 dhcp server option gateway 10.10.0.254
set interface ethernet0/3 dhcp server option netmask 255.255.255.0
set interface ethernet0/3 dhcp server option dns1 208.67.222.222
set interface ethernet0/3 dhcp server option dns2 208.67.220.220
set interface ethernet0/3 dhcp server option dns3 8.8.8.8
set interface ethernet0/3 dhcp server ip 10.10.0.200 to 10.10.0.250
set interface ethernet0/3 dhcp server config next-server-ip