cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3606
Views
8
Helpful
11
Replies

dhcp pool

dave dave
Level 1
Level 1

Hi! For router on the stick setup with multiple sub interfaces + one dhcp pool in every sub interfaces, what ip shd I put into the sub interfaces for the ip helper address? Thx

Sent from Cisco Technical Support iPad App

11 Replies 11

Jon Marshall
Hall of Fame
Hall of Fame

If the DHCP pools are configured on the router then nothing.

If the DHCP pools are configured on a separate DHCP server then use an "ip helper-address" under each subinterface except the one which is the vlan that the DHCP server is in.

Jon

Hi! I tried to enter these command in the subinterface, but doesn't seems to be working. Anything missing here in term of dhcp command? Thx

Ip dhcp pool test_pool

Network 10.1.1.0 255.255.255.192

Dns-server 10.2.2.2

Default-router 10.1.1.1

Lease 0 0 50

Ip dhcp excluded-address 10.1.1.0 10.1.1.20

Sent from Cisco Technical Support iPad App

Hi,

can you send sh run int fx/x.y for every subinterface as well as sh run | in dhcp

Regards.

Alain.

Don't forget to rate helpful posts.

hi! here';s the output. Thx.

abc01#sh run interface fas 0.1
Building configuration...

Current configuration : 129 bytes
!
interface FastEthernet0.1
encapsulation dot1Q 58 native
ip address 10.1.0.1 255.255.255.192
no snmp trap link-status
end

abc01#sh run interface fas 0.2
Building configuration...

Current configuration : 123 bytes
!
interface FastEthernet0.2
encapsulation dot1Q 59
ip address 10.1.0.65 255.255.255.192
no snmp trap link-status
end
abc01#sh run interface fas 0.3
Building configuration...

Current configuration : 124 bytes
!
interface FastEthernet0.3
encapsulation dot1Q 60
ip address 10.1.0.129 255.255.255.192
no snmp trap link-status
end
abc01#sh run interface fas 0.4
Building configuration...

Current configuration : 124 bytes
!
interface FastEthernet0.4
encapsulation dot1Q 61
ip address 10.1.0.193 255.255.255.192
no snmp trap link-status
end

ip dhcp excluded-address 10.1.0.128 10.253.2.140
ip dhcp excluded-address 10.1.0.64 10.253.2.70
ip dhcp excluded-address 10.1.0.0 10.253.2.10
ip dhcp pool voice_Pool
ip dhcp pool data_Pool
ip dhcp pool svr_Pool

Hi

sorry  the second command won't give us many clues because  I put a wrong command.

do sh ip dhcp pool instead.

Regards.

Alain.

Don't forget to rate helpful posts.

hi! Here's the output

sh ip dhcp pool

Pool voice_Pool :
Utilization mark (high/low)    : 100 / 0
Subnet size (first/next)       : 0 / 0
Total addresses                : 62
Leased addresses               : 0
Pending event                  : none
1 subnet is currently in the pool :
Current index        IP address range                    Leased addresses
10.1.0.129         10.1.0.129     - 10.1.0.190      0

Pool data_Pool :
Utilization mark (high/low)    : 100 / 0
Subnet size (first/next)       : 0 / 0
Total addresses                : 62
Leased addresses               : 0
Pending event                  : none
1 subnet is currently in the pool :
Current index        IP address range                    Leased addresses
10.1.0.65          10.1.0.65      - 10.1.0.126      0

Pool svr_Pool :
Utilization mark (high/low)    : 100 / 0
Subnet size (first/next)       : 0 / 0
Total addresses                : 62
Leased addresses               : 0
Pending event                  : none
1 subnet is currently in the pool :
Current index        IP address range                    Leased addresses
10.1.0.1           10.1.0.1       - 10.1.0.62       0

Hi dave,

ip dhcp excluded-address 10.1.0.128 10.253.2.140

ip dhcp excluded-address 10.1.0.64 10.253.2.70

ip dhcp excluded-address 10.1.0.0 10.253.2.10

You are excluding all addresses in your pools. Don't forget the ip dhcp excluded command  is considering a range if you input 2 addresses so you are excluding from 10.1.0.0 to 10.253.2.10

Regards.

Alain.

Don't forget to rate helpful posts.

hi! thanks for the reply, there were some typo mistakes in the reserved scope. I've changed it accordingly but I notice that the client still can't get any ip.

Hi,

Have you got a switch in between the clients and the router?

Can you sniff on the client and send the capture file?

Regards.

Alain.

Don't forget to rate helpful posts.

hi! Thx everyone, the issue has been resolved.

Is your trunking between the router and the switches working? Sh interfaces trunk and chk of the uplinks back to the router r trunking the vlans thru.

Sent from Cisco Technical Support iPhone App

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco