jails

Dirk Engling erdgeist at erdgeist.org
Tue Jan 31 19:54:39 UTC 2012


On 31.01.12 20:43, Bender, Chris wrote:

> ifconfig_em0="inet 172.19.4.67 netmask 255.255.255.0 mtu 9000 polling
> up"

> ifconfig_em0_alias0="172.19.4.44 netmask 255.255.255.255"
> ifconfig_em0_alias1="172.19.4.36 netmask 255.255.255.255"
> ifconfig_em0_alias2="172.19.4.38 netmask 255.255.255.255"
> ifconfig_em0_alias3="172.19.4.45 netmask 255.255.255.255"
> ifconfig_em0_alias4="172.19.4.39 netmask 255.255.255.255"
> ifconfig_em0_alias5="172.19.4.190 netmask 255.255.255.255"
> ifconfig_em0_alias6="172.19.4.43 netmask 255.255.255.255"
> ifconfig_em0_alias7="172.19.4.42 netmask 255.255.255.255"
> ifconfig_em0_alias9="172.19.4.41 netmask 255.255.255.255"
> ifconfig_em0_alias10="172.19.4.46 netmask 255.255.255.255"
> ifconfig_em0_alias11="172.19.4.47 netmask 255.255.255.255"
> ifconfig_em0_alias12="172.19.4.48 netmask 255.255.255.255"
> ifconfig_em0_alias13="172.19.4.37 netmask 255.255.255.255"
> # ifconfig_em0_alias2="172.19.4.32 netmask 255.255.255.255"
> 
> # ifconfig_em0_alias8="172.19.4.200 netmask 255.255.255.255"

This missing alias8 in the last line leads to alias_9-13 not being
configured, as the ... rather stupid way of counting up variables with
suffixes is very error prone and you may have just stepped into the trap.

alias9="172.19.4.41" would have been tools2's IP address but that never
was configured.

You should use the new ipv4_addrs_em0="172.19.4.32 172.19.4.36-39
172.19.4.41-48 ..." Makro to avoid those pitfalls.

> # ezjail
> ezjail_enable="NO"

This needs to be enabled, too.

Regards,

  erdgeist


More information about the freebsd-jail mailing list