PDA

View Full Version : linux fedora routing question


wrongen
06-07-06, 08:59 AM
hi all i am new to linux and i want to be able to set up a routing table for both the internet and intranet

i have got a 5 port ethernet hub which i plug my adsl modem and my linux server, i want to be able to search my server first for the dns name then if it cant find it, it goes the the outside (wan).

currently i have set up dhcp, dns, apache and mysql. here is my dhcp config
ddns-update-style ad-hoc;
option domain-name-servers 203.134.64.66, 203.134.65.66;
option domain-name "homenet.com";
option subnet-mask 255.255.255.0;
option routers 204.155.10.99;
# Homenet
subnet 204.155.10.0 netmask 255.255.255.0 {
default-lease-time 100;
range 204.155.10.100 204.155.10.150;
}

it works i can gain access to the net but not the intranet how would i set up the routing table and configure and dhcp server so that i can gain access to my intranet

my server's ip is 204.155.10.1
my wan ip's 211.27.32.211
my gateway 204.155.10.99

please tell me what my ip routing table should look like and the dhcp conf file whould look like.

thanx in advance

klingens
06-07-06, 09:14 AM
get dnsmasq. It does both, dhcp and caching nameserver with minimum fuss.

A routing table for you should look like this:

204.155.10.99 * 255.255.255.0 U 0 0 0 eth0
default * 0.0.0.0 U 0 0 0 ppp0


But I'm wondering why you use a public IP of the Tulare County Office of Education in your LAN, nevermind why those guys need a full /20
And homenet.com is owned by Roadrunner in NYC.