[NTLUG:Discuss] how do I delete routing rules/entries permanent?

m m llliiilll at hotmail.com
Wed Apr 4 15:22:52 CDT 2001



>From: MadHat <madhat at unspecific.com>

>
>>>From: MadHat <madhat at unspecific.com>

>>>At 06:04 PM 4/3/2001 +0000, you wrote:
>>>>Hi all:
>>>>how do I delete routing rules/entries permanent?
>>>>I can delete it, but when I reboot, the deleted rules go back.
>>>>Thanks a lot!
>>>
>>>it would depend on how they are getting added in the first place.
>>
>>some of them add by netconf, some of them by manually add and some are
>>during installation.
>
>OK, lets get specific.  You can change the IPs to be safer, but I would
>like to know what routes you have.
>netstat -rn
>
>to show the routes.  If you know where each one is coming in, that would
>make it easy, but I am thinking this is not the case...  Once we know the
>route, maybe we can figure out where it is coming from.

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use 
Iface
65.10.71.198    0.0.0.0         255.255.255.255 UH    0      0        0 eth0
192.168.1.1     0.0.0.0         255.255.255.255 UH    0      0        0 eth1
192.168.100.0   192.168.100.1   255.255.255.0   UG    0      0        0 eth1
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1
192.168.1.0     192.168.1.1     255.255.255.0   U     0      0        0 eth1
0.0.0.0         0.0.0.0         255.0.0.0       U     0      0        0 eth0
0.0.0.0         65.10.71.198    0.0.0.0         UG    0      0        0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         65.10.71.198    0.0.0.0         UG    0      0        0 eth0
0.0.0.0         65.10.71.128    0.0.0.0         UG    0      0        0 eth0
see there are a lot of useless rules here, and make it doesn't work.

my ip 65.10.71.198
gateway 65.10.71.129
OS RH 6.2

I guess I need only these:

Destination     Gateway         Genmask         Flags Metric Ref    Use 
Iface
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         65.10.71.198    0.0.0.0         UG    0      0        0 eth0

Do I need this?
24.10.20.43     0.0.0.0         255.255.255.255 UH    0      0        0 eth0
192.168.0.0     192.168.0.1     255.255.255.0   UG    0      0        0 eth1

Can I assign a network address to a NIC? e.x. assign 192.168.1.0 to a NIC?


>
>
>
>
>>>You could just take the delete statement you used to manually remove the
>>>route and add it to the startup scripts, after routing is initialized, of
>>>course.
>>which startup scripts is better? rc.local?
>
>What distribution? Sorry if I wasn't paying attention and you already said
>this, but I don't see it.
>
>
>>I don't think this is a way to _permanent_ delete the rules.
>>this is a _every_time_deletion_ (tempary) on an existing rules at reboot.
>
>No, not the best way, but sometimes it takes a work around so you don't
>have to think about it for a bit, then you can come back with an open mind
>and a clear head.
>
>>Lee said: "on red hat systems, edit /etc/sysconfig/static-routes"
>>this does not work.
>>
>>Jay Urish said:
>>
>>You want to edit /etc/sysconfig/network
>>
>>I guess I need more hint on this.
>>
>>
>>
>>>
>>>
>>>>_________________________________________________________________________
>>>>Get Your Private, Free E-mail from MSN Hotmail at 
>>>>http://www.hotmail.com.
>>>>
>>>>_______________________________________________
>>>>http://www.ntlug.org/mailman/listinfo/discuss
>>>
>>>--
>>>MadHat at unspecific.com
>>>
>>>_______________________________________________
>>>http://www.ntlug.org/mailman/listinfo/discuss
>>
>>_________________________________________________________________________
>>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>>
>>_______________________________________________
>>http://www.ntlug.org/mailman/listinfo/discuss
>
>--
>MadHat at unspecific.com
>
>_______________________________________________
>http://www.ntlug.org/mailman/listinfo/discuss

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




More information about the Discuss mailing list