Problem using bz's multi-IP/IPv6/No-IP Jail Patch (7-STABLE)

Kage kagekonjou at gmail.com
Sun Mar 8 11:22:47 PDT 2009


Greetings,

So I'm having an issue using 7-STABLE, specifically with bz's
multi-IP/IPv6 patch.  First and foremost, all IPs attempted to be used
(both v4 and v6) are aliased properly in ifconfig.  Secondly,
assigning multiple IPs to a jail is no problem, as jls -v reflects the
multiples assigned correctly.  However, within the jail, ifconfig
reflects only the first IP listed in rc.conf.  What am I missing, or
what do I need to do to?

Cheers!


Example rc.conf entry:

ifconfig_vr0_alias10="inet 12.34.56.78 netmask 255.255.255.255"
ifconfig_vr0_alias11="inet 12.34.56.79 netmask 255.255.255.255"
ifconfig_vr0_alias12="inet 12.34.56.80 netmask 255.255.255.255"

jail_kage_rootdir="/usr/jails/kage"
jail_kage_hostname="kage.foo"
jail_kage_ip="12.34.56.78,12.34.56.79,12.34.56.80"

Example jls:

     5  kage.foo                 /usr/jails/kage
                                      ALIVE
        6
        12.34.56.78
        12.34.56.79
        12.34.56.80


Example ifconfig within that jail:

[root at kage:/usr/local/etc/apache22] ifconfig
vr0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=2808<VLAN_MTU,WOL_UCAST,WOL_MAGIC>
        ether 00:1d:92:0d:77:8a
        inet 12.34.56.78 netmask 0xffffffff broadcast 12.34.56.1
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
[root at kage:/usr/local/etc/apache22]


-- 
~ Kage


More information about the freebsd-jail mailing list