https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195859

--- Comment #6 from Craig Rodrigues <rodr...@freebsd.org> ---
Herbert found by creating VNET jails and then stopping them, he could reproduce
the problem.  Here are the steps he used to reproduce the problem:

/etc/rc.conf:

hostname="beastie.home.lan"
ifconfig_em0="inet 192.168.1.25 netmask 0xffff0000"
defaultrouter="192.168.1.255"
cloned_interfaces="bridge0"
ifconfig_bridge0="inet 10.0.0.1 netmask 0xff000000"
sshd_enable="YES"
fsck_y_enable="YES"
background_fsck="NO"
syslogd_flags="-ss"
gateway_enable="YES"
pf_enable="NO"
pflog_enable="NO"
jail_enable="NO"
jail_list="jail01 jail02 jail03 jail04"
devfs_load_rulesets="YES"

/etc/jail.conf:

jail01 {
     name = "jail01";
     path = /usr/local/jails/jail01;
     mount.devfs;
     host.hostname = jail01.home.lan;
     vnet = "new";
     vnet.interface = "epair0b";
     persist;
     exec.prestart = "ifconfig epair0 create";
     exec.prestart += "ifconfig bridge0 addm epair0a";
     exec.prestart += "ifconfig epair0a up";

     exec.start = "";
     #exec.start = "/bin/sh /etc/rc";

     exec.poststart =    "jexec $name ifconfig epair0b 10.0.0.10 netmask
255.0.0.0 up";
     exec.poststart +=   "jexec $name route add default 10.0.0.1";
     exec.poststart +=   "jexec $name sh /etc/rc";

     exec.stop = "/bin/sh /etc/rc.shutdown";

     exec.poststop =     "ifconfig bridge0 deletem epair0a";
     exec.poststop +=    "ifconfig epair0a destroy";
}

/etc/rc.conf in jail01:

hostname="jail01.home.lan"
sshd_enable="YES"
sendmail_enable="NONE"

Starting jail with "/etc/rc.d/jail onestart jail01" or "jail -c jail01".
Stopping jail with "/etc/rc.d/jail onestop jail01" or "jail -r jail01".

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"

Reply via email to