DHCP default route
DHCP default route
HI guys. I have 2 isp-a and I get IP address from both by dhcp, I need to set metric on one of interfaces higher than on another. I have tried adding METRIC=150 in ifcfg file but it did not work. My os id centos 7
Re: DHCP default route
I don't think you can.
There's 2 ways (of course) to add routes with DHCP:
1) Option 33: http://www.networksorcery.com/enp/proto ... ion033.htm
2) Option 121: https://tools.ietf.org/html/rfc3442
I didn't read all of those links, but I seem to recall it can't be done anyway.
As a solution, perhaps you could add more specific routes, so traffic destined to *that* place will do down the more specific route, rather than the default (or another route)?
There's 2 ways (of course) to add routes with DHCP:
1) Option 33: http://www.networksorcery.com/enp/proto ... ion033.htm
2) Option 121: https://tools.ietf.org/html/rfc3442
I didn't read all of those links, but I seem to recall it can't be done anyway.
As a solution, perhaps you could add more specific routes, so traffic destined to *that* place will do down the more specific route, rather than the default (or another route)?
Re: DHCP default route
Editing an ifcfg-file and using nmcli can have a different result.
Check 'man nm-options' as there might be:
https://people.freedesktop.org/~lkundra ... ute-metric
Check 'man nm-options' as there might be:
https://people.freedesktop.org/~lkundra ... ute-metric
Re: DHCP default route
Just for clarity of the issue: is the default route obtained from one DHCP getting overwritten by the DHCP from the other server?
Re: DHCP default route
Most likely, yes. The solution should be to add DEFROUTE=no to the ifcfg file for the interface that shouldn't be setting the default route.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke