Questions tagged [nmcli]

21 questions
6
votes
2 answers

How do use nmcli to enable dhcp for ipv4 and ipv6 on a specific interface?

I recently switch 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 usen nmcli to enable dhcp on this interface? for both, ipv4/6. PS. Obviously that I…
sorin
  • 8,016
  • 24
  • 79
  • 103
2
votes
1 answer

nmcli eqivalent of ip route add command for interface routing

I can add route over the interface using ip route add command, for example: ip r a 1.1.244.244/32 dev main-br How to achieve the same using nmcli?
slawek
  • 31
  • 3
2
votes
0 answers

Centos7 / NetworkManager - how to reload route files?

How can I reload the running NetworkManager routing configuration from the route-XXX files in a Centos/RHEL7 server? I have a few servers which get routes updated directly via the /etc/sysconfig/network-scripts/route-XXX files (part of a legacy…
André Fernandes
  • 969
  • 1
  • 10
  • 25
2
votes
1 answer

nmcli set static ip address without the DHCP?

I want to assign a static IP address for the eth0 interface without the DHCP allocating a dynamic address. i tried setting the method to manual but that did not help and i end up with 2 IPs on the interface one static and the other is dynamic. i…
HAK
  • 23
  • 1
  • 4
1
vote
1 answer

Removing config defaults for a slave interface of a bridge

I am running Fedora 31 and am having trouble with NetworkManager. I tried to make a bond of two ethernet interfaces and then put the bond in a bridge, yet the bond is getting an IPv4 address with DHCP and an IPv6 one statelessly. This means the…
John Tate
  • 179
  • 4
  • 19
1
vote
0 answers

Load balancing and failover using nmcli

I would like to use nmcli (NetworkManager, on CentOS) to balance the load from the subnet 172.22.0.0/24 across the two gateways (.3 and .1) on the 192.168.1.0/24 subnet. These two gateways are connected to two different ISP commercial fiber-optic…
1
vote
1 answer

Difference between network bridges created by `ip` and `nmcli`

I notice that the bridges created by ip command and nmcli command are distinct: # Create a bridge via ip command and name it br-ip ip link add dev br-ip type bridge # Create another bridge via nmcli command and name it br-nmcli nmcli con add…
Douglas Su
  • 263
  • 1
  • 3
  • 9
1
vote
1 answer

Assign each NIC an ip range or subnet

I have a manjaro linux server with at least two network interface controllers (NICs) and would like to route all traffic going to certain IP address ranges or subnets over one, and everything else over one of the others. So far I've configured the…
danba
  • 147
  • 7
1
vote
1 answer

Get uuid of connection after adding it using nmcli

I would like to add VPN connections to multiple machines and let them activate automatically when when using the default ethernet connection. However I need the UUID of the VPN connection I just added to configure the automatic connection. What I…
Septatrix
  • 113
  • 1
  • 4
1
vote
0 answers

Adding default gateway using nmcli - Centos 8

I am trying to add 2 default gateways on my Centos8 server with different interface names and metrics. I have a route file for each interface with the route "default via metric ". This is not working as I don't see the routes when I specify "ip…
ram
  • 13
  • 1
  • 6
0
votes
0 answers

Virtual Box network routing

My setup: I have 2 virtual box machines that run CentOS, Server1 and Server2. Server1 is configured with 2 network interfaces which are enp0s3 and enp0s8. enp0s3 is connected to VM NAT network with network ID 10.0.2.0 and enp0s8 is connected…
Anton Stafeyev
  • 340
  • 2
  • 3
  • 13
0
votes
1 answer

tun0 configuration via script using nmcli

Background For work I have to use Appgate SDP which is a VPN client. It creates a tun0 device, adds a bunch (300+) routes and is supposed to setup the DNS servers with domain search for tun0. At some point in the last week the DNS configuration…
0
votes
0 answers

Is possible set static IP between 2 devices with nmcli

I have a computer that has a wireless connection and has an ethernet. I need to communicate with a connected device through a local network created between my computer and this device (communication will be done via TCP/IP using socket). For this…
Joey Fran
  • 101
0
votes
0 answers

Configure static IP scope via nmcli

Like it was written here by MCFurry I haven't been able to find a way to configure scope link using nmcli. I'm trying to setup a network bridge on a server using nmcli. The bridge should have multiple configured static IP addresses with a scope…
elysch
  • 161
  • 1
  • 2
0
votes
1 answer

Make IP route and routing rules permanent using nmcli on RHEL 8 / Rocky 8

I have a network interface for which I would like to configure routes. # ip address show br_10G_V888 6: br_10G_V888: mtu 1500 qdisc noqueue state UP group default qlen 1000 link/ether 78:ac:44:09:9d:82 brd…
Nicolas De Jay
  • 209
  • 2
  • 11
1
2