Jails (again) flushing the route table

James B. Byrne byrnejb at harte-lyne.ca
Mon Apr 3 17:24:56 UTC 2017


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 at 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



More information about the freebsd-questions mailing list