华为路由器DHCP配置

多个vlan用一台路由器做DHCP服务如何设置
有个问题请教下 是有关多个Vlan用一台路由器做DHCP服务的
我在路由器上设置了两个IP池 分别给两个vlan做dhcp
dhcp server ip-pool pool              
network 192.168.1.0 mask 255.255.255.0
gateway-list 192.168.1.1
//第一个vlan的
dhcp server ip-pool pool2
network 192.168.2.0 mask 255.255.255.0
gateway-list 192.168.2.1
//第二个vlan的
交换机上设置为
interface Vlan-interface1
ip address 192.168.1.1 255.255.255.0
 
 

[Router]
 dhcp enable
 
 
[Router]
 dhcp server ip-pool 1
 
 
[Router-dhcp1]
 network 110.10.10.0 mask 255.255.255.0
 
 
[Router-dhcp1]
 gateway-list 110.10.10.1
 
 
[Router-dhcp1]
 expired day 24
 
 
[Router-dhcp1]
 domain-name Huawei.com
 
 
[Router-dhcp1]
 dns-list 120.1.0.1
 
 
[Router-dhcp1]
 nbns-list 121.1.1.1
 
 
 
 !
 
 
[Router]
 interface Ethernet0
 
 
[Router-ethernet0]
 ip address 110.10.10.1 255.255.255.0
 

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