Update redhat dynamic IP to static IP

Source: Internet
Author: User

Update redhat dynamic IP to static IP step1: add gateway vi/etc/sysconfig/network add below "GATEWAY" line NETWORKING = yes NETWORKING_IPV6 = no HOSTNAME = localhost. localdomain GATEWAY = 192.168.1.1 www.2cto.com step2: add your new IP address update dhcp to static, add your ipaddr line add your netmast line DEVICE = eth0 # BOOTPROTO = dhcp BOOTPROTO = static HWADDR = 00: CC: 23: 3A: C3: ef ipaddr = 192.168.1.200 NETMAST = 255.255.255.0 ONBOOT = yes step3: update name server vi/etc/resolv. conf nameserver x. y. z. p (normal, below step won't need, cause it will automatically get your name server) step4: verify the static ip config effect: ifconfig eth0

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.