Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Feb 2018 13:02:14 -0500
From:      Scott Ellentuch <tuctboh@gmail.com>
To:        Lee Brown <leeb@ratnaling.org>
Cc:        freebsd-net <freebsd-net@freebsd.org>
Subject:   Re: How to remove a screwed up route?
Message-ID:  <CAM-0sLywk9BXoM=G0LMwc5hFRyNArVuMW2c5Sm65bOeRp2SEDA@mail.gmail.com>
In-Reply-To: <CAFPNf5_QRRvQY5_bXnKwSMzR%2BG1-oqKe3Y1dP5nD9LxihNqjqA@mail.gmail.com>
References:  <CAM-0sLxoE3zOiRQzkrr=Wf9gXuQH7b8-RyEEjt%2BANFCJzj5FSQ@mail.gmail.com> <CAFPNf5_QRRvQY5_bXnKwSMzR%2BG1-oqKe3Y1dP5nD9LxihNqjqA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
SIGH, I was hoping it wouldn't come to this.

I've been trying to decommission this server for over 8 months now... And
the group that needs to help hasn't done their thing.

<sheepish>

# uname -r

4.10-STABLE
</sheepish>

Tuc

=E2=80=8C

On Thu, Feb 15, 2018 at 12:51 PM, Lee Brown <leeb@ratnaling.org> wrote:

> On Thu, Feb 15, 2018 at 9:47 AM, Scott Ellentuch <tuctboh@gmail.com>
> wrote:
>
> > Hi,
> >
> > I did a very foolish thing....
> >
> > route add -net 61.177.172.137 gw 127.0.0.1
> >
> >
> > 1) Thats not a net, thats a host
> > 2) Thats my Linux's syntax, not what I expected
> >
> > So now I have the following in my netstat -rn
> >
> > 61.0.0.1&0x7f000001 MY.GW.IP.HERE       UGSc        1        0   fxp0
> >
> >
> > And I don't know the right magic to delete it.
> >
> > Thanks, Tuc
> >
> >
> > =E2=80=8C
> > _______________________________________________
> > freebsd-net@freebsd.org mailing list
> > https://lists.freebsd.org/mailman/listinfo/freebsd-net
> > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"
> >
> What version of FreeBSD?  That command did not work on my 11.1-RELEASE-p6
> system.
>
>
> root@apron:~ # route add -net 1.2.3.4 gw 127.0.0.1
> route: bad address: gw
>
>
> Here's what worked for me.  Just use route del with the same parameters
>
>
> root@apron:~ # route add -net 1.2.3.4 127.0.0.1
> add net 1.2.3.4: gateway 127.0.0.1
> root@apron:~ # netstat -nr
> Routing tables
>
> Internet:
> Destination        Gateway            Flags     Netif Expire
> default            10.1.10.1          UGS        bge0
> 1.2.3.4/32         127.0.0.1          UGS         lo0
> 10.0.0.0/8         10.1.10.1          UGS        bge0
> 10.1.10.0/24       link#1             U          bge0
> 10.1.10.175        link#1             UHS         lo0
> 127.0.0.1          link#2             UH          lo0
>
> Internet6:
> Destination                       Gateway                       Flags
> Netif Expire
> ::/96                             ::1                           UGRS
> lo0
> ::1                               link#2                        UH
> lo0
> ::ffff:0.0.0.0/96                 ::1                           UGRS
> lo0
> fe80::/10                         ::1                           UGRS
> lo0
> fe80::%lo0/64                     link#2                        U
> lo0
> fe80::1%lo0                       link#2                        UHS
> lo0
> ff02::/16                         ::1                           UGRS
> lo0
>
> root@apron:~ # route del -net 1.2.3.4 127.0.0.1
> del net 1.2.3.4: gateway 127.0.0.1
> root@apron:~ # netstat -nr
> Routing tables
>
> Internet:
> Destination        Gateway            Flags     Netif Expire
> default            10.1.10.1          UGS        bge0
> 10.0.0.0/8         10.1.10.1          UGS        bge0
> 10.1.10.0/24       link#1             U          bge0
> 10.1.10.175        link#1             UHS         lo0
> 127.0.0.1          link#2             UH          lo0
>
> Internet6:
> Destination                       Gateway                       Flags
> Netif Expire
> ::/96                             ::1                           UGRS
> lo0
> ::1                               link#2                        UH
> lo0
> ::ffff:0.0.0.0/96                 ::1                           UGRS
> lo0
> fe80::/10                         ::1                           UGRS
> lo0
> fe80::%lo0/64                     link#2                        U
> lo0
> fe80::1%lo0                       link#2                        UHS
> lo0
> ff02::/16                         ::1                           UGRS
> lo0
> root@apron:~ # uname -a
> FreeBSD apron.ad.nyingma.org 11.1-RELEASE-p6 FreeBSD 11.1-RELEASE-p6 #0
> r328506M: Sat Jan 27 23:09:57 PST 2018
> root@apron.ad.nyingma.org:/usr/obj/usr/src/sys/GENERIC
> amd64
> _______________________________________________
> freebsd-net@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAM-0sLywk9BXoM=G0LMwc5hFRyNArVuMW2c5Sm65bOeRp2SEDA>