I have the following configuration:
Where I have configured a jail to use 192.168.2.45 on vlan2.
However, I would also like another jail to have access to the same vlan. I have only one physical NIC with a single port, hence the reliance on vlans and the likes. I have scoured the web and the ifconfig man pages, and I'm not getting answers, and I'm not sure where to go from here. Im I right in assuming I could create an alias of the "ifconfig_bge0_2" inferface and could end up with something like this:
It is really just as simple as appending alias'n' in the case of a vlan interface? Then assigning that IP to the other jail (192.168.2.55)?
Right now, it would distrupt work and I'd like some thoughts on it before I go ahead and try this.
Code:
vlans_bge0="1 2 3"
ifconfig_bge0_1="inet 192.168.1.40/24 broadcast 192.168.1.255"
ifconfig_bge0_2="inet 192.168.2.45/24 broadcast 192.168.2.255"
ifconfig_bge0="UP"
Where I have configured a jail to use 192.168.2.45 on vlan2.
However, I would also like another jail to have access to the same vlan. I have only one physical NIC with a single port, hence the reliance on vlans and the likes. I have scoured the web and the ifconfig man pages, and I'm not getting answers, and I'm not sure where to go from here. Im I right in assuming I could create an alias of the "ifconfig_bge0_2" inferface and could end up with something like this:
Code:
vlans_bge0="1 2 3"
ifconfig_bge0_1="inet 192.168.1.40/24 broadcast 192.168.1.255"
ifconfig_bge0_2="inet 192.168.2.45/24 broadcast 192.168.2.255"
ifconfig_bge0_2_alias0="inet 192.168.2.55/24 broadcast 192.168.2.255"
ifconfig_bge0="UP"
It is really just as simple as appending alias'n' in the case of a vlan interface? Then assigning that IP to the other jail (192.168.2.55)?
Right now, it would distrupt work and I'd like some thoughts on it before I go ahead and try this.