spelunker
July 7th, 2009, 08:42 PM
A server of ours crashed that someone else configured (who sadly is no longer with us) and I have to get our server backup. I reinstalled Ubuntu 9.04 desktop and am having trouble getting the networking back up.
Here is the situation. We have 3 ethernet adapters in our machine. 1 (eth0) which connects us to the outside world/internet, 1 that hooks to our own private subnet with 10 computers, and 1 that clicks us into someone else's subnet so we can talk to a machine on their network.
How do I get the networking set up properly so that the computers that are on my 172.16.2.* subnet can talk to the outside world? I set entered all the proper information (I think...) and the only one who can access the outside world is the server. Here is the adapter info I have entered:
eth0 Ip: 10.0.23.51, subnet: 255.255.255.0, default gateway: 10.0.23.24
eth1 Ip: 172.16.2.1, subnet: 255.255.255.0, default gateway: 10.0.23.24
eth2 Ip: 172.16.1.129, subnet: 255.255.255.0, default gateway: 0.0.0.0
Also, I want to run a DNS and DHCP server on my server so that everyone in the 172.16.2 subnet can ssh around without typing ip's and guests can click into our network and go. I installed dhcp3-server, configured it to bind to eth1 and the computers on the 172.16.2 subnet now get ip's properly and point to my dns server. I'm not sure sure I have the dns set up properly though. It works locally, but I'm not sure I'm passing them to the isp's dns servers properly. Perhaps I'll go with something easier to configure like dnsmasq since I'm getting a little tripped up on the DNS configuration.
So, do I use bridging or NAT or soemthing that I don't quite understand to get the subnet pc's to the interent? Anyway, clearly I'm confused!
Here is the situation. We have 3 ethernet adapters in our machine. 1 (eth0) which connects us to the outside world/internet, 1 that hooks to our own private subnet with 10 computers, and 1 that clicks us into someone else's subnet so we can talk to a machine on their network.
How do I get the networking set up properly so that the computers that are on my 172.16.2.* subnet can talk to the outside world? I set entered all the proper information (I think...) and the only one who can access the outside world is the server. Here is the adapter info I have entered:
eth0 Ip: 10.0.23.51, subnet: 255.255.255.0, default gateway: 10.0.23.24
eth1 Ip: 172.16.2.1, subnet: 255.255.255.0, default gateway: 10.0.23.24
eth2 Ip: 172.16.1.129, subnet: 255.255.255.0, default gateway: 0.0.0.0
Also, I want to run a DNS and DHCP server on my server so that everyone in the 172.16.2 subnet can ssh around without typing ip's and guests can click into our network and go. I installed dhcp3-server, configured it to bind to eth1 and the computers on the 172.16.2 subnet now get ip's properly and point to my dns server. I'm not sure sure I have the dns set up properly though. It works locally, but I'm not sure I'm passing them to the isp's dns servers properly. Perhaps I'll go with something easier to configure like dnsmasq since I'm getting a little tripped up on the DNS configuration.
So, do I use bridging or NAT or soemthing that I don't quite understand to get the subnet pc's to the interent? Anyway, clearly I'm confused!