配置网卡

#config netcard
nmcli connection modify eth0
ipv4.method manual ipv4.addresses 192.168.4.114/24
ipv4.dns 8.8.8.8 ipv4.gateway 192.168.4.1 connection.autoconnect yes
 
#start config
nmcli connection up eth0
 
#set hostname
echo mavendev > /etc/hostname
 
#set host
echo 192.168.4.114 mavendev >> /etc/hosts
posted @ 2019-09-14 21:36  FromScratch  阅读(173)  评论(0编辑  收藏  举报