You are not logged in.
Hi everyone,
I have two NetworkManager questions, which I cannot get my head around:
#1. How to set static IP address? What I have tried:
1.a. using nmcli:
nmcli con mod "Wired connection 1" ipv4.addresses "192.168.1.10/24"
nmcli con mod "Wired connection 1" ipv4.gateway "192.168.1.2"
nmcli con mod "Wired connection 1" ipv4.dns "8.8.8.8 8.8.4.4"
nmcli con mod "Wired connection 1" ipv4.method manual
nmcli con mod "Wired connection 1" connection.autoconnect yes
systemctl restart NetworkManagergives no error, but I still have .101 IP.
1.b. editing the /etc/NetworkManager/system-connections/Wired connection 1.nmconnection file, after nm restart, it reverts to
[ipv4]
dns=8.8.8.8;8.8.4.4;
dns-search=8.8.8.8;8.8.4.4;
method=manualand I still have the dhcp assigned .101 IP.
#2. I have two gateways in the network, any way to set up failover or load balancing between them?
network setup:
gtw1 and gtw2 are connected into a switch, and all PCs into the same switch - if this is not possible with NM, any alternative for a simple configuration
gateways are 192.168.1.1 and 192.168.1.2 (no, DHCP IP ranges are not in conflict - from a windows machine they work ok, whichever I set as gateway with the same static IP, works just fine, external IP reflects the set gateway)
Thank you.
Offline