Linux Network Configuration Basics

Source: Internet
Author: User


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:

    1. 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!

    1. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.