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%2Bau=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=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu
> 1500
>
> options=8009b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LINKSTATE>
>        ether 00:14:5e:ee:2b:c0
>        inet xxx.xxx.26.224 netmask 0xffffff00 broadcast xxx.xxx.26.255
>        inet xxx.xxx.26.225 netmask 0xffffffff broadcast xxx.xxx.26.225
>        inet xxx.xxx.26.226 netmask 0xffffffff broadcast xxx.xxx.26.226
>        inet xxx.xxx.26.227 netmask 0xffffffff broadcast xxx.xxx.26.227
>        media: Ethernet autoselect
>        status: active
>        laggproto failover
>        laggport: bge1 flags=0<>
>        laggport: bge0 flags=5<MASTER,ACTIVE>
>


Create an Alias

Example:

ifconfig_em0_alias0="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: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2Bau=tec6GxaC0ix6=q-uL6=uG1Suxgt0ztwpWCyb-px6r3KBg>