Routing Table

I am having problems trying to add another entry into the table. It works the first time with the command:

Route add -net 10.0.1.0 netmask 255.255.255.0 eth0

but then after a while or when I reboot the machine the entry disappears.

Can anyone help me?

Thanks
LVL 1
aikonAsked:
Who is Participating?
 
barreroConnect With a Mentor Commented:
When you add routes that way, there are not permanently.. there are just for the session...
If you want the routes being permanently, you nedd to add to rc.local the line:
route add -net 10.0.1.0 netmask 255.255.255.0 eth0

  then the route will be added for each time you boot your system...

      Marcel
0
All Courses

From novice to tech pro — start learning today.