cancel
Showing results for 
Search instead for 
Did you mean: 

multiple vlan with different DHCP pool

daniel_ling_i7i
New Contributor III
Hi Guys, 

I need some help, i am using an 7450-24p with an router image running on version 08.0.80e.

i enable dhcp server on the switch. i am trying to have 2 vlans with different ip subnet. 

below is my config, did i miss or do anything wrong over here? as i am not able to get any ip from it.

show run

Current configuration:
!
ver 08.0.80eT213
!
stack unit 1
  module 1 icx7450-24p-poe-port-management-module
  module 2 icx7400-xgf-4port-40g-module
  module 3 icx7400-qsfp-1port-40g-module
  module 4 icx7400-qsfp-1port-40g-module
!
global-stp
!
vlan 1 name DEFAULT-VLAN by port
 spanning-tree
!
vlan 10 name IP-subnet_192.168.1.0/24 by port
 untagged ethe 1/1/1 to 1/1/12 
 router-interface ve 10
 spanning-tree 
!
vlan 20 name IP-subnet_192.168.2.0/24 by port
 untagged ethe 1/1/13 to 1/1/24 
 router-interface ve 20
 spanning-tree
!
ip dhcp-server pool wifi
 excluded-address 192.168.1.1 192.168.1.10
 lease 1 0 0
 network 192.168.1.0 255.255.255.0
 option  3 ip 192.168.1.1  
 option  6 ip 8.8.8.8 
deploy
!
ip dhcp-server pool smart
 excluded-address 192.168.2.1 192.168.2.10
 lease 1 0 0
 network 192.168.2.0 255.255.255.0
 option  3 ip 192.168.2.1  
 option  6 ip 8.8.8.8  
 deploy
!
interface ve 10
 port-name wifi
 ip address 192.168.1.1 255.255.255.0
!
interface ve 20
 ip address 192.168.2.1 255.255.255.0
11 REPLIES 11

abilashpr
Contributor III
Hi Dan,

Upon checking the configuration which is given above it looks like you have not enabled DHCP globally that is the reason why its not working.

If globally if it is enabled, we should see that in the configuration as below.

aaa authentication web-server default local
aaa authentication login default local
enable telnet authentication
enable aaa console
hostname MDF-CORE
ip dhcp-server enable
!
ip dhcp-server pool 1
 dhcp-default-router 192.168.8.100
 dns-server 8.8.8.8 8.8.4.4
 excluded-address 192.168.8.99 192.168.8.140
 lease 0 4 0
 network 192.168.8.0 255.255.252.0
 deploy
!
!
ip dhcp-server pool 206
 dhcp-default-router 10.206.0.1
 dns-server 8.8.8.8 8.8.4.4
 excluded-address 10.206.0.1
 excluded-address 10.206.0.25
 lease 0 0 5
 network 10.206.0.0 255.255.224.0
 deploy
!
!
ip dhcp-server pool 207
 dhcp-default-router 10.207.0.1
 dns-server 8.8.8.8 8.8.4.4
 excluded-address 10.207.0.1
 lease 0 0 10
 network 10.207.0.0 255.255.224.0
 deploy

Regards,
Abilash PR.

omg thanks Abilash! stupid me i turn on dhcp-client instead of server hahaha it works now thanks!!