Skip to main content

Questions tagged [networkmanager]

NetworkManager is a daemon, accessible via dbus, that provides high-level interface management. There are a number of ways for end users to access it: the command line `nmcli` program, the text-based-UI `nmtui` program, and the Gnome `nm-applet` program, among others.

Filter by
Sorted by
Tagged with
63 votes
4 answers
228k views

How to manage DNS in NetworkManager via console (nmcli)?

I have CentOS 7.2 (guest in VirtualBox, vagrant box centos/7, no GUI). I see there is a nameserver in file: $ cat /etc/resolv.conf # Generated by NetworkManager nameserver 10.0.2.3 But how to add or ...
Kirby's user avatar
  • 1,089
33 votes
8 answers
78k views

NetworkManager is not changing /etc/resolv.conf after openvpn dns push

I've got a problem which is "NetworkManager is not updating /etc/resolv.conf after openvpn connection with dns push configured". Here's my openvpn server config: (I've changed domain name to ABC.COM ...
jaor's user avatar
  • 435
31 votes
4 answers
42k views

No network connectivity to/from Docker CE container on CentOS 8

I just installed the latest release of docker-ce on CentOS, but I can't reach published ports from a neighboring server and can't reach the outside from the container itself. Running a plain vanilla ...
Saustrup's user avatar
  • 1,213
24 votes
7 answers
81k views

How do I force NetworkManager to update /etc/resolv.conf?

If I add a new DNS server using nmcli connection modify eth0 +ipv4.dns 8.8.8.8, I still have to update /etc/resolv.conf for the resolver to pick up the changes, right? So how do I force the update? ...
Mihai's user avatar
  • 3,226
21 votes
6 answers
134k views

"RTNETLINK answers: File exists" /etc/network/interfaces Does'nt contain 2 gateways, so what's wrong?

This is my /etc/network/interfaces file contents The only way this is taking effect is when the system reboots. I'm trying to get it effected manually. My attempts below. auto eth0 iface eth0 ...
wolfgang's user avatar
  • 315
15 votes
3 answers
24k views

What is the relation between NetworkManager and network service in Fedora/RHEL/Centos?

Hi I am new to Fedora/Centos/RHEL. I am confused about NetworkManager and network service in these Linux OS. May I know what is the relation between NetworkManager and network service? If I am using ...
userpal's user avatar
  • 613
10 votes
17 answers
4k views

Inexpensive Network Monitoring tools for Windows

I'm looking for a free or inexpensive Windows-based network monitoring tool for a small network. I'm familiar with Nagios, but we run a Windows-only shop and I don't want one oddball Linux machine to ...
user avatar
10 votes
4 answers
36k views

How can I set a search domain (and other resolv.conf parameters) in Ubuntu?

I like Ubuntu's NetworkManager -- it does a great job keeping track of all my WiFi parameters and passwords. However, when I actually plug in an Ethernet cable, the frustration begins. When hooked up ...
mike's user avatar
  • 4,033
10 votes
2 answers
20k views

NetworkManager does not bring up interface after reboot

I create an OVS bridge with: # ovs-vsctl add-br br-int This create a netdevice that I can see in ifconfig. And then I create a NetworkManager connection and bring it up: # nmcli connection add type ...
user2138912's user avatar
9 votes
3 answers
18k views

Ubuntu resolv.conf, not going to next nameserver?

I am using Ubuntu 10.04 Desktop, which comes by default with the "Network Manager" (which I am highly suspicious of). I am having an issue with resolving DNS zones on 2 different nameservers. resolv....
Cory J's user avatar
  • 1,598
9 votes
2 answers
56k views

How do use nmcli to enable DHCP forIPv4 and IPv6 on a specific interface?

I recently switched an interface from not being managed by NetworkManager to being managed but it does not get an IP. I would like to know what is the correct way to use nmcli to enable DHCP on this ...
sorin's user avatar
  • 8,266
9 votes
2 answers
8k views

Ubuntu 20.04 Networkmanager OpenVPN: accept pushed DNS but don't route all traffic to tun interface

I am trying to get some Ubuntu 20.04 clients at work to connect to a new OpenVPN server provided by our new server provider. The goal is to route only certain traffic into the tunnel (the ...
Valentin's user avatar
  • 171
9 votes
3 answers
18k views

Network Manager: failover between two default gateways

Is Network Manager able to check if a default gateway can route packages to the internet? I have two interfaces, both provide a route to the internet. When I unplug a cable from any of them, default ...
Volodymyr Linevych's user avatar
9 votes
1 answer
6k views

teaming with nmcli: bringing connection down and up again fails

On a centos 7 virtual box, I create a team like this: nmcli connection add type team con-name team0 ifname veteam0 nmcli connection modify team0 team.config roundrobin.conf [root@rhce1 ~]# cat ...
Isaac's user avatar
  • 1,215
8 votes
4 answers
31k views

NIS failing to bind

I have a bunch of machines which authenticate via NIS to a central server. I just bought a new CentOS 6.2 client machine, and it can't authenticate. The following is a list of the classics people ...
Alex's user avatar
  • 471
8 votes
1 answer
2k views

Linux self recovering DHCP after really long downtime?

I have a few CentOS 6/7 systems (non-production, experimental purposes) that have been configured to use DHCP for their IP address. Last week there was a big network disruption and I found that those ...
Niels Basjes's user avatar
  • 2,196
7 votes
3 answers
22k views

How to connect to VPN from the command line in Linux?

I have different tunnels that I configured using the network manager GUI. When I login to my desktop, I'm connected to the internet without any tunnels. To connect to a tunnel, I usually click on the ...
HappyDeveloper's user avatar
7 votes
1 answer
4k views

What is the unit of Signal as output in "nmcli dev wifi"

I want to know the unit in which The Signal is calculated. Is it in dBM ? Usually I see the dBM values are in -. What would the - and + values signify in dBM ? Also more the value is positive, does it ...
dig_123's user avatar
  • 305
6 votes
13 answers
16k views

Network monitoring tool for FreeBSD [closed]

I am using FreeBSD 6.1 as router. Now I looking for Network Traffic Monitoring software to see what's happening with internet link. I have two installed LAN cards in my system, one for lan and other ...
adopilot's user avatar
  • 1,531
6 votes
2 answers
22k views

How do I supply a password to NetworkManager-openconnect automatically?

I am running a RedHat Enterprise Linux 7.3 server with NetworkManager 1.4 that needs periodic access over VPN to a client's network using openconnect 7.06-1.el7. I can use nmcli to connect with the --...
Brad's user avatar
  • 161
6 votes
4 answers
20k views

Where does NetworkManager store the domain name for generating resolv.conf?

I am having problems getting my domain name set correctly on CentOS 6. My resolv.conf looks like this: nameserver 198.6.100.25 nameserver 198.6.100.53 nameserver 198.6.100.38 # Generated by ...
Andy Shinn's user avatar
  • 4,311
5 votes
1 answer
5k views

Bridge on vlan on teaming for KVM

I have problem to create bridge on vlan on teaming. Why I do something like that? - Kvm needs bridge - Vlans because I need vm’s in different subnets - Teaming in option active-backup (small HA) I do ...
user's user avatar
  • 51
5 votes
2 answers
3k views

NetworkManager - do not allow user to disable network or connection

By default, users that are logged in on the system are able to completely disable network or connection, is there a way to disable this? Thanks
GioMac's user avatar
  • 4,654
4 votes
2 answers
15k views

NetworkManager & dnsmasq - ignore auto DNS settings

I'm running Arch Linux with NetworkManager and dnsmasq set up. It all seems to work fine, except that I try to use the new CloudFlare 1.1.1.1 DNS, but the resolver keeps using the DNS that is ...
Taco de Wolff's user avatar
4 votes
1 answer
3k views

networkmanager-strongswan vpn - routing specific ip through VPN

I'm trying to setting a VPN on Linux Mint 19.2. I'm using the network-manager-strongswan so I added this file named VPN under /etc/NetworkManager/system-connections/ [connection] id=VPN uuid=...
Roberto Manfreda's user avatar
4 votes
2 answers
3k views

How to convert ip configuration from dhcp to static using nmcli?

is there a way to use nmcli to convert dhcp acquired IP configuration (IP,Mask,Gateway,DNS) to static configuration? Preferable in a way that i can use in a script? Thanks
Michał Gąsior's user avatar
4 votes
0 answers
1k views

nmcli static routes are ignored

I'm in doubt about how NetworkManager through nmcli manages static routes. I have a CentOS 7.1.1503 server with three network interfaces: [root@brick ~ ]# nmcli con show NOMBRE UUID ...
rober710's user avatar
  • 181
3 votes
2 answers
1k views

Find which program is replacing my resolv.conf file

I use network-manager on Debian 8. My config contains some custom DNS servers, so my /etc/resolv.conf file generated by network-manager looks like this: # Generated by NetworkManager search rudloff....
Rudloff's user avatar
  • 59
3 votes
2 answers
12k views

CentOS 6 WiFi using NetworkManager and Without GUI tools

I am using CentOS 6, trying desperately to get Wifi working via a ifcfg-wlan0 file and fudging with /etc/wpa_supplicant/wpa_supplicant.conf. I do not have an X server, so I do not want to use the GUI ...
unixman83's user avatar
  • 1,952
3 votes
2 answers
27k views

How to add interface alias on RHEL6 or CentOS6 with NetworkManager?

How to add a network interface alias (for example eth0:0) on CentOS6 or RHEL6 in the "correct" way that is through NetworkManager without NM_CONTROLLED=no. And this has to be done without GUI. Thank ...
Antoni Sawicki's user avatar
3 votes
2 answers
1k views

bridge for virtualisation stays in state DOWN - unable to get it up

Running Rocky 9.3, attempting to get a bridge for a public Range of IPs for use with Virtual machines. Same hardware used to run Centos 7.8 machine with it all working, am now trying to set it up the ...
Kevin Jones's user avatar
3 votes
1 answer
2k views

Routing issue on Linux with Mobile Broadband

Note: This is a "cross-post", I asked this same question on "superuser" StackExchange site, but without obtain any answers, just a comment (now curiously disappeared). I've thought this site is ...
Joe's user avatar
  • 31
3 votes
2 answers
6k views

NetworkManager bridge is not working

I face the same problem on 2 difference machines: A CentOS 8.1 and an openSUSE Leap 15.2 I want to create a bridge on each host that will be used from libvirtfor bridged networking. On both servers, I ...
ptselios's user avatar
3 votes
2 answers
5k views

Removing all domains from Network Manager DNS Search List

I'm trying to remove all values from the domain search list that's generated by the network manager. However I cannot get it to provide a blank list. I have tried using "ignore-auto-dns but the ...
Tim's user avatar
  • 31
3 votes
0 answers
156 views

What is the meaning of using netplan?

I’m running a few Ubuntu servers and recently started upgrading from 16.04 to 18.04. In this context I came in contact with NetworkManager and netplan. After sticking to ifupdown first, I finally ...
Norbert's user avatar
  • 231
3 votes
1 answer
595 views

Ubuntu & OpenConnect : any way to provide additional arguments?

I'm using OpenConnect to connect to my workplace via VPN. This works fine, but I'd like to use Ubuntu's network manager to establish connections. I guess it's a matter of having all connections ...
sbrattla's user avatar
  • 1,630
2 votes
1 answer
5k views

openconnect VPN works in KDE NetworkManager widget but not on command line

I need to connect to a Cisco VPN on Linux and at first I did this using the KDE NetworkManager plasma widget thingy. That worked fine and I'm able to connect to the VPN if I choose it from the Network ...
StFS's user avatar
  • 273
2 votes
2 answers
5k views

What is the proper way to setup Open vSwitch with NetworkManager in CentOS 8?

How it was before in good old times of network-scripts: I've describing bridge and port in files: /etc/sysconfig/network-scripts/ifcfg-br0 /etc/sysconfig/network-scripts/ifcfg-port0 than restart ...
Oleg Neumyvakin's user avatar
2 votes
2 answers
966 views

dnsmasq reads addn-hosts config but ignores it, falls back to system's /etc/hosts

I'm running dnsmasq installed as a NetworkManager plugin on my local Fedora 39 machine. All I need from dnsmasq is basically support for additional hosts files that I can organise by topics. My ...
vrs's user avatar
  • 143
2 votes
1 answer
678 views

How to fix NetworkManager-dispatcher script permission denied error?

I've got a fully updated RockyLinux 9.2 server, where I have a couple of network services running via Systemd. Following the instructions such as from here and here, I created a shell script that's ...
hpy's user avatar
  • 875
2 votes
1 answer
2k views

different DHCP behavior between machines using NetworkManager and not using NetworkManager

can anyone please shed some light on the differences I list below. And maybe explain why NetworkManager does it differently. And please advise if we can change NetworkManager to behave more like the ...
jodlgc's user avatar
  • 25
2 votes
1 answer
937 views

How do I configure NetworkManger-OpenVPN to only use a VPN for some IPs?

My company is using a pfsense router to manage a simple VPN for the office. The idea is that I should be able to connect to the VPN from home and use it to (a) access servers on the office LAN and (b)...
Daniel Quinn's user avatar
2 votes
3 answers
13k views

dnsmasq on virbr0 (libvirt) and network manager

I want to run dnsmasq on my local machine in order to configure a wildcard to resolve to 127.0.0.1 for testing purposes. However, when I went to start dnsmasq with systemd I got the following error ...
user avatar
2 votes
2 answers
13k views

Issue with RHEL7 and disabling NetworkManager

Okay community, let's see if we can figure this one out, cause I'm out of answers. Where I work I am setting up a bunch of RedHat Enterprise Linux servers. There is a collection of RHEL6 and RHEL7 ...
cjmaio's user avatar
  • 31
2 votes
2 answers
2k views

Linux: how to verify my network configuration before doing a restart

I am trying to build a network bridge for my VMs on a server. So I added a new file and changed another in the /etc/sysconfig/network-scripts directory. Then I did a network reboot with the ...
wael34218's user avatar
  • 341
2 votes
2 answers
1k views

NetworkManager applet looks like it can't see network

My system is Ubuntu 9.04. There is NetworkManager applet, but it looks like there are no networks. When I click it, there is disabled menu "Wired Network/device not managed". I have working eth0 ...
amorfis's user avatar
  • 757
2 votes
5 answers
7k views

How do I set the single-request option in NetworkManager?

In our environment (lots of CentOS 7 VMs), we routinely encounter the oft-discussed issue where name service lookups result in a 5 second delay as a request times out, even on "successful" requests. ...
Thomas J. Girsch's user avatar
2 votes
1 answer
1k views

Avoid Replacing DHCP-discovered DNS Resolvers?

I am on CentOS 7.4 attempting to configure dnsmasq for DNS caching and per-zone DNS servers for running Consul. Essentially, the dnsmasq configuration boils down to this: # filter everything with ...
Naftuli Kay's user avatar
  • 1,748
2 votes
2 answers
2k views

nmcli is not working in Kickstart script

I have the following commands in a Kickstart post-install script: firewall-offline-cmd --new-zone=management firewall-offline-cmd --zone=management --add-service=ssh --add-service=snmp firewall-...
miken32's user avatar
  • 974
2 votes
1 answer
693 views

How to persist on a wifi network in a ubuntu machine?

I've got a Ubuntu machine running a software that requires internet. However, sometimes the wifi fails (router reboot for example) and doesn't find the network again, until I manually service network-...
Homme Sauvage's user avatar