Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Dec 2011 15:34:26 -0600
From:      Sergio Tam <tam.sergio@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Jails within different networks ... ?
Message-ID:  <CA+au=tec6GxaC0ix6=q-uL6=uG1Suxgt0ztwpWCyb-px6r3KBg@mail.gmail.com>
In-Reply-To: <1322934867.86416.1.camel@blackfriar.inhio.eu>
References:  <1322934867.86416.1.camel@blackfriar.inhio.eu>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
2011/12/3 Snoop <snoop@email.it>:
> Hi there, I've a doubt!
> I have 3 jails within the host xxx.xxx.26.224 configured in this way
> (below) and everything works well.
> What if I want to enable another jail but I don't want to assign to that
> my next available public ip address xxx.xxx.26.228/24 but I want this
> jail to have a private ip address like 172.16.1.2/27?
> Is that possible or it's a delirium?
> I don't want to waste my public ip address for a jail which I want to
> have a network configured but not to be publicly visible.
>
> Many thanks in advance.
>
> lagg0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu
> 1500
>
> options=3D8009b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LINKSTA=
TE>
> =A0 =A0 =A0 =A0ether 00:14:5e:ee:2b:c0
> =A0 =A0 =A0 =A0inet xxx.xxx.26.224 netmask 0xffffff00 broadcast xxx.xxx.2=
6.255
> =A0 =A0 =A0 =A0inet xxx.xxx.26.225 netmask 0xffffffff broadcast xxx.xxx.2=
6.225
> =A0 =A0 =A0 =A0inet xxx.xxx.26.226 netmask 0xffffffff broadcast xxx.xxx.2=
6.226
> =A0 =A0 =A0 =A0inet xxx.xxx.26.227 netmask 0xffffffff broadcast xxx.xxx.2=
6.227
> =A0 =A0 =A0 =A0media: Ethernet autoselect
> =A0 =A0 =A0 =A0status: active
> =A0 =A0 =A0 =A0laggproto failover
> =A0 =A0 =A0 =A0laggport: bge1 flags=3D0<>
> =A0 =A0 =A0 =A0laggport: bge0 flags=3D5<MASTER,ACTIVE>
>


Create an Alias

Example:

ifconfig_em0_alias0=3D"inet 192.0.2.9 netmask 255.255.255.255"


http://blather.michaelwlucas.com/archives/1021

Regards.



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?CA+au=tec6GxaC0ix6=q-uL6=uG1Suxgt0ztwpWCyb-px6r3KBg>