Set a fixed Ip address and a linuxip address in linux
I use CentOs6.5
Recently I have been studying the linux operating system. I have to use ifconfig eth0 to set a temporary IP address before using shell connection. Decide to learn how to set a fixed IP Address
Steps:
1. log on to the computer and run the setup command to enter the interface.
2. Select Network Configuration
3. Select Device Configuration
4. Enter eth0
5. Configure related information
DHCP [*] indicates Automatically Obtaining ip addresses. Note: The DHCPserver must provide the automatically assigned service. Otherwise, it will not work.
6. [root @ localhost ~] # Service network restart the network service
If there is a problem or you need to set an IP address after restart, please:
Modify onboot = yes in/etc/sysconfig/network-scripts/ifcfg-ethX. The default value of redhat6 series is no, that is, the NIC is not started when the operating system starts, after you change to yes, the operating system is required to start and activate the NIC at startup.