centos7dhcp

编程

[root@qiantang36 ~]# ll /etc/sysconfig/network-scripts/

total 240

drwxr-xr-x. 2 root root 4096 Oct 30 23:50 .

drwxr-xr-x. 6 root root 4096 Oct 30 23:51 ..

-rw-r--r--. 1 root root 383 Oct 30 23:50 ifcfg-ens160

-rw-r--r--. 1 root root 254 Aug 24 2018 ifcfg-lo

lrwxrwxrwx. 1 root root 24 Oct 30 23:42 ifdown -> ../../../usr/sbin/ifdown

-rwxr-xr-x. 1 root root 654 Aug 24 2018 ifdown-bnep

-rwxr-xr-x. 1 root root 6532 Aug 24 2018 ifdown-eth

-rwxr-xr-x. 1 root root 781 Aug 24 2018 ifdown-ippp

-rwxr-xr-x. 1 root root 4540 Aug 24 2018 ifdown-ipv6

lrwxrwxrwx. 1 root root 11 Oct 30 23:42 ifdown-isdn -> ifdown-ippp

-rwxr-xr-x. 1 root root 2130 Aug 24 2018 ifdown-post

-rwxr-xr-x. 1 root root 1068 Aug 24 2018 ifdown-ppp

-rwxr-xr-x. 1 root root 870 Aug 24 2018 ifdown-routes

-rwxr-xr-x. 1 root root 1456 Aug 24 2018 ifdown-sit

-rwxr-xr-x. 1 root root 1621 Mar 17 2017 ifdown-Team

-rwxr-xr-x. 1 root root 1556 Mar 17 2017 ifdown-TeamPort

-rwxr-xr-x. 1 root root 1462 Aug 24 2018 ifdown-tunnel

lrwxrwxrwx. 1 root root 22 Oct 30 23:42 ifup -> ../../../usr/sbin/ifup

-rwxr-xr-x. 1 root root 12415 Aug 24 2018 ifup-aliases

-rwxr-xr-x. 1 root root 910 Aug 24 2018 ifup-bnep

-rwxr-xr-x. 1 root root 13475 Aug 24 2018 ifup-eth

-rwxr-xr-x. 1 root root 12075 Aug 24 2018 ifup-ippp

-rwxr-xr-x. 1 root root 11893 Aug 24 2018 ifup-ipv6

lrwxrwxrwx. 1 root root 9 Oct 30 23:42 ifup-isdn -> ifup-ippp

-rwxr-xr-x. 1 root root 650 Aug 24 2018 ifup-plip

-rwxr-xr-x. 1 root root 1064 Aug 24 2018 ifup-plusb

-rwxr-xr-x. 1 root root 4997 Aug 24 2018 ifup-post

-rwxr-xr-x. 1 root root 4154 Aug 24 2018 ifup-ppp

-rwxr-xr-x. 1 root root 2001 Aug 24 2018 ifup-routes

-rwxr-xr-x. 1 root root 3303 Aug 24 2018 ifup-sit

-rwxr-xr-x. 1 root root 1755 Mar 17 2017 ifup-Team

-rwxr-xr-x. 1 root root 1876 Mar 17 2017 ifup-TeamPort

-rwxr-xr-x. 1 root root 2711 Aug 24 2018 ifup-tunnel

-rwxr-xr-x. 1 root root 1836 Aug 24 2018 ifup-wireless

-rwxr-xr-x. 1 root root 5419 Aug 24 2018 init.ipv6-global

-rw-r--r--. 1 root root 20671 Aug 24 2018 network-functions

-rw-r--r--. 1 root root 31027 Aug 24 2018 network-functions-ipv6

[root@qiantang36 ~]# ll /etc/sysconfig/network-scripts/ifcfg-ens160

-rw-r--r--. 1 root root 383 Oct 30 23:50 /etc/sysconfig/network-scripts/ifcfg-ens160

[root@qiantang36 ~]# cat /etc/sysconfig/network-scripts/ifcfg-ens160

TYPE="Ethernet"

PROXY_METHOD="none"

BROWSER_ONLY="no"

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="ens160"

UUID="487af533-6b55-4a03-bc81-955e0eb09193"

DEVICE="ens160"

ONBOOT="yes"

DNS1="192.168.3.1"

DNS2="223.5.5.5"

DNS3="223.6.6.6"

IPV6_PRIVACY="no"

[root@qiantang36 ~]# systemctl restart network

[root@qiantang36 ~]#

以上是 centos7dhcp 的全部内容, 来源链接: utcz.com/z/510281.html

回到顶部