Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Apr 2017 13:24:37 -0400
From:      "James B. Byrne" <byrnejb@harte-lyne.ca>
To:        freebsd-questions@freebsd.org
Subject:   Jails (again) flushing the route table
Message-ID:  <671c3c7b7760af12cdb7f3a7b01e3c04.squirrel@webmail.harte-lyne.ca>

next in thread | raw e-mail | index | archive | help
I have these setting for two jails:

ezjail-admin list
STA JID  IP              Hostname                       Root Directory
--- ---- --------------- ------------------------------
------------------------
ZR  3    127.0.2.1       hllmx18                       
/usr/jails/hllmx18
    3    em0|192.168.209.18
    3    em0|192.168.209.218
ZS  N/A  127.0.1.1       hlldns02                      
/usr/jails/hlldns02
    N/A  em0|192.168.209.33


On the host I see this:

netstat -r
Routing tables

Internet:
Destination        Gateway            Flags     Netif Expire
localhost          link#3             UH          lo0
192.168.209.0/24   link#1             U           em0
192.168.209.41     link#1             UHS         lo0
192.168.209.218    link#5             UH          lo2
192.168.209.233    link#4             UH          lo1
216.185.71.0/24    link#1             U           em0
216.185.71.141     link#1             UHS         lo0

Internet6:
Destination        Gateway            Flags     Netif Expire
localhost          link#3             UH          lo0
fe80::%lo0/64      link#3             U           lo0
fe80::1%lo0        link#3             UHS         lo0


When I do this:

route delete 192.168.209.233

Then I see this:

route: writing to routing socket: Address already in use
delete host 192.168.209.233 fib 0: gateway uses the same route

192.168.209.233 was formerly assigned to hlldns02.
    N/A  em0|192.168.209.233

How do I remove this entry in the routing table?

I had previously tried this without success:

/etc/rc.d/netif restart && /etc/rc.d/routing restart

-- 
***          e-Mail is NOT a SECURE channel          ***
        Do NOT transmit sensitive data via e-Mail
 Do NOT open attachments nor follow links sent by e-Mail

James B. Byrne                mailto:ByrneJB@Harte-Lyne.ca
Harte & Lyne Limited          http://www.harte-lyne.ca
9 Brockley Drive              vox: +1 905 561 1241
Hamilton, Ontario             fax: +1 905 561 0757
Canada  L8E 3C3




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?671c3c7b7760af12cdb7f3a7b01e3c04.squirrel>