Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Mar 2009 17:05:18 -0400
From:      Kage <kagekonjou@gmail.com>
To:        freebsd-jail@freebsd.org
Subject:   Re: Problem using bz's multi-IP/IPv6/No-IP Jail Patch (7-STABLE)
Message-ID:  <d1556b2b0903081405r62961134i1296c571b22eac95@mail.gmail.com>
In-Reply-To: <d1556b2b0903081122p1753b34ej3677083988124805@mail.gmail.com>
References:  <d1556b2b0903081122p1753b34ej3677083988124805@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Encountering more issues now.  Binding just an IPv6 address to a jail
shows up in jls -v, but when I run ifconfig -a in the jail, I get an
error I've never encountered, and doesn't show up on any Google
search:

[root@nub:/etc] jls -v
   JID  Hostname                      Path
        Name                          State
        CPUSetID
        IP Address(es)
     9  jail.template.tld             /usr/jails/TEMPLATE
                                      ALIVE
        10
        2610:150:c248:dead:beef:c0ff:eec0:deaa

[root@jail:/] ifconfig -a
ifconfig: socket(family 2,SOCK_DGRAM): Protocol not supported


On Sun, Mar 8, 2009 at 2:22 PM, Kage <kagekonjou@gmail.com> wrote:
> Greetings,
>
> So I'm having an issue using 7-STABLE, specifically with bz's
> multi-IP/IPv6 patch. =A0First and foremost, all IPs attempted to be used
> (both v4 and v6) are aliased properly in ifconfig. =A0Secondly,
> assigning multiple IPs to a jail is no problem, as jls -v reflects the
> multiples assigned correctly. =A0However, within the jail, ifconfig
> reflects only the first IP listed in rc.conf. =A0What am I missing, or
> what do I need to do to?
>
> Cheers!
>
>
> Example rc.conf entry:
>
> ifconfig_vr0_alias10=3D"inet 12.34.56.78 netmask 255.255.255.255"
> ifconfig_vr0_alias11=3D"inet 12.34.56.79 netmask 255.255.255.255"
> ifconfig_vr0_alias12=3D"inet 12.34.56.80 netmask 255.255.255.255"
>
> jail_kage_rootdir=3D"/usr/jails/kage"
> jail_kage_hostname=3D"kage.foo"
> jail_kage_ip=3D"12.34.56.78,12.34.56.79,12.34.56.80"
>
> Example jls:
>
> =A0 =A0 5 =A0kage.foo =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 /usr/jails/kage
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0ALIVE
> =A0 =A0 =A0 =A06
> =A0 =A0 =A0 =A012.34.56.78
> =A0 =A0 =A0 =A012.34.56.79
> =A0 =A0 =A0 =A012.34.56.80
>
>
> Example ifconfig within that jail:
>
> [root@kage:/usr/local/etc/apache22] ifconfig
> vr0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 15=
00
> =A0 =A0 =A0 =A0options=3D2808<VLAN_MTU,WOL_UCAST,WOL_MAGIC>
> =A0 =A0 =A0 =A0ether 00:1d:92:0d:77:8a
> =A0 =A0 =A0 =A0inet 12.34.56.78 netmask 0xffffffff broadcast 12.34.56.1
> =A0 =A0 =A0 =A0media: Ethernet autoselect (100baseTX <full-duplex>)
> =A0 =A0 =A0 =A0status: active
> lo0: flags=3D8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
> [root@kage:/usr/local/etc/apache22]
>
>
> --
> ~ Kage
>



--=20
~ Kage



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