Fighting with vnet / jails epair and so on

Denny Schierz linuxmail at 4lin.net
Thu Jan 19 07:22:24 UTC 2012


hi,

Am 18.01.2012 um 23:21 schrieb Philipp Huebner:
> 
> I use 9.0.0 release for host and jail and a generic kernel with  OPTIONS
> VIMAGE being the only change/addition.
> No problem.

so, how looks your rc.conf config ? Do you use vimage the tool? I can't use vimage (as I know) on sparc64.

What I did to get it working without /etc/rc.d/jail:
====================
jail -c vnet jid="101" name=template host.hostname=template.example.com path=/jails/template/ persist
ifconfig epair0 create
ifconfig bridge0 addm epair0a
ifconfig epair0b vnet 101
jexec 101 ifconfig epair0b 192.168.1.2 netmask 255.255.255.0
jexec 101 route add default 192.168.1.1
ifconfig epair0a up
====================

ping 192.168.1.2

64 bytes from 192.168.1.2: icmp_seq=1 ttl=64 time=0.054 ms

inside the Jail I have only "lo" and "epair0b" and it works :-)

but even not from /etc/rc.conf and that is the problem.

cu denny



More information about the freebsd-stable mailing list