Ahmed Kamal wrote:
> 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
>