dhcpd.conf configuration and internet access
Hello,
I have a ubuntu machine with two NICs. This has internet access through one NIC. The other is connected to a switch to which other machines connect. I have set up this machine to be a dhcp server and serve out local IPs to the connecting clients. I have successfully done this so that any machine connecting up to the switch gets an IP address (e.g. 192.168.0.2). This allows the client to connect to the host. However, these clients can not get on to the internet. In other words, they are limited to communication with the machines on a LAN. I presume that I have not the written the dhcpd.conf properly. Here is my dhcpd.conf on the host Code:
ddns-update-style none; Code:
auto lo eth0 I presume there is something small that I am stupidly missing. Can anyone see what I have done wrong and how I could fix it? -mark |
We can get more information if you post the output of ifconfig of one of the dhcp-clients.
Markus |
Dear Markus,
Thanks for your offer of help. I don't have any command called "ifconf": Code:
andrews@ssh.lohengrin ~> ifconf Code:
andrews@ssh.lohengrin ~> ifconfig Code:
andrews@ssh.wotan ~> ifconfig |
Sorry, I meant ifconfig (as you stated).
I did still not understand how exactly your connection to the internet should work. If It is a ppp-connection there would b a 32bit mask (255.255.255.255) for eth1 on wotan. but I don't know. Since the connection between the computers on your local lan works there dhcp should be properly. What about the routes (between the two nics), what I mean is that this machine with the two nics should function as a router. Markus |
Markus,
Thanks for the reply again. From what you said, it may be that the dhcp server config is not the issue, but rather I do not have the host set up properly to route between the two NICs. That makes sense, and I will look into it. -m |
All times are GMT -5. The time now is 02:08 PM. |