Hey all,
I follow along in Lucas' new book FreeBSD mastery: Jails. Starting on p. 159, I copied over the /usr/share/examples/jail/jib file and make it executable (something Lucas fails to mention). However, I use a different name for my physical interface: lab instead of jailether.
Next I follow along and create two test jails:
However, these interfaces do not get added to the labbridge interface that got created. I thus added them manually:
Now, although both jails are connected to the bridge (and I've configured IP addresses on them) I still cannot ping one jail from the other.
Anyone got a clue as to what I'm doing wrong?
I follow along in Lucas' new book FreeBSD mastery: Jails. Starting on p. 159, I copied over the /usr/share/examples/jail/jib file and make it executable (something Lucas fails to mention). However, I use a different name for my physical interface: lab instead of jailether.
Code:
ifconfig_em0_name="lab"
ifconfig_lab="up"
Next I follow along and create two test jails:
Code:
test02 {
vnet;
vnet.interface = "e0a_test02";
exec.prestart += "/usr/local/scripts/jib addm test02 lab";
exec.poststop += "/usr/local/scripts/jib destroy test02";
}
test03 {
vnet;
vnet.interface = "e0a_$name";
exec.prestart += "/usr/local/scripts/jib addm $name lab";
exec.poststop += "/usr/local/scripts/jib destroy $name";
}
ifconfig labbridge addm e0b_test02 addm e0b_test03 up
Now, although both jails are connected to the bridge (and I've configured IP addresses on them) I still cannot ping one jail from the other.
Code:
tom:~/ $ sudo jexec test02 ifconfig e0a_test02
e0a_test02: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8<VLAN_MTU>
ether 02:50:7f:0c:1a:6a
hwaddr 02:18:17:5a:62:0a
inet 203.0.113.2 netmask 0xffffff00 broadcast 203.0.113.255
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
status: active
groups: epair
tom:~/ $ sudo jexec test03 ifconfig e0a_test03
e0a_test03: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8<VLAN_MTU>
ether 02:50:80:0c:1a:6a
hwaddr 02:54:5d:26:1e:0a
inet 203.0.113.3 netmask 0xffffff00 broadcast 203.0.113.255
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
status: active
groups: epair
Anyone got a clue as to what I'm doing wrong?