Default route multiple nics

Status
Not open for further replies.

Clauu

Cadet
Joined
Mar 8, 2015
Messages
1
Hello, i'm having some problems with the default route since i added a second nic, my initial config was 1nic with 192.168.70.103 as main ip and 192.168.70.1 default route, now after i added the second nic with a dhcp ip(192.168.80.0/24) the default route changed to 192.168.80.1 although 'IPv4 Default Gateway' is still 192.168.70.1 and the same for console configuration menu - '4) Configure Default Route' has the same address 192.168.70.1 while netstat -r and web gui - Network Summary prints 192.168.80.1 as default route.. i tried to add a tunable rc.conf variable defaultrouter with 192.168.70.1 but without any luck the default route is still 192.168.80.1, is this a bug? If i delete/add the desired route it will be ok until reboot.. then the 80.1 will come back as the default one
latest 9.3 stable release(FreeNAS-9.3-STABLE-201503071634)
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,680
A better solution is to avoid using DHCP for servers; nail down your fileserver and assign it a permanent address on both networks, and a static default route.
 
Status
Not open for further replies.
Top