Deleting incorrect routing table entry

Deleting incorrect routing table entry

Post by Ville Walverant » Fri, 07 Jun 2002 14:30:17



A question to all FreeBSD gurus:

I noticed on my server yesterday that no external address with an IP
number beginning with "66." can be accessed. And, on the other hand,
external users with an IP number beginning with "66." can not access any
resource on my server (even ping won't work).

Today after poking around for a while I found the problem. There's an
entry "66" in the routing table! Try as I might, I have not yet figured
out how to get rid of it, OR what in the configuration causes it to be
inserted during the boot sequence.

I've tried command

  route delete -net 66

...but it deletes all entries in the table beginning with "66" (not just
the erroneous "66" -entry), thus effectively disconnecting the system
from the network.

How can I get rid of the "66" entry, and how to stop it from coming back
when the system is rebooted?

Thanks!!

// Ville

Here are my routing tables..

[DING!]# netstat -r
Routing tables

Internet:
Destination        Gateway            Flags    Refs    Use  Netif Expire
default            66.34.224.1        UGSc       15     29   fxp0
66                 link#1             UC          3      0   fxp0
66.34.224.1        0:4:76:ef:f:88     UHLW       14      0   fxp0 1200
astronite          0:30:48:22:6:c0    UHLW       18   3226    lo0
66.34.233.2/32     link#1             UC          0      0   fxp0
66.34.233.4/32     link#1             UC          0      0   fxp0
66.34.233.5/32     link#1             UC          0      0   fxp0
66.34.233.6/32     link#1             UC          0      0   fxp0
66.34.233.8/32     link#1             UC          0      0   fxp0
66.34.233.10       0:90:d6:3:1:6c     UHLW        2   1333   fxp0 1056
66.34.233.11/32    link#1             UC          0      0   fxp0
66.34.233.13/32    link#1             UC          0      0   fxp0
66.34.233.20/32    link#1             UC          0      0   fxp0
66.34.233.100/32   link#1             UC          0      0   fxp0
66.34.233.110/32   link#1             UC          0      0   fxp0
ns2.astronite.com. 0:30:48:22:6:c0    UHLW        1     92    lo0 =>
66.34.233.120/32   link#1             UC          1      0   fxp0
66.34.233.122/32   link#1             UC          0      0   fxp0
66.34.233.123/32   link#1             UC          0      0   fxp0
66.34.233.124/32   link#1             UC          0      0   fxp0
66.34.233.125/32   link#1             UC          0      0   fxp0
66.34.233.126/32   link#1             UC          0      0   fxp0
localhost.astronit localhost.astronit UH          0    171    lo0

Internet6:
Destination        Gateway            Flags      Netif Expire
localhost          localhost          UH          lo0
fe80::%fxp0        link#1             UC         fxp0
fe80::230:48ff:fe2 0:30:48:22:6:c0    UHL         lo0
fe80::%lo0         fe80::1%lo0        Uc          lo0
fe80::1%lo0        link#5             UHL         lo0
ff01::             localhost          U           lo0
ff02::%fxp0        link#1             UC         fxp0
ff02::%lo0         localhost          UC          lo0

[21:00]#

 
 
 

Deleting incorrect routing table entry

Post by Ted Mittelstaed » Fri, 07 Jun 2002 18:00:13



>A question to all FreeBSD gurus:

>I noticed on my server yesterday that no external address with an IP
>number beginning with "66."

Please post your /etc/rc.conf file

--

Author of:          The FreeBSD Corporate Networker's Guide
Book website:         http://www.freebsd-corp-net-guide.com

 
 
 

Deleting incorrect routing table entry

Post by Ville Walverant » Fri, 07 Jun 2002 22:10:55





> >A question to all FreeBSD gurus:

> >I noticed on my server yesterday that no external address with an IP
> >number beginning with "66."

> Please post your /etc/rc.conf file

Ted,

Here's the /etc/rc.conf (everything else is unchanged in
/etc/defaults/rc.conf)

Thanks for taking a look at this!

// Ville

kern_securelevel_enable="NO"
nfs_reserved_port_only="YES"
sendmail_enable="NO"
sshd_enable="YES"
usbd_enable="NO"
portmap_enable="YES"
inetd_flags="-w -W -l -R 1024"
inetd_enable="YES"

named_enable="YES"
named_program="/usr/local/sbin/named"
named_flags="-u bind -t /var/named"

syslogd_enable="YES"
syslogd_program="/usr/sbin/syslogd"
syslogd_flags="-s -s -l /var/named/dev/log"

defaultrouter="66.34.224.1"
hostname="astronite.com"

ifconfig_fxp0="inet 66.34.233.1"
ifconfig_fxp0_alias0="inet 66.34.233.2  netmask 255.255.255.255"
ifconfig_fxp0_alias1="inet 66.34.233.4  netmask 255.255.255.255"
ifconfig_fxp0_alias2="inet 66.34.233.5  netmask 255.255.255.255"
ifconfig_fxp0_alias3="inet 66.34.233.6  netmask 255.255.255.255"
ifconfig_fxp0_alias4="inet 66.34.233.8  netmask 255.255.255.255"
ifconfig_fxp0_alias5="inet 66.34.233.11  netmask 255.255.255.255"
ifconfig_fxp0_alias6="inet 66.34.233.13  netmask 255.255.255.255"
ifconfig_fxp0_alias7="inet 66.34.233.20  netmask 255.255.255.255"
ifconfig_fxp0_alias8="inet 66.34.233.100  netmask 255.255.255.255"
ifconfig_fxp0_alias9="inet 66.34.233.110  netmask 255.255.255.255"
ifconfig_fxp0_alias10="inet 66.34.233.120  netmask 255.255.255.255"
ifconfig_fxp0_alias11="inet 66.34.233.122  netmask 255.255.255.255"
ifconfig_fxp0_alias12="inet 66.34.233.123  netmask 255.255.255.255"
ifconfig_fxp0_alias13="inet 66.34.233.124  netmask 255.255.255.255"
ifconfig_fxp0_alias14="inet 66.34.233.125  netmask 255.255.255.255"
ifconfig_fxp0_alias15="inet 66.34.233.126  netmask 255.255.255.255"

 
 
 

Deleting incorrect routing table entry

Post by Dmitry Pryanishniko » Fri, 07 Jun 2002 22:26:31


Hello!


> ifconfig_fxp0="inet 66.34.233.1"

 Define valid netmask here. By default it will be 255.0.0.0 (ex-class "A"),
which makes machine think that all 66.0.0.0/8 addresses are directly reachable
via fxp0 (i.e., sitting on your LAN)! Ask your ISP about exact netmask value.

Sincerely, Dmitry

Atlantis ISP, System Administrator

nic-hdl: LYNX-RIPE

 
 
 

Deleting incorrect routing table entry

Post by Ville Walverant » Sat, 08 Jun 2002 02:47:42




> Hello!


> > ifconfig_fxp0="inet 66.34.233.1"

>  Define valid netmask here. By default it will be 255.0.0.0 (ex-class "A"),
> which makes machine think that all 66.0.0.0/8 addresses are directly reachable
> via fxp0 (i.e., sitting on your LAN)! Ask your ISP about exact netmask value.

> Sincerely, Dmitry

Dmitry,

Thanks for the response. Indeed that was the cause! I called up the co-
lo ISP (in my case CI HOST), and they provided me with the actual
netmask. Once added in, I rebooted the server and now everything's
working fine! Strange that they didn't provide the netmask info in the
account data when I first opened the account with them several months
ago.

Thanks again,

// Ville

 
 
 

1. How to delete route entry from routing table

Dear :
    I got the following output after testing multipath routing function
under AIX 5.1.0.0.
    Now, question is , how could I delete these static route entry for
default gateway ?

OUTPUT
=============================================================
# netstat -rn
Routing tables
Destination      Gateway           Flags   Refs     Use  If   PMTU Exp
Groups

Route Tree for Protocol Family 2 (Internet):
default          10.32.35.71       UGc       0        0  en0     -   -   =>
default          10.32.35.1        UGc       0        0  en0     -   -   =>
default          192.168.6.1       UGc       0        0  en0     -   -   =>
default          192.168.6.1       UGc       0        0  en0     -   -   =>
default          10.32.35.1        UGc       0        0  en0     -   -   =>
default          10.32.35.71       UGc       0        0  en0     -   -

2. Help: pixrect.h, pr_put port problems

3. How Do Routing Table Entries Get Added to Routing Table at Bootup?

4. Q: RealPlayer G2 "looping"

5. default route entry vanishing from routing table

6. AIX User & Administrator Platform

7. Routing table default route entry question

8. umask mayhem!!!!!!!

9. cannot delete arp table entry

10. AIX 4.3.3 and routing table entries

11. Why are entries getting added to routing table???

12. 2 entries for eth0 in route table

13. How to check if a specific gateway entry exist route table?