I've been trying to make a jail on my server that is part of a separate vlan from the host and I'm having a hard time figuring out what should be configured on the host and what should be in the jail.
At first I had my 2 network ports on the server in a lagg configuration and a bridge with epairs for the jail and things were working mostly fine in the jail. I had internet access, but there were some issues loading a web ui and other odd behavior so I figured things would be better if I undid separated the 2 ports, one for the host and one for the jail.
The host is working fine, I bring up igb0 and give it a dhcp address and all is well on the host side.
But for the jail side, I'm not sure if I should bring up igb1 on the host or in the jail. I assume the vlan bridge should be created in the jail config file, but I've not 100% on that either.
No matter what I try, I can't ping the gateway. I've managed to ping another pc inside the vlan once(I think with igb1 and the bridge only in the ifconfig output from inside the jail) but never the gateway, it either says the network is down, network is unreachable or the ping hangs forever.
Basically, I bring igb1 up wherever and do this for the vlan(# is whatever number I'm testing with):
Knowing what goes where would be really helpful in figuring out where the problem is(I've tripled checked I didn't forget to change anything when I undid the lagg stuff but you never know) or if that above is even correct.
At first I had my 2 network ports on the server in a lagg configuration and a bridge with epairs for the jail and things were working mostly fine in the jail. I had internet access, but there were some issues loading a web ui and other odd behavior so I figured things would be better if I undid separated the 2 ports, one for the host and one for the jail.
The host is working fine, I bring up igb0 and give it a dhcp address and all is well on the host side.
But for the jail side, I'm not sure if I should bring up igb1 on the host or in the jail. I assume the vlan bridge should be created in the jail config file, but I've not 100% on that either.
No matter what I try, I can't ping the gateway. I've managed to ping another pc inside the vlan once(I think with igb1 and the bridge only in the ifconfig output from inside the jail) but never the gateway, it either says the network is down, network is unreachable or the ping hangs forever.
Basically, I bring igb1 up wherever and do this for the vlan(# is whatever number I'm testing with):
Code:
/sbin/ifconfig igb1.20 create vlan 20 vlandev igb1 inet 10.10.20.#/24 up
Knowing what goes where would be really helpful in figuring out where the problem is(I've tripled checked I didn't forget to change anything when I undid the lagg stuff but you never know) or if that above is even correct.