RE: Default route problem

From: Martin and Belinda Richardson (m.b.richardson_at_keypoint.com.au)
Date: 01/28/04

  • Next message: Luke Kearney: "Re: Default route problem"
    To: "Luke Kearney" <lukek@meibin.net>
    Date: Wed, 28 Jan 2004 16:00:07 +1100
    
    

    Hi Luke,
                    thanks for the reply. I would have thought that rc.conf was the place to
    look, but maybe not the only place...
    Here is a copy of netstat -rn
    Routing tables

    Internet:
    Destination Gateway Flags Refs Use Netif Expire
    default 192.168.55.8 UGSc 1 0 vx0
    127.0.0.1 127.0.0.1 UH 0 2 lo0
    192.168.55 link#1 UC 1 0 vx0
    192.168.55.1 00:a0:24:b3:c9:b6 UHLW 2 3840 lo0

    in the bootup display (not available from DMESG), it says it is adding a
    default route, just as if you were doing it manually. I know it is no
    problem to "route delete default" and this works fine, but all it takes is a
    reboot, and Im back to square one! The person I am building the gateway for
    is not un*x savvy, and he justs wants something that sits quietly in the
    corner. Sooner or later he will probably reboot...

    Thanks again.

    Cheers, Martin

    -----Original Message-----
    From: Luke Kearney [mailto:lukek@meibin.net]
    Sent: Wednesday, 28 January 2004 12:54 PM
    To: Martin and Belinda Richardson
    Cc: freebsd-questions@freebsd.org
    Subject: Re: Default route problem

    On Wed, 28 Jan 2004 12:54:08 +1100
    "Martin and Belinda Richardson" <m.b.richardson@keypoint.com.au> granted us
    these pearls of wisdom:

    > Hi everyone,
    > I am having a problem with a gateway I am building for a friend. I have
    > initially set the box up on my home network and have set this box to use
    my
    > gateway temporarily while I fetch some ports etc. Now that I have removed
    it
    > from my network, and edited /etc/rc.conf to set it up to act as a gateway,
    > it STILL sets the default route to my old gateway. I cant find any config
    > file that says "add default route" or anything. I have not set
    defaultroute
    > in /etc/rc.conf, and it is set to "NO" in /etc/defaults/rc.conf!
    > If I use /stand/sysinstall to configure the interface, I notice that there
    > is a value already there for the ipV4 gateway (my gateway). deleting this
    > here does not work. There must be a file somewhere that I have not seen
    > causing me the trouble. Please help!
    >

    AFAIK the only place you need to make changes is /etc/rc.conf then
    either reboot or sh /etc/netstart and you should be good to go. You
    could manually add that route though whilst the machine is up,
    # route add default 192.168.X.X and that should be OK too. what is the
    output of netstat -rn ?

    HTH

    LukeK

    ---
    Incoming mail is certified Virus Free.
    Checked by AVG anti-virus system (http://www.grisoft.com).
    Version: 6.0.564 / Virus Database: 356 - Release Date: 19/01/2004
    ---
    Outgoing mail is certified Virus Free.
    Checked by AVG anti-virus system (http://www.grisoft.com).
    Version: 6.0.564 / Virus Database: 356 - Release Date: 19/01/2004
    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
    

  • Next message: Luke Kearney: "Re: Default route problem"

    Relevant Pages

    • Re: Configuring Multiple gateways in Win2003 Server
      ... To get it to be there after a reboot, just put a batch file with the "route ... >>> specific IP address or range through one gateway and all other external ...
      (microsoft.public.win2000.networking)
    • Re: multihome network
      ... in my netstat -rn, and no its still doesn't work... ... different then coming from my other public IP that assigned on my fxp1 ... what i've tried is adding route on my box ... $gateway is the next hop upstream on the interface that has ...
      (freebsd-questions)
    • Re: ICMP Host Unreachable from gateway
      ... I would say the gateway has to be xxx.xxx.16.1 correct. ... You dont even have a default route. ... A sample of my similarly munged netstat O/P: ...
      (comp.unix.solaris)
    • Re: Phantom default gateway
      ... reset it to the "real" gateway in smit tcpip, ... You forgot to remove the default route permanently. ... Michael Prix ... I seem to have the same issue (a route appear after a reboot, ...
      (comp.unix.aix)
    • Problem with routes disappearing.
      ... All of the servers in question are IBM SC5200's with Sco ... On the other set of servers the route is still there ... but stops working and cant be seen with netstat -rn. ... add host 192.168.1.14: gateway 10.1.39.1: File exists ...
      (comp.unix.sco.misc)