cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1188
Views
0
Helpful
4
Replies

DHCP server - router

lamin.sonko
Level 1
Level 1

Hi

I have a question about DHCP server on cisco routers. I want to change the source IP address for the DHCP server to my loopback interface on the router, is that possible. For the client it should look like another server sent DHCP offer and ACK.

I have a Windows client that is asking for an IP address, when it gets an address it always has 192.168.1.1 as DHCP server IP address. I want 10.0.0.1 as DHCP server in the client, but still network 192.168.1.0/24.

#ip dhcp pool test1

# network 192.168.1.0 255.255.255.0

# default-router 192.168.1.1

#

#interface Loopback0

# ip address 10.0.0.1 255.255.255.0

#!

#interface FastEthernet0/0

# ip address 192.168.1.1 255.255.255.0

# ip helper-address 10.0.0.1

Can i do something with "Options 54" or user "origin dhcp".

4 Replies 4

avionics
Level 1
Level 1

i ran into the same issue before. i had to change the routing or create a bridge-group for the interface and assign the interface on the same network as the dhcp server network.

Hi

Is this possible to do on the same router.

Router1: int fa0/0: here we see the client connected.

Router1:int lo0: this interface is the one i want to be the source for DHCP.

Router1:Has a DHCP server configured.

Could you give me a configuration example.

Thanks!

Have you entered the ip dhcp excluded-address

global configuration command? This is a prerequisite to dhcp pool configuration. In this command you should exclude the default gateway. See configuration guide referenced below.

http://www.cisco.com/en/US/products/sw/iosswrel/ps1835/products_configuration_guide_chapter09186a00800ca75c.html#wp1000985

Hi

Sorry my fault, when I said that the client got an IP address its in the 192.168.1.0/24 network(not 192.168.1.1), and this is OK.

This is what i want to see in the client.

IP:192.168.1.x/24

DHCP server: 10.0.0.1

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:

Review Cisco Networking products for a $25 gift card