Click to See Complete Forum and Search --> : Need help with route.conf


premutos
06-07-2001, 04:55 AM
Hi There,

i am a Linux Newbie, so please be nice to me :rolleyes:

The situation is: I have to change the Strukture of our Company-WAN. The New Strukture looks like this:
Our IPs: 192.168.1.x. This LAN is connected to our Provider by a static IP (194.233.191.253)
The connection is done by a Linux-PC. And my Work now is to tell the Linux route.conf to put all outgoing/incomeing
packets from our 192.168.1.x Net to the IP 194.233.191.254 (Provider Router).
The Linux-PC has 2 IPs (194.233.191.253 and 192.168.1.1)

How does the route.conf has to look like?

Radar
06-07-2001, 05:58 PM
Assuming you have to go thru a router to get to the internet and assuming your local ip's are already configured:

Issue these commands: route add default gw ipaddr.of.router

route add -net ip.of.provider

make sure your resolv.conf has the nameservers in there first.

netstat -nr will show the kernel routing table