如何弄公司网站,询价报价单模板,软件代理,尚品网站建设CentOS7修改网卡为eth01.编辑网卡信息[rootlinux-node2~]# cd /etc/sysconfig/network-scripts/ #进入网卡目录[rootlinux-node2network-scripts]# mv ifcfg-eno16777728 ifcfg-eth0 #重命名网卡名称[rootlinux-node2network-scripts]# cat ifcfg-eth0 #编辑网卡信息TYPEEth…CentOS7修改网卡为eth01.编辑网卡信息[rootlinux-node2~]# cd /etc/sysconfig/network-scripts/ #进入网卡目录[rootlinux-node2network-scripts]# mv ifcfg-eno16777728 ifcfg-eth0 #重命名网卡名称[rootlinux-node2network-scripts]# cat ifcfg-eth0 #编辑网卡信息TYPEEthernetBOOTPROTOstaticDEFROUTEyesPEERDNSyesPEERROUTESyesIPV4_FAILURE_FATALnoNAMEeth0 #name修改为eth0ONBOOTyesIPADDR192.168.56.12NETMASK255.255.255.0GATEWAY192.168.56.2DNS1192.168.56.22.修改grub[rootlinux-node2~]# cat /etc/sysconfig/grub #编辑内核信息,添加红色字段的GRUB_TIMEOUT5GRUB_DEFAULTsavedGRUB_DISABLE_SUBMENUtrueGRUB_TERMINAL_OUTPUTconsoleGRUB_CMDLINE_LINUXcrashkernelautorhgb net.ifnames0 biosdevname0 quietGRUB_DISABLE_RECOVERYtrue[rootlinux-node2~]# grub2-mkconfig -o /boot/grub2/grub.cfg #生成启动菜单Generatinggrub configuration file ...Foundlinux p_w_picpath: /boot/vmlinuz-3.10.0-229.el7.x86_64Foundinitrd p_w_picpath: /boot/initramfs-3.10.0-229.el7.x86_64.imgFoundlinux p_w_picpath: /boot/vmlinuz-0-rescue-1100f7e6c97d4afaad2e396403ba7f61Foundinitrd p_w_picpath: /boot/initramfs-0-rescue-1100f7e6c97d4afaad2e396403ba7f61.imgDone也可以在开机启动加载安装系统界面设置。3.验证是否修改成功[rootlinux-node2~]# reboot #必须重启系统生效[rootlinux-node2~]# yum install net-tools #默认centos7不支持ifconfig需要看装net-tools包[rootlinux-node2~]# ifconfig eth0 #在次查看网卡信息eth0:flags4163 mtu 1500inet 192.168.56.12 netmask 255.255.255.0 broadcast 192.168.56.255inet6 fe80::20c:29ff:fe5c:7bb1 prefixlen 64 scopeid 0x20ether 00:0c:29:5c:7b:b1 txqueuelen 1000 (Ethernet)RX packets 152 bytes 14503 (14.1 KiB)RX errors 0 dropped 0 overruns 0 frame 0TX packets 98 bytes 14402 (14.0 KiB)TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0