Using DHCP (/etc/sysconfig/network-scripts/ifcfg-enp0s3)
DEVICE="enp0s3"
ONBOOT=yes
NETBOOT=yes
IPV6INIT=yes
BOOTPROTO=dhcp
HWADDR="00:00:00:aa:aa:aa"
TYPE=Ethernet
NAME="enp0s3"
DNS1="8.8.8.8"
DNS2="8.8.4.4"
Static IP setting (/etc/sysconfig/network-scripts/ifcfg-enp0s3)
DEVICE="enp0s3"
ONBOOT=yes
NETBOOT=yes
IPV6INIT=yes
-BOOTPROTO=dhcp
+BOOTPROTO=static
HWADDR="00:00:00:aa:aa:aa"
TYPE=Ethernet
NAME="enp0s3"
DNS1="8.8.8.8"
DNS2="8.8.4.4"
+IPADDR=192.168.100.11
+NETMASK=255.255.255.0
+GATEWAY=192.168.100.1
DHCP using Network Manager
nmcli c modify enp0s3 ipv4.method auto
nmcli c modify enp0s3 ipv4.addresses ""
nmcli c modify enp0s3 ipv4.dns ""
nmcli c up enp0s3
Stactic IP using Network Manager
nmcli c modify enp0s3 ipv4.addresses "192.168.100.11/24 192.168.100.1"
nmcli c modify enp0s3 +ipv4.dns 8.8.8.8
nmcli c modify enp0s3 +ipv4.dns 8.8.4.4
nmcli c modify enp0s3 ipv4.method manual
nmcli c up enp0s3
댓글 없음:
댓글 쓰기