LINUX.ORG.RU
ФорумAdmin

centos сбрасываются настройки сети после ребута

 , ,


0

1

Приветствую! Есть хост кластера oVirt, Centos 7

Настройки сети:

uname -a
Linux cluster-node20.office.vliga 3.10.0-957.27.2.el7.x86_64 #1 SMP Mon Jul 29 17:46:05 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

cat /etc/sysconfig/network-scripts/ifcfg-ovirtmgmt 
# Generated by VDSM version 4.20.39.1-1.el7
DEVICE=ovirtmgmt
TYPE=Bridge
DELAY=0
STP=off
ONBOOT=yes
IPADDR=10.252.252.220
NETMASK=255.255.0.0
GATEWAY=10.252.10.1
BOOTPROTO=none
MTU=1500
DEFROUTE=yes
NM_CONTROLLED=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
DNS1=10.252.7.24
ZONE=public

cat /etc/sysconfig/network-scripts/ifcfg-eno1
# Generated by VDSM version 4.30.24.1
DEVICE=eno1
BRIDGE=ovirtmgmt
ONBOOT=yes
MTU=1500
DEFROUTE=no
NM_CONTROLLED=no
IPV6INIT=no

В сервере поменяли сетевку. Теперь после каждой перезагрузки настройки сбрасываются на автораздачу:

cat /etc/sysconfig/network-scripts/ifcfg-ovirtmgmt 
# Generated by VDSM version 4.20.39.1-1.el7
DEVICE=ovirtmgmt
TYPE=Bridge
BOOTPROTO=dhcp
...

Почему так и как исправить?


Ответ на: комментарий от anonymous
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: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master ovirtmgmt state UP group default qlen 1000
    link/ether ac:1f:6b:7a:7c:3e brd ff:ff:ff:ff:ff:ff
3: eno2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
    link/ether ac:1f:6b:7a:7c:3f brd ff:ff:ff:ff:ff:ff
4: ovs-system: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether be:24:cc:77:50:f3 brd ff:ff:ff:ff:ff:ff
5: genev_sys_6081: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 65000 qdisc noqueue master ovs-system state UNKNOWN group default qlen 1000
    link/ether a6:e3:81:7d:8f:79 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::a4e3:81ff:fe7d:8f79/64 scope link 
       valid_lft forever preferred_lft forever
6: br-int: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 6e:e0:7f:c8:5e:40 brd ff:ff:ff:ff:ff:ff
24: ;vdsmdummy;: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 5a:7f:dc:a3:31:61 brd ff:ff:ff:ff:ff:ff
25: ovirtmgmt: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether ac:1f:6b:7a:7c:3e brd ff:ff:ff:ff:ff:ff
    inet 10.252.252.220/16 brd 10.252.255.255 scope global ovirtmgmt
       valid_lft forever preferred_lft forever
    inet6 fe80::ae1f:6bff:fe7a:7c3e/64 scope link 
       valid_lft forever preferred_lft forever
26: vnet0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master ovirtmgmt state UNKNOWN group default qlen 1000
    link/ether fe:1a:4a:16:01:a1 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::fc1a:4aff:fe16:1a1/64 scope link 
       valid_lft forever preferred_lft forever
27: vnet1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master ovirtmgmt state UNKNOWN group default qlen 1000
    link/ether fe:1a:4a:16:01:79 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::fc1a:4aff:fe16:179/64 scope link 
       valid_lft forever preferred_lft forever

Я думаю, что ovirt помнит старую сетевку и сбрасывает настройки из за нее. Остается попробовать удалить хост из кластера и добавить заново.

lYY ()