Questions tagged [nmcli]

16 questions
3
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
  • 7,668
  • 24
  • 75
  • 100
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
  • 959
  • 7
  • 24
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
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
  • 243
  • 1
  • 3
  • 8
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
  • 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
  • 5
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
  • 3
  • 13
0
votes
0 answers

Openstack: Vlan provider network failing on bond created using nmcl

I have two SRIOV ports on 2 compute node (each compute having ports named eno49 and eno50) and I have created bond on those using below nmcli cmd mcli con add type bond con-name bond0 ifname bond0 mode active-backup nmcli con add type bond-slave…
0
votes
0 answers

Routing between 2 networks on Linux

My system topology: On an ubuntu machine with 2 ethernet ports (eth0, eth1) i have connected another ubuntu machine as client and an OCRCamera (also client). the requirement is that the main ubuntu machine will be DHCP server and router, so that the…
0
votes
0 answers

Why is NetworkManager in disabled status?

ubuntu 20.04 server host Tell me why when getting nmcli status nmcli general I get STATE CONNECTIVITY WIFI-HW WIFI WWAN-HW WWAN disconnected unknown enabled enabled enabled enabled At the same time, the…
Vadim
  • 111
  • 3
0
votes
1 answer

nmcli connection import type wireguard writes additional default route - How to avoid it?

At start I have: [root@client ~]# ip ro | grep default default via 10.0.2.2 dev eth0 proto dhcp metric 100 When i say nmcli connection import type wireguard file /etc/wireguard/wg0.conf I get [root@client ~]# ip ro | grep default default dev wg0…
0
votes
1 answer

Routing with nftables (Fedora33, nmcli, brctl)

A/ Host (Fedora 33) with Ethernet if eth0. ip 192.168.18.11(/24) and B1/ Kvm guest with if vnet0 enslaved to virbr101. ip 192.168.101.88(/24) (manual routing, static IP) or B2/ Kvm guest with if vnet1 enslaved to virbr102. ip 192.168.102.210(/24)…
asoundmove
  • 256
  • 1
  • 2
  • 6
0
votes
2 answers

Adding multiple IPs on same physical interface - but with different logical interfaces (CentOS 8 + NetworkManager)

I'm adding a secondary IP to my CentOS 8 server running NetworkManager. I would previously have done this with ifcfg-style configuration files, but I'm trying to embrace the future and the direction RHEL/CentOS is setting. Unfortunately, this isn't…
Saustrup
  • 1,183
  • 1
  • 8
  • 12
1
2