Problem:
1, minimize the installation of CENTOS7 after the discovery of no ifconfig command
To view the IP address by ifconfig The ifconfig command does not exist and can be ordered
#ip addr//View IP
Or
Solve:
#Yuminstall net-tools
Problem:
2, CENTOS7 default to the network card 1 named eno16777736, how to modify back to the familiar eth0
Solve:
[Email protected] ~]#Cat/etc/default/Grub Grub_timeout=5Grub_distributor="$ (SED ' s, release. *$,,g '/etc/system-release)"Grub_default=Savedgrub_disable_submenu=trueGrub_terminal_output="Console"Grub_cmdline_linux="vconsole.keymap=us crashkernel=auto vconsole.font=latarcyrheb-sun16 rhgb quiet"Grub_disable_recovery="true"[[Email protected]~] #vim/etc/default/Grub//or edit/etc/sysconfig/grub is also the same because it is asoft connection to/etc/default/Grub Grub_timeout=5Grub_distributor="$ (SED ' s, release. *$,,g '/etc/system-release)"Grub_default=Savedgrub_disable_submenu=trueGrub_terminal_output="Console"Grub_cmdline_linux="net.ifnames=0 biosdevname=0 vconsole.keymap=us crashkernel=auto vconsole.font=latarcyrheb-sun16 rhgb quiet"#增加net. ifnames=0 (Do not use the new naming convention)Biosdevname=0 (does not use a em0-like naming convention for Dell servers)Grub_disable_recovery="true"
[[email protected] ~]# Grub2-mkconfig-o/etc/grub2.cfg//or specify file/boot/grub2/grub.cfg,/etc/grub2.cfgIs/boot/grub2/grub.cfgThe Soft connection
Generating GRUB configuration file ...
Found Linux Image:/boot/vmlinuz-3.10.0-123.9.3.el7.x86_64
Found initrd Image:/boot/initramfs-3.10.0-123.9.3.el7.x86_64.img
Warning:please don ' t use the old title ' CentOS Linux, with the Linux 3.10.0-123.9.3.el7.x86_64 ' for Grub_default, the use of ' Advanced o ' ptions for CentOS Linux>centos Linux, with Linux 3.10.0-123.9.3.el7.x86_64 ' (for versions before 2.00) or ' Gnulinux-adv anced-eb8b5914-351d-4274-85f7-40c3d3357b45>gnulinux-3.10.0-123.9.3.el7.x86_64- Advanced-eb8b5914-351d-4274-85f7-40c3d3357b45 ' (for 2.00 or later)
Found Linux Image:/boot/vmlinuz-0-rescue-9623c0e26d1b452f9dc41631215adf1c
Found initrd Image:/boot/initramfs-0-rescue-9623c0e26d1b452f9dc41631215adf1c.img
Done
#cp/etc/sysconfig/network-scripts/ifcfg-eno16777736/etc/sysconfig/network-scripts/ifcfg-eth0
#vim/etc/sysconfig/network-scripts/ifcfg-eth0
Name=eth0 #NAME =eno16777736 modified to
Restarting the server
CENTOS7 minimized installation without ifconfig and modify NIC name enoxxx to ETHX