Adding static routes with fc17

Alex mysqlstudent at gmail.com
Wed Jul 18 01:07:47 UTC 2012


Hi,

>> I have an fc17 install with a single interface and need to add another
>> route in addition to the default route. Previously, I could create
>> "route-eth0" (assuming eth0) with the following:
>>
>> x.x.x.x/z.z.z.z dev eth0
>
> FWIW, I switched over a VM to use network instead of NetworkManager....
>
> created route-p2p1
>
> with the content...
>
> 192.168.1.0/24 dev p2p1
>
> And on reboot....
>
> [egreshko at f17 ~]$ netstat -rn
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
> 0.0.0.0         192.168.0.1     0.0.0.0         UG        0 0          0 p2p1
> 169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 p2p1
> 192.168.0.0     0.0.0.0         255.255.255.0   U         0 0          0 p2p1
> 192.168.1.0     0.0.0.0         255.255.255.0   U         0 0          0 p2p1
>
> So, it should work for you too.....

It didn't. Not only was there no static route, but there was no routes
whatsoever.

There must be something else on your system that's creating that
static route for you. Perhaps some remnants of NetworkManager?

I have a /29, and other than that, the configuration is the same as yours.

This is also something that can't really be done remotely. The moment
I saved the route-eth0 file, I lost network connectivity. What is it
about that system that's perpetually looking for that file? It was
really bizarre. I didn't even restart the networking, and the
networking was changed.

Thankfully it was in a vm, so I just rebooted it remotely thru virt-manager.

Has anyone come up with the proper documentation on how to do this?
Sure would be appreciated.

Thanks,
Alex


More information about the users mailing list