버전 비교

  • 이 줄이 추가되었습니다.
  • 이 줄이 삭제되었습니다.
  • 서식이 변경되었습니다.

...

코드 블럭
languagebash
titleifcfg-eno1
linenumberstrue
TYPE=Ethernet
MTU=9000

NAME=eno1
DEVICE=eno1

ONBOOT=yes

# DHCP 인 경우
BOOTPROTO=dhcp

# 고정IP 인 경우
# BOOTPROTO : none 또는 static
# NETMASK, PREFIX 중 하나를 설정
BOOTPROTO=static
IPADDR=192.168.0.1
NETMASK=255.255.255.0
PREFIX=24
GATEWAY=172.16.10.1

# DNS
DNS1=134.75.30.1
DNS2=8.8.8.8

DEFROUTE=yes
IPV4_FAILURE_FATAL=no

IPV6INIT=yes
IPV6_DISABLED=no
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no

# 방화벽 존
ZONE=public

...


ifcfg format deprecated

코드 블럭
# cat /etc/sysconfig/network-scripts/readme-ifcfg-rh.txt

NetworkManager stores new network profiles in keyfile format in the
/etc/NetworkManager/system-connections/ directory.

Previously, NetworkManager stored network profiles in ifcfg format
in this directory (/etc/sysconfig/network-scripts/). However, the ifcfg
format is deprecated. By default, NetworkManager no longer creates
new profiles in this format.

Connection profiles in keyfile format have many benefits. For example,
this format is INI file-based and can easily be parsed and generated.

...


NetworkManager 예제

코드 블럭
languagetext
titleeno1.nmconnection
linenumberstrue
[connection]
id=eno1
interface-name=eno1
type=ethernet
autoconnect=false

[ethernet]
mtu=9000

[ipv4]
; DHCP 인 경우
method=auto

;고정 IP 인 경우
method=manual
address1=192.168.16.240/24,192.168.16.1
dns=134.75.30.1;


[ipv6]
addr-gen-mode=eui64
method=auto

[proxy]

...