In Linux, modify the computer name and IP1, and change the host name: vi/etc/sysconfig/network. change the HOSTNAME line to the name of the computer that HOSTNAME wants. 2. use a fixed ip address. Otherwise, the dynamic ip address is used at each startup, command: vi/etc/sysconfig/network-scr... in Linux, modify the computer name and IP address. 1. modify the host name: vi/etc/sysconfig/network. change HOSTNAME to HOSTNAME = The name of the desired computer. 2. use a fixed ip address, otherwise each start is a dynamic IP, the link is not convenient command: vi/etc/sysconfig/network-scripts/ifcfg-eth0 ONBOOT = "yes" (boot activation) NAME = Lan (Nic NAME) IPADDR = 192.168.1.xx (fixed ip address) FREFIX = 24 (sub-code mask) GATEWAY = 192.168.1.254 (GATEWAY) DNS1 = 192.168.1.1 (DNS server)
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