禁用网卡
[root@sre01 ~]# ifconfig ens36 down
[root@sre01 ~]# ip a show ens36
3: ens36: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
link/ether 00:0c:29:c0:78:db brd ff:ff:ff:ff:ff:ff
启用网卡
[root@sre01 ~]# ifconfig ens36 up
[root@sre01 ~]# ip a show ens36
3: ens36: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 00:0c:29:c0:78:db brd ff:ff:ff:ff:ff:ff
inet 172.16.156.128/24 brd 172.16.156.255 scope global noprefixroute dynamic ens36
valid_lft 1799sec preferred_lft 1799sec
inet6 fe80::e778:fe94:3756:fa71/64 scope link noprefixroute
valid_lft forever preferred_lft forever
[root@sre01 ~]#
标签:sre01,Centos,网卡,lft,ff,Linux,ens36,root
From: https://blog.51cto.com/zywqs/12127332