Creating a static routing table
Hello there,
I have to connect my private adres 10.0.0.2/26 to an external adres 192.168.1.253/16
I am not allowed to use Nat so i have to create a static routing table..But i dont really know how...:P
Ive put a router between with 2 nic's:
nic 1 : 192.168.121.4
nic 2: 10.0.0.1
ive seen on various sites that :
#route add -net 10.0.0.0 netmask 255.255.255.192 gw 10.0.0.1 dev eth0
and
#route add -net 192.168.0.0 netmask 255.255.0.0 gw 192.168.1.253 dev eth1
should do the trick but it isnt working for me ... Ipforwarding is enabled.. Also when i use the sys/proc command..
Can anyone tell me how to make the table?? Or give me a good link? Not to expert please am still learning Linux :)
by the way I am using Opensuse 11.2