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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have installed dhcp-server on ubuntu. And server is providing ip address to clients(Window machines) but not default-gateway but I have another network in my network and same configuration and same dhcp-server provides every information. Thanks for any help.
I have installed dhcp-server on ubuntu. And server is providing ip address to clients(Window machines) but not default-gateway but I have another network in my network and same configuration and same dhcp-server provides every information. Thanks for any help.
Sorry, but if they're the same, then they'd WORK the same way. There has to be some difference.
Thanks for reply. Basically I have only one server and two different network, and dhcp server send every information to clients on one network while on another network its send only ip and network mask not default gateway. And I have checked the dhcpd.conf file the configuration for both network is same. I have problem in network 192.168.2.0/24
Thanks for reply. Basically I have only one server and two different network, and dhcp server send every information to clients on one network while on another network its send only ip and network mask not default gateway. And I have checked the dhcpd.conf file the configuration for both network is same. I have problem in network 192.168.2.0/24
Your original question and this follow-up are hard to understand.
Ok, you have one DHCP server. Great....so exactly WHAT isn't working correctly? The default gateway? IP Addresses? If you've got things split up on your network, are they getting the right IP address range, or is everyone going on ONE subnet?? How are you delineating the two subnets?
Hey Sorry for confusion. I have one Ubuntu server(This is my main router). I have installed dhcp-server and BIND on it and I have two different network 192.168.1.0/24(its for internal LAN) and 192.168.2.0/24(its for external wireless N/W). Now the dhcp-server send dhcp info to internal client with correct info and I have same configuration for another n/w. The dhcp-server send info to external wireless client also that is correct but not sending default-gateway ip address into info.
N/W topology:
Internet->Ubuntu Server(Dhcp server)--1. Internal LAN 192.168.1.0/24
2. Wireless AP(Which is just use for passing traffic) --> External Clients
If try to connect to internet through the Wireless AP I am getting IP address, DNS server Name ... everything is correct but I am not getting my default router address which is Ubuntu server IP(192.168.2.5). I hope this information is help full. let me know if you need more info. Thanks for your help.
Hey Sorry for confusion. I have one Ubuntu server(This is my main router). I have installed dhcp-server and BIND on it and I have two different network 192.168.1.0/24(its for internal LAN) and 192.168.2.0/24(its for external wireless N/W). Now the dhcp-server send dhcp info to internal client with correct info and I have same configuration for another n/w. The dhcp-server send info to external wireless client also that is correct but not sending default-gateway ip address into info.
N/W topology:
Internet->Ubuntu Server(Dhcp server)--1. Internal LAN 192.168.1.0/24
2. Wireless AP(Which is just use for passing traffic) --> External Clients
If try to connect to internet through the Wireless AP I am getting IP address, DNS server Name ... everything is correct but I am not getting my default router address which is Ubuntu server IP(192.168.2.5). I hope this information is help full. let me know if you need more info. Thanks for your help.
As I asked above, how are you delineating between the two networks???. You are putting two subnets, with TWO DIFFERENT DEFAULT ROUTES, into your DHCP config. Not a problem, but the DHCP server is only going to give out what you TELL IT TO.
If you have one switch, and all your machines are configured into one domain, then they're going to pull the DHCP info accordingly. If you want ALL your machines to get the same default route, then change it in the dhcpd.conf. You've clearly got one set at 192.168.2.5, and another at 192.168.1.5.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.