Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Your DHCP server can have the 192.168.0.10 address and work just fine across multiple VLANs/subnets.
You have to remember that every L3 switch that's between your DHCP server and a subnet has to have the bootp relay enabled on it. An L3 switch is a switching router, for lack of better terms. Unless you tell it to pass UDP broadcasts across it, it will not.
For example, on Cisco gear, you use "ip helper (dhcpserveraddress)" on every VLAN configuration, and you're good to go. The L3 switch will send the DHCP requests where they need to go.
right, that's not a legitimate way to use an ethernet card. you can't just put two addresses on one nic. how do you expect the dhcp server to differentiate if a client requesting an address is after a 192.168.1.0 address or a 192.168.0.0 address? the two requests will be exactly identical when a new client appears. dhcpd is many things but it's not psychic. the correct way to do what you want there is to use 802.1q tagged vlans, which in turn requires a suitably capable switch on the other end of the cable and a lot more understanding and configuration.
Server ip : 172.27.0.10
Swtich ip / gateway ip of server : 172.27.0.100
Option domain –name servers : 172.27.0.6
Please note default vlan 172.27.0.x in this case
Switch and server need to be in default lan for communication / or else we need to trunk in case other vlan connected , we need to configure vconfig on server to communicate
For biggner I would recommend to go for the default vlan connectivity
Chkconfig –list dhcpd on
{ For enabling the service on all run levels }
Service dhcpd start
In case , dhcp server faild to start , check with log messages
/var/log/messages
Check for the ip helper address in layer 3 swtich , which act as dhcp-relay
Which has to be configured as 172.27.0.10
Troubleshooting Dhcp server start up error :
1) Run the Dhcp service in debug mode
2) Check the ip configuration
3) Check for syntax errors in dhcpd.conf file
4) Check for the right location of the dhcpd file
5) Ping test between the switch and server
6) Possible conflict of other dhcp server may be the issue
dhcpd in the foreground in debug mode with /usr/sbin/dhcpd -d –f
Hopefully, a DHCP server like the one we’ll be configuring will respond. Running tcpdump shows a dhcp request looks like:
17:26:02.003956 00:00:00:00:00:00 > ff:ff:ff:ff:ff:ff, ethertype IPv4 (0×0800), length 342: 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request, length 300
You should notice DHCP running in the process (ps) list. Any problems, check syslog
Congratulations you have finally configured In easy steps
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.