having an issue...
Bhyve runs fine by itself.
Bastille runs fine by itself.
When I try to run them at the same time Bhyve messes up my routing completely.
I think it has something to do with Bhyve creating a 2nd bridge and you can't have 2 bridges at once?
or I need to add the bhyve bridge to the bastille bridge group maybe...
Problem is the bhyve page shows you how to set it up and make it work but it doesn't explain anything really.
here is my ifconfig without bhyve: Bastille is running in vnet mode (although yet again I do not know why, I just followed the directions)
I wish I could find a FreeBSD networking class to take...
I just want to know how to setup Bhyve networking to work with my configuration and why.
Thanks!
Directions I followed for Bhyve:
Bhyve runs fine by itself.
Bastille runs fine by itself.
When I try to run them at the same time Bhyve messes up my routing completely.
I think it has something to do with Bhyve creating a 2nd bridge and you can't have 2 bridges at once?
or I need to add the bhyve bridge to the bastille bridge group maybe...
Problem is the bhyve page shows you how to set it up and make it work but it doesn't explain anything really.
here is my ifconfig without bhyve: Bastille is running in vnet mode (although yet again I do not know why, I just followed the directions)
I wish I could find a FreeBSD networking class to take...
I just want to know how to setup Bhyve networking to work with my configuration and why.
Thanks!
Code:
em0: flags=8963<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=4812099<RXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,VLAN_HWFILTER,NOMAP>
ether f8:b1:56:b7:fd:cb
inet 192.168.1.11 netmask 0xffffff00 broadcast 192.168.1.255
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
inet 127.0.0.1 netmask 0xff000000
groups: lo
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
bastille0: flags=8008<LOOPBACK,MULTICAST> metric 0 mtu 16384
options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
groups: lo
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
em0bridge: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 58:9c:fc:10:ff:fb
id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
member: e0a_bastille1 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 6 priority 128 path cost 2000
member: e0a_bastille0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 5 priority 128 path cost 2000
member: em0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 1 priority 128 path cost 20000
groups: bridge
nd6 options=9<PERFORMNUD,IFDISABLED>
e0a_bastille0: flags=8963<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
description: vnet host interface for Bastille jail adguard
options=8<VLAN_MTU>
ether 02:20:98:b7:fd:cb
hwaddr 02:3b:1e:6e:ff:0a
groups: epair
media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
status: active
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
e0a_bastille1: flags=8963<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
description: vnet host interface for Bastille jail xxxnet
options=8<VLAN_MTU>
ether 02:20:99:b7:fd:cb
hwaddr 02:7a:5f:d2:40:0a
groups: epair
media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
status: active
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
Directions I followed for Bhyve:
Code:
Now that you know your interface name, substitute it if necessary, where we refer to “ix1” below!
root@fbsd:/# vm init
root@fbsd:/# vm switch create public
root@fbsd:/# vm switch add public ix1
We now have a [I]switch[/I] interface named [I]vm-public [/I]which will show up in future [I]ifconfig[/I] commands; the VMs that we create will automatically get new [I]tap[/I] interfaces created and assigned to them using that [I]vm-public [/I]switch.
Last edited by a moderator: