RedHat static IP address configuration in turn modify the following three files:/etc/sysconfig/network-scripts/ifcfg-eth0/etc/resolv. confwww.2cto. com1./etc/sysconfig/networkNETWORKINGyesNETWORK
RedHat static IP address configuration in turn modify the following three files:/etc/sysconfig/network-scripts/ifcfg-eth0/etc/resolv. conf www.2cto.com 1. /etc/sysconfig/network NETWORKING = yesNETWORKING_IPV6 = noHOSTNAME = WKM # host name GATEWAY = 192.168.53.1 # Default GATEWAY 2. /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE = eth0 # DEVICE name NETMASK = 255.255.255.0 # subnet mask IPADDR = 192.168.53.147 # IP address BOOTPROTO = static # [none | static | bootp | dhcp] protocol not used during boot | static allocation | # BOOTP protocol | DHCP protocol ONBOOT = yes # [yes | no] whether to activate the device DNS1 = 211.99.25.1 # domain name resolution server PEERDNS = yes 3. /etc/resolv. confnameserver 211.99.25.1 # The DNS configuration is the same as [DNS1 = 211.99.25.1] www.2cto.com 4 in 2. restart to make the IP address effective:/sbin/ifdown eth0/sbin/ifup eth0 configure dns resolution echo "nameserver 211.98.1.28">/etc/resolv. conf notifies the gateway of the update information:/etc/init. d/network restart
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.