ansh
(ansh)
1
Hi. Installed NethServer 8 via the Proxmox ns8-rocky-linux-9-ns8-stable image.qcow2.
How do I change my IP address? Using this [instruction] (Node network setup — NS8 documentation) The IP address does not change.
[root@ldap admin]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether bc:24:11:07:f2:f4 brd ff:ff:ff:ff:ff:ff
altname enp0s18
altname ens18
inet 192.168.0.170/24 brd 192.168.0.255 scope global dynamic noprefixroute eth0
valid_lft 9206sec preferred_lft 9206sec
inet6 fe80::1208:d0eb:23c8:9adc/64 scope link noprefixroute
valid_lft forever preferred_lft forever
3: wg0: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1420 qdisc noqueue state UNKNOWN group default qlen 1000
link/none
inet 10.5.4.1/32 scope global wg0
valid_lft forever preferred_lft forever
davidep
(Davide Principi)
2
In that case deactivate and activate the interface again from nmtui interface.
As alternative run:
nmcli device reapply eth0
1 Like
ansh
(ansh)
3
I set up “Wired connection 1” and the IP changed. Before that, I set up “System eth0” and “ens3”
Thanks
[root@ldap admin]# nmcli conn show
NAME UUID TYPE DEVICE
Wired connection 1 66f9efa4-5f95-34a5-a6e5-dc6bf08ae169 ethernet eth0
lo a4d45c69-b518-4b55-8a20-dc232d07cad1 loopback lo
wg0 6ea67945-7402-443a-97c5-966ef8c6004d wireguard wg0
System eth0 5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03 ethernet –
ens3 01b94420-c44e-43a6-8900-0de8fcaf975d ethernet –
Como configurar IP Estático no NethServer 8 (Rocky Linux 9)
Exemplo:
Configurar IP fixo 192.168.10.249/24, gateway 192.168.10.254 e DNS 192.168.10.254 na interface eth0 .
1. Descobrir o nome da conexão de rede
Execute o seguinte comando para listar as conexões gerenciadas pelo NetworkManager:
nmcli connection show
Exemplo de saída:
NAME UUID TYPE DEVICE
Wired connection 1 e4fd4c1d-d90d-31f0-b173-75947e0abd8f ethernet eth0
2. Aplicar a configuração de IP estático
Substitua "Wired connection 1" pelo nome real da sua conexão (como visto no comando acima):
nmcli connection modify "Wired connection 1" ipv4.method manual ipv4.addresses 192.168.10.249/24 ipv4.gateway 192.168.10.254 ipv4.dns 192.168.10.254
nmcli connection modify "Wired connection 1" connection.autoconnect yes
3. Reiniciar a conexão de rede
nmcli connection down "Wired connection 1" && nmcli connection up "Wired connection 1"
4. Verificar se a configuração foi aplicada
ip a show eth0
ip route
cat /etc/resolv.conf
Você deve ver:
- IP:
192.168.10.249
- Gateway:
192.168.10.254
- DNS:
192.168.10.254
Observações
- Este procedimento é persistente entre reinicializações.
- Não é necessário editar arquivos manualmente em
/etc/sysconfig , pois o NetworkManager gerencia as conexões.
- Compatível com NethServer 8 baseado no Rocky Linux 9 ou superior.
Att, Fernando Moser - fernacom.com.br
1 Like
Hi @Fernando_Moser
Welcome in the Nethserver Community. Please be so good as to post future answers in English. Thank you.
Uwe
2 Likes