Java Mailing List Archive

http://www.redhatconfig.com/

Home » Red Hat Enterprise Linux 5 »

[rhelv5-list] delete default route and add custom one

Ahmed Kamal

2008-03-01

Replies:

Author LoginPost Reply
Hi List,
I'm fighting with a small problem. My eth1 NIC has IP 172.30.0.0/16, whenever the interface is started, an automatic route is added
172.30.0.0      0.0.0.0         255.255.0.0     U     0      0        0 eth1
The thing is, this would generally be right for most people, but not for me. I need it to be
172.30.0.0      172.30.0.1      255.255.0.0     UG    0      0        0 eth1
to pass from our router.
I have added a file route-eth1 with the following
172.30.0.0/16 via 172.30.0.1 dev eth1
But when restarting the interface, this gives error "RTNETLINK answers: File Exists", I think this error is because of the automatically added route.

The question is how do I get rid of that automatically added route, and add mine! I need to do this the redhat way (i.e not rc.local). Any help is highly appreciated :)
Regards

_______________________________________________
rhelv5-list mailing list
rhelv5-list@(protected)
https://www.redhat.com/mailman/listinfo/rhelv5-list
©2008 redhatconfig.com - Jax Systems, LLC, U.S.A.