Linux修改网卡名称:1. cd /etc/sysconfig/network-scripts/2. rename eno16777736 eno16 ifcfg-eno167777363. vi ifcfg-eno164. 添加DEVICE=eno165. 修改NAME=eno166. shutdown -r now
Hostname Set the hostname to your liking (e.g. arch): # echo myhostname > /etc/hostname Add the same hostname to /etc/hosts: # nano /etc/hosts # # /etc/hosts: static lookup table for host names # #<ip-address> <hostname.domain.org> <host