2 NICs, both DHCP

Code:
# WAN
ifconfig_em1=DHCP
# IPTV
ifconfig_em0=DHCP

em1 is route to the internet
em0 is part of a 10.191.168.0/22

Problem is, default getaway always gets set to em0's => 10.191.168.1

I want em1's to be a default getaway.

How do I do it?
 
Set first to SYNCDHCP.

If 2nd still overwrites the first, then add /etc/dhclient-enter-hooks:
Code:
add_new_routes() {
   return 0
}

delete_old_routes () {
    return 0
}

to prevent dhcp from modifying existing default route.
 
Thx!
I did apropos search for SYNCDHCP, of all man pages and it returned nothing.
Code:
# man 5 rc.conf
Does have it.
 
Back
Top