Configure static IP addresses, DNS, and host names in Linux

Source: Internet
Author: User
Linux configure static IP, set DNS and host name 1: Static IP # vi/etc/syssconfig/network-scripts/ifcfg-eth0DEVICEeth0BOOTPROTOstaticHWADDR; here is the physical address of your network card, you do not need to enter the network card that is usually detected... linux configure static IP, set DNS and host name 1: static IP # vi/etc/syssconfig/network-scripts/ifcfg-eth0 DEVICE = eth0 BOOTPROTO = static HWADDR =; here is the physical address of your network card, you do not need to enter ONBOOT = yes IPADDR = 192.168.0.1 NETMASK = 255.255.255.0 NETWORK = 192.168.1.0 BROADCAST = 192.168.1.255 GATEWAY =. enter your GATEWAY here, save the IP address of the vro and exit #/sbin/service network restart. if The NIC is enabled OK, the IP address is set successfully. 2. configure dns resolution # vi/etc/resolv. change the value in conf; notify the gateway to update the information: #/etc/init. d/network restart 3: configure host # vi/etc/host to modify the value. View ip configuration information in windows: # ifconfig (enabled network settings) # ifconfig-a (all network settings) eth0 eth1... ethn indicates that your Nic is configured to start the NIC: #/sbin/ifup eth0 disable Nic: #/sbin/ifdown eth0
Related Article

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.