Chapter I. Linux Basic Network Settings
Requirements:
DHCP the host name of the server is dhcpsvr.benet.com , IP address is 192.168.4.11/24
used to automatically assign the hosts in the LAN IP address range is 192.168.4.20~192.168.4.200
The default gateway address used by each host in the LAN is 192.168.4.1
-
dns server addresses are and dns and
Network printer Device (you can find another one within the network Windows host, execute " Ipconfig/all "command to find out its MAC address) is a host name of Prtsvr , requires automatic allocation of fixed IP address is 192.168.4.9
Specific steps:
Use hostname command--Modify the name of the host
hostname The command can be used not only to display the name of the current host, but also to modify the name of the current host. In a newly logged-on user session (Shell Environment), the host name section in the command prompt also changes accordingly.
This is the step to set the hostname temporarily!
Host name configuration file
to permanently modify Linux the hostname of the system, you can modify the configuration file /etc/sysconfig/network . :
This is the step to permanently set the hostname!
Use ifconfig command--Modify the address and status of the NIC
This article is from the "51CTO blog" blog, please be sure to keep this source http://51zhangsheng.blog.51cto.com/10947511/1748386
Linux Network Configuration Basics