Hi All,
I am looking to setup two physical nics with two different ip addresses and two different gateways. The basics:
I am looking to make one nic part of the private ip range 192.168.1.0/24 with a gateway of 192.168.1.255. I am looking to make the second nic part of a public ip range 77.77.77.0/24 with a gateway of 77.77.77.77 . As I am attempting to understand I need to setup setfib for this to work properly. My understanding is this has become part of the kernel default after version 10.
So I am looking to place a line in /boot/loader.conf.
Then modify my /etc/rc.conf
How does this look? Thank you in advance.
I am looking to setup two physical nics with two different ip addresses and two different gateways. The basics:
Code:
10.2-RELEASE FreeBSD 10.2-RELEASE #0 r286666: Wed Aug 12 19:31:38 UTC 2015
root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC i386
I am looking to make one nic part of the private ip range 192.168.1.0/24 with a gateway of 192.168.1.255. I am looking to make the second nic part of a public ip range 77.77.77.0/24 with a gateway of 77.77.77.77 . As I am attempting to understand I need to setup setfib for this to work properly. My understanding is this has become part of the kernel default after version 10.
So I am looking to place a line in /boot/loader.conf.
Code:
## Loader Config ##
net.fibs=2
Then modify my /etc/rc.conf
Code:
## RC.CONF ##
static_routes="fibdefault"
route_fibdefault="default 192.168.1.255 -fib 1
route_fibdefault="default 77.77.77.77 -fib 2
ifconfig em0="DHCP"
ifconfig em1="77.77.77.76 netmask 255.255.255.240"
How does this look? Thank you in advance.