Jails within different networks ... ?

Sergio Tam tam.sergio at gmail.com
Sat Dec 3 21:34:28 UTC 2011


2011/12/3 Snoop <snoop at 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.


More information about the freebsd-questions mailing list