linux7 版本系统网卡命令使用方法

centos\Redhat

  • 版本系统网卡命令使用方法
 nmcli con add con-name eth0 type ethernet ifname eth0
 nmcli con show
 nmcli con del eth0
 nmcli con add con-name eth0 type ethernet ifname eth0
 nmcli con del *
 nmcli con show
 nmcli con del 225f9e18-dfa5-3dd2-b3bf-7334a1a8707d
 nmcli con show
 nmcli con mod eth0 ipv4.method manual ipv4.addresses 192.168.192.58/24 ipv4.gateway 192.168.192.1 ipv4.dns 192.168.192.43
 nmcli con up eth0
 nmcli con show
 nmcli con del eth0
 nmcli con show
 nmcli con add con-name eth0 type ethernet ifname eth0
 nmcli con mod eth0 ipv4.method manual ipv4.addresses 192.168.192.58/24 ipv4.gateway 192.168.192.1 ipv4.dns 192.168.192.43
 nmcli con up eth0

  

 

posted @ 2019-03-04 16:12  Boks  阅读(509)  评论(0编辑  收藏  举报