centos7 设置静态IP
一、查找配置文件(/etc/sysconfig/network-scripts)
[root@bogon network-scripts]# ll
总用量 232
-rw-r--r--. 1 root root 366 6月 7 10:39 ifcfg-eth0
-rw-r--r--. 1 root root 254 1月 3 00:29 ifcfg-lo
lrwxrwxrwx. 1 root root 24 6月 7 10:17 ifdown -> ../../../usr/sbin/ifdown
-rwxr-xr-x. 1 root root 654 1月 3 00:29 ifdown-bnep
-rwxr-xr-x. 1 root root 6569 1月 3 00:29 ifdown-eth
-rwxr-xr-x. 1 root root 781 1月 3 00:29 ifdown-ippp
-rwxr-xr-x. 1 root root 4540 1月 3 00:29 ifdown-ipv6
lrwxrwxrwx. 1 root root 11 6月 7 10:17 ifdown-isdn -> ifdown-ippp
-rwxr-xr-x. 1 root root 2102 1月 3 00:29 ifdown-post
-rwxr-xr-x. 1 root root 1068 1月 3 00:29 ifdown-ppp
-rwxr-xr-x. 1 root root 870 1月 3 00:29 ifdown-routes
-rwxr-xr-x. 1 root root 1456 1月 3 00:29 ifdown-sit
-rwxr-xr-x. 1 root root 1621 3月 18 2017 ifdown-Team
-rwxr-xr-x. 1 root root 1556 3月 18 2017 ifdown-TeamPort
-rwxr-xr-x. 1 root root 1462 1月 3 00:29 ifdown-tunnel
lrwxrwxrwx. 1 root root 22 6月 7 10:17 ifup -> ../../../usr/sbin/ifup
-rwxr-xr-x. 1 root root 12415 1月 3 00:29 ifup-aliases
-rwxr-xr-x. 1 root root 910 1月 3 00:29 ifup-bnep
-rwxr-xr-x. 1 root root 13442 1月 3 00:29 ifup-eth
-rwxr-xr-x. 1 root root 12075 1月 3 00:29 ifup-ippp
-rwxr-xr-x. 1 root root 11893 1月 3 00:29 ifup-ipv6
lrwxrwxrwx. 1 root root 9 6月 7 10:17 ifup-isdn -> ifup-ippp
-rwxr-xr-x. 1 root root 650 1月 3 00:29 ifup-plip
-rwxr-xr-x. 1 root