Click to See Complete Forum and Search --> : Help Convert Windows IP Routing to Linux


BOFH1
11-20-2003, 09:02 PM
I've got a DHCP server on a public IP network that I need to be accessible on a private IP network (all physically on the same net). The old DHCP server was running Windows 2000 svr. But then I changed to linux, and I was unsure of the syntax to put this Windows routing command in:

route add 10.1.0.0 mask 255.255.0.0 XXX.XXX.XXX.XXX metric 1 -p

(where XXX.XXX.XXX.XXX is the public IP address)

I added the route to my cisco router, which works fine, except I don't feel as secure about it, because my entire network, both public and private, can access each other, and I'd rather have it where the private has access only to that one public IP, and likewise the other way around. It's also extra work for my already bogged-down router.

I think the command starts like this:

route add 10.1.0.0/16

but I'm not quite sure where to take it from there.

Any help would be greatly appreciated.

BOFH1
11-20-2003, 09:22 PM
I think I may have figured it out. Please correct me if I'm wrong on this, because I don't want to take that routing table out of my router until I know this is right.

route add -net 10.1.0.0 netmask 255.255.0.0 gw XXX.XXX.XXX.XXX

All I'm missing I believe is the persistant variable?