네트워크 설정 파일로 직접 편집 할때가 더욱 편리 할 때가 있다.
CENTOS 7 기준으로
[root@mail ~]# vi /etc/sysconfig/network-scripts/ifcfg-enp1s0 TYPE=Ethernet PROXY_METHOD=none BROWSER_ONLY=no BOOTPROTO=none DEFROUTE=yes IPV4_FAILURE_FATAL=no IPV6INIT=no IPV6_AUTOCONF=yes IPV6_DEFROUTE=yes IPV6_FAILURE_FATAL=no IPV6_ADDR_GEN_MODE=stable-privacy NAME=enp1s0 #UUID=e805b29e-b6f5-4b57-b5d2-0b21508b21f5 DEVICE=enp1s0 ONBOOT=yes ETHTOOL_OPTS="autoneg on" IPADDR=xxx.168.168.xxx PREFIX=24 #GATEWAY=xxx.145.221.xxx DNS1=168.126.63.1 DNS2=168.126.63.2 ZONE=internal [root@mail ~]# vi /etc/sysconfig/network-scripts/ifcfg-enp3s0 TYPE=Ethernet PROXY_METHOD=none BROWSER_ONLY=no BOOTPROTO=none DEFROUTE=yes IPV4_FAILURE_FATAL=no IPV6INIT=no IPV6_AUTOCONF=yes IPV6_DEFROUTE=yes IPV6_FAILURE_FATAL=no IPV6_ADDR_GEN_MODE=stable-privacy NAME=enp3s0 UUID=e805b29e-b6f5-4b57-b5d2-0b21508b21f5 DEVICE=enp3s0 ONBOOT=yes ETHTOOL_OPTS="autoneg on" IPADDR=xxx.145.221.xxx PREFIX=27 #GATEWAY=xxx.145.221.xxx DNS1=168.126.63.1 DNS2=168.126.63.2 ZONE=public [root@mail ~]# vi /etc/sysconfig/network # Created by anaconda NETWORKING=yes NETWORKING_IPV6=no GATEWAY=xxx.145.221.xxx GATEWAYDEV=enp3s0