[Bug 208001] After turning off the jail does not remove network routes

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat May 28 23:32:38 UTC 2016


Jamie Gritton <jamie at FreeBSD.org> changed:

           What    |Removed                     |Added
                 CC|                            |jamie at FreeBSD.org
             Status|New                         |Closed
         Resolution|---                         |Works As Intended

--- Comment #3 from Jamie Gritton <jamie at FreeBSD.org> ---
I suspect the problem lies in the "/24" of "re0|".  Jail aliases
are almost always going to use the /32 netmask, which is the default if one
isn't specified.  From what I see of your netstat output, your primary address
is on the subnet.  The only time you'd want a non-/32 subnet on a
jail is if your set aside a separate subnet used only for that jail.

Note this instruction from the "alias" section of ifconfig(8):
"If the address is on the same subnet as the first network address for this
interface, a non-conflicting netmask must be given.  Usually 0xffffffff is most

In any case, I was unable to reproduce this behavior.  I don't know all the
parameters of your setup, but it looks like you should just remove those

You are receiving this mail because:
You are on the CC list for the bug.

More information about the freebsd-amd64 mailing list