Hello, Why is it so, that NetworkManager allows, and in several cases I've had, defaults to setting default route to several interfaces at the same time? Had my fair share of problems with how 172.17.62.something interface tries to ask for a DHCP lease from 193.something network. I know I could set never-default to the interfaces, but I shouldn't have to do it to every machine I had. Especially bad was the situation when I had two VLANs and a normal ethernet interface, and dhclient tried to ask a lease for the ethernet over the VLAN. Best regards, -- Sander Kuusemets University of Tartu, High Performance Computing, IT Specialist
How about disabling network manager and using the static ip addresses? Eero 17.3.2016 9.05 ip. "Sander Kuusemets" <sander.kuusemets at ut.ee> kirjoitti:> Hello, > > Why is it so, that NetworkManager allows, and in several cases I've had, > defaults to setting default route to several interfaces at the same time? > > Had my fair share of problems with how 172.17.62.something interface tries > to ask for a DHCP lease from 193.something network. I know I could set > never-default to the interfaces, but I shouldn't have to do it to every > machine I had. > > Especially bad was the situation when I had two VLANs and a normal > ethernet interface, and dhclient tried to ask a lease for the ethernet over > the VLAN. > > Best regards, > > -- > Sander Kuusemets > University of Tartu, High Performance Computing, IT Specialist > > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos >
Because I /*shouldn't */have to do that. It comes as a default network management service, so it's a bit counter-intuitive to have it drop the connection every few hours. And some parts of it are actually pretty good (nmcli -p con show). -- Sander Kuusemets University of Tartu, High Performance Computing, IT Specialist Skype: sander.kuusemets1 +372 737 5694 On 03/17/2016 09:18 PM, Eero Volotinen wrote:> How about disabling network manager and using the static ip addresses? > > Eero > 17.3.2016 9.05 ip. "Sander Kuusemets" <sander.kuusemets at ut.ee> kirjoitti: > >> Hello, >> >> Why is it so, that NetworkManager allows, and in several cases I've had, >> defaults to setting default route to several interfaces at the same time? >> >> Had my fair share of problems with how 172.17.62.something interface tries >> to ask for a DHCP lease from 193.something network. I know I could set >> never-default to the interfaces, but I shouldn't have to do it to every >> machine I had. >> >> Especially bad was the situation when I had two VLANs and a normal >> ethernet interface, and dhclient tried to ask a lease for the ethernet over >> the VLAN. >> >> Best regards, >> >> -- >> Sander Kuusemets >> University of Tartu, High Performance Computing, IT Specialist >> >> >> _______________________________________________ >> CentOS mailing list >> CentOS at centos.org >> https://lists.centos.org/mailman/listinfo/centos >> > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos
On 03/17/2016 12:04 PM, Sander Kuusemets wrote:> Why is it so, that NetworkManager allows, and in several cases I've > had, defaults to setting default route to several interfaces at the > same time?It does what the operators of the networks tell it to do.> Had my fair share of problems with how 172.17.62.something interface > tries to ask for a DHCP lease from 193.something network.Specifically why is that wrong? If the interface is physically attached to broadcast domain where a DHCP server provides information for 193.something, then presumably that is the information that the client should use.> I know I could set never-default to the interfaces, but I shouldn't > have to do it to every machine I had.Well, the way you would avoid configuring every client would be to offer consistent information from DHCP.> Especially bad was the situation when I had two VLANs and a normal > ethernet interface, and dhclient tried to ask a lease for the ethernet > over the VLAN.Do you mean tagged VLANs? What you're describing shouldn't be possible. If the client doesn't know about a tagged VLAN, it can't transmit a tagged packet containing a DHCP request. If that's not what you're describing, the problem really isn't clear.