network manager /etc/sysconfig/network-scripts/ permanent config vs ip addr add
[root@localhost ~]# cat /etc/sysconfig/network-scripts/ifcfg-ens33
TYPE=Ethernet
BOOTPROTO=dhcp
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=ens33
UUID=bb931a90-fd5f-404c-8634-bc0de5d33b68
DEVICE=ens33
ONBOOT=yes
PEERDNS=yes
PEERROUTES=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_PRIVACY=no
ZONE=
TYPE=Ethernet
BOOTPROTO=dhcp
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=ens33
UUID=bb931a90-fd5f-404c-8634-bc0de5d33b68
DEVICE=ens33
ONBOOT=yes
PEERDNS=yes
PEERROUTES=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_PRIVACY=no
ZONE=
[root@localhost ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.154.129 ex.com
[root@localhost ~]# cat /etc/resolv.conf
# Generated by NetworkManager
search localdomain localhost.ci
nameserver 192.168.174.2
3 ways to change configuration on network card:
Information isn't managed by any service, used only for temporarily changes
1) ip addr add dev ens33 10.0.0.13/24
Permanent config 2) 3) writes to NetworkManager service
/etc/sysconfig/network-scripts/ifcfg-ens33
2) nmcli con add con-name ens33 ifname ens33 type ethernet ipv4 10.0.0.13/24
3) nmtui
----------
Information isn't managed by any service, used only for temporarily changes
1) ip addr add dev ens33 10.0.0.13/24
Permanent config 2) 3) writes to NetworkManager service
/etc/sysconfig/network-scripts/ifcfg-ens33
2) nmcli con add con-name ens33 ifname ens33 type ethernet ipv4 10.0.0.13/24
3) nmtui
----------
Comments
Post a Comment