From owner-freebsd-net@freebsd.org Thu Feb 15 18:02:16 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 72DCCF0CF4C for ; Thu, 15 Feb 2018 18:02:16 +0000 (UTC) (envelope-from tuctboh@gmail.com) Received: from mail-pg0-x234.google.com (mail-pg0-x234.google.com [IPv6:2607:f8b0:400e:c05::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B4617866E8 for ; Thu, 15 Feb 2018 18:02:15 +0000 (UTC) (envelope-from tuctboh@gmail.com) Received: by mail-pg0-x234.google.com with SMTP id f6so351465pgs.10 for ; Thu, 15 Feb 2018 10:02:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=2EBjnDt8ml1MGOrvIDisvYWFTRIgP1cqYwKyus/1YKg=; b=Qk1fS9BSXa+wjh/sqqxDLFGfo/FGnqhKE0dl+httekJ1SwaB4Ei3SVxzLlCWw2EsBV 7OInQtgk0xyj9EtMncwdCxUTf2D9QFlYTUtGaf8BWNkZh61rfhZWTBV6JrGiKRgko3ie yBC3rAiBOBOeJ8CiLfBkVURmEckihCY9LozTkmuQ3IrpYdQH9iRuM2ANwlC8bg96jgnO b1ZdFGsaOQbf+ERqqw2h+r9a5rFH41h3RnNKvtTLeAY5BSTC/Q+l4Uuom2L3iE1//iUl yYoczTsmUIRqbd0UAhQXfrKT9+2i8AoOTSmcG2QdAebSYb30J+msvEtPuoc8Thptq8Bi 6vGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=2EBjnDt8ml1MGOrvIDisvYWFTRIgP1cqYwKyus/1YKg=; b=WyeawGx/RtCCVB9XhpMMBhD5r6BgyfMI4zgHxF25JJ/842Q1lWYxUogspMPEceADDh T/6900JMOc1zRCr32Yg053a6O8CTInsAu9Bk/s3XS9PHdnOceLgFU2qh+k9TI3Ox0TMN 6QnAQhy96mz5QYhujvMN4QvTYdgFQWlSvd2sLkaZTTv8Bowugyjj6vNGxxLcneGTl0RD oZRtmyibVHPFQNonTrZkn8f3z00JD+XPZSMSTCkNXszsWjnJagDWlCvDosXTD3GYd7T2 1OAgsHkjJIoolCnplnBJ6lnJuHTx6qYg5p23zpRSBNVAIdz8L0nEm+39vK+75fWSd62D eyAA== X-Gm-Message-State: APf1xPBI8zL7W5YYBVxAJVphWTcpiH+UM82j/GRAEALXG3qe3/g/POWO 3DFSS9yHPSJLDgstRRdx+YU4TfbiMesJgALXZQI= X-Google-Smtp-Source: AH8x226TRpzzNugF7ipQe3vlhd0Bccz6O4dW2dpovtMFTzPUK6M52YpIsMQimn5rV/u8Md9y8Qt8UyipDsawZy3ivpQ= X-Received: by 10.99.165.9 with SMTP id n9mr2886967pgf.324.1518717734600; Thu, 15 Feb 2018 10:02:14 -0800 (PST) MIME-Version: 1.0 Received: by 10.100.164.35 with HTTP; Thu, 15 Feb 2018 10:02:14 -0800 (PST) In-Reply-To: References: From: Scott Ellentuch Date: Thu, 15 Feb 2018 13:02:14 -0500 Message-ID: Subject: Re: How to remove a screwed up route? To: Lee Brown Cc: freebsd-net Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Feb 2018 18:02:16 -0000 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. # uname -r 4.10-STABLE Tuc =E2=80=8C On Thu, Feb 15, 2018 at 12:51 PM, Lee Brown wrote: > On Thu, Feb 15, 2018 at 9:47 AM, Scott Ellentuch > 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" >