DHCP server - router
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2008 05:02 AM - edited 03-05-2019 08:30 PM
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".
- Labels:
-
Other Switching
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2008 08:52 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2008 09:21 AM
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2008 04:45 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2008 12:06 AM
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
