PhiloEpisteme
Guru
- Joined
- Oct 18, 2018
- Messages
- 969
Apologies if this has been answered before. I've done some searching and found several posts discussing bridging but didn't see anything about my specific use case and I wanted to get a bit of advice/guidance before I set it up.
I have two FreeNAS machines running currently, my primary and my backup which receives replication data from the primary. Both machines have 2x1Gb ports and 2x10Gb ports. I used 1 of the 10Gb ports on each to set up replication and 1 of the 1Gb ports each to wire directly to the rest of my network thus giving me GUI access to both machines.
Due to some rearranging I'm in a situation where it would be extremely ideal to only have a single network cable running from my router to my FreeNAS machines. Replication is working as before because the machines were directly connected and required no additional router etc. However, because I have only a single cable connecting to servers to the rest of the house without some solution I currently have access to only 1 GUI at a time.
Am I correct in believing that I can use network bridging to give me access to both machines using only the single cable running from my router to the primary machine on 1 1Gb port bridged with a second network port leading to my backup nas?
From looking at the FreeBSD docs on this topic I believe that I could do something like the following
Is the above correct? And if so, can I just set those each as tunables for rc.config under System->Tunables? I assume order matters there and that it goes top-to-bottom?
The
The above leads me to believe that without
I have two FreeNAS machines running currently, my primary and my backup which receives replication data from the primary. Both machines have 2x1Gb ports and 2x10Gb ports. I used 1 of the 10Gb ports on each to set up replication and 1 of the 1Gb ports each to wire directly to the rest of my network thus giving me GUI access to both machines.
Due to some rearranging I'm in a situation where it would be extremely ideal to only have a single network cable running from my router to my FreeNAS machines. Replication is working as before because the machines were directly connected and required no additional router etc. However, because I have only a single cable connecting to servers to the rest of the house without some solution I currently have access to only 1 GUI at a time.
Am I correct in believing that I can use network bridging to give me access to both machines using only the single cable running from my router to the primary machine on 1 1Gb port bridged with a second network port leading to my backup nas?
Code:
router | \ igb0 | | bridge0 / igb1 | Primary | | cxl0 (10Gb) | || | || ------------------- | || | cxl0 (10Gb) | Backup \ igb0
From looking at the FreeBSD docs on this topic I believe that I could do something like the following
Code:
cloned_interfaces="bridge0" ifconfig_bridge0="addm igb0 addm igb1 up" ifconfig_igb0="up" ifconfig_igb1="up" ifconfig_bridge0="inet 192.168.0.1/24" #or whatever IP my primary server should be accessed at
Is the above correct? And if so, can I just set those each as tunables for rc.config under System->Tunables? I assume order matters there and that it goes top-to-bottom?
The
ifconfig_bridge0="inet 192.168.0.1/24"
line comes from the following statement in the FreeBSD documentationIf the bridge host needs an IP address, set it on the bridge interface, not on the member interfaces. The address can be set statically or via DHCP. This example sets a static IP address:
The above leads me to believe that without
ifconfig_bridge0="inet 192.168.0.1/24"
I would no longer have access to my primary machine via igb0.
Last edited: