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

Greg Edwards greg at nas-inet.com
Sat Apr 7 12:52:27 CDT 2001


m m wrote:
> 
> > > >>>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.
> > >
> >
> >Most of what you've got here seems correct, there is some junk though.
> >I know real men use vi but:)  I'd start with running (RH 6.2) network
> 
> unfortunatelly, I am vi person. if you can point all files related to this
> issue, I guess that I can have vi kill (delete) them.
> 
> >configurator, its on control panel or netcfg from command line.  Use
> >"Interfaces" and "Routing" to setup your nics and default route.  See
> >what you've got after saving this and we can go from there.
> 
> It does deleted some. however there are some stays:
> 
> before:
> 
> 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.198    0.0.0.0         UG    0      0        0 eth0
> 
> after:
> 
> 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.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
> 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.198    0.0.0.0         UG    0      0        0 eth0
> 

I never can remember all of the config files involved in admin work,
that's why I'm becomming a GUI weenie:)  There are several files, as
mentioned, "routed" "static-routes", "network", and maybe some others
that may or may not need editing.  You should find them in
"/etc/sysconfig".  I suggested "netcfg" cause if your on RH, or a
derivative (ie Mandrake like me), it'll be available and will get all of
the files for you.

Your table looks pretty good now except for the duplicate default
(0.0.0.0).  If your using netcfg on the routing window enter your
default route as 65.10.71.198 on device eth0.  This relates to "GATEWAY"
and "GATEWAYDEV" in the file "network".

Here's 1 of my workstations with a similar hardware setup and a couple
of subnets.  I use a NAT device at 10.2.0.3 to get out to the world.

Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt
Iface
10.2.0.5        0.0.0.0         255.255.255.255 UH        0 0          0
eth1
10.3.0.5        0.0.0.0         255.255.255.255 UH        0 0          0
eth0
10.2.0.0        0.0.0.0         255.255.0.0     U         0 0          0
eth1
10.3.0.0        10.3.0.5        255.255.0.0     UG        0 0          0
eth0
10.3.0.0        0.0.0.0         255.255.0.0     U         0 0          0
eth0
10.4.0.0        10.2.0.1        255.255.0.0     UG        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         10.2.0.3        0.0.0.0         UG        0 0          0
eth1   

-- 
Greg Edwards <greg at nas-inet.com>



More information about the Discuss mailing list