Configure static IP address in CentOS6.7
To configure static IP addresses in CentOS, follow these steps:Servers generally have their own static IP addresses so that they can be connected to the LAN.1. Edit the NIC file and modify
Set IP:
Vim/etc/network/interfaces
The following will be included:
Auto Eth0Iface eth0 inet DHCP
Modified to:
Auto Eth0#iface eth0 inet DHCPIface eth0 inet StaticAddress xxx.xxx.xxx.xxxnetmask xxx.xxx.xxx.xxxGateway xxx.xxx.xxx.xxx
Set the xxx.xxx.xxx to the information you want to be personalized, whichauto eth0#开机自动连接网络iface eth0 inet static#
Tags: share sysconf network card technology Share div subnet PTS class SysconfigFirst, install the virtual after the menu bar select edit → Virtual network editor, open the Virtual Network Editor dialog box, select Vmnet8 net network connection mode, set the subnet IP, click the NAT Settings page, view the subnet mask and gateway , The subsequent modification of the static
Refer to the followingArticle:
Https://gist.github.com/fernandoaleman/2172388
Http://www.lifelinux.com/how-to-configure-static-ip-address-on-centos/
Http://www.ehowstuff.com/how-to-configure-static-ip-address-on-centos-6-2-linux-server/
Http://www.liurongxing.com/centos-dns-ifcfg-resolv.html
Http://bbs.csdn.n
1, enter the virtual Linux system, Vim/etc/sysconfig/network-scripts/ifcfg-eth0, the following content can be kept:Device=eth0//Use of network card identificationBootproto=none//Here represents the power-on protocol, there are three kinds (dhcp,static,none) DHCP Express automatic acquisition Ip,static Natural is statically assigned
Reference: http://caoxuhuan.iteye.com/blog/973625
Because the dormitory and lab must be bound with the static IP address of the machine to access the Internet, it is very troublesome to manually change the IP address and gateway in the "Network and sharing center, so I want to have an automated method for processing. The best solution is to have two icons on t
/ secure, reliableHost only:Equivalent to NAT cannot connect to Internet // Security2.2. Frequently Asked QuestionsQ:NAT is not connected to the Internet, but the host network is normal:VMnet8 Virtual net1, look at the subnet IP, such as: 192.168. 0, which shows that all virtual machine segments established in NAT mode are 192.168. start with one The IP address of the VMNET8 is 192.168. one. 1Windows--
By default, Ubuntu uses DHCP to obtain IP, but it is easier for users to configure the network, but it is not good for multi-user LANs, because DHCP occasionally replaces IP, which means that the user who wants to connect must change the IP configuration.
The method for specifying static
Network is the intranet environment, for the server can be stable access, need to be configured as static IP. Recently installed the virtual machine Ubuntu system on the server , the steps to configure the static IP are simply recorded as follows for later use: 1. first ensure that the virtual machine network sett
routers tplink882 static IP can not be used to solve the Internet:
Broadband Line (household network cable or from the modem out of the network) needs to be connected to the router's WAN, the wired computer should be connected to the LAN port, the following figure:
If the line connection is correct, but the WAN port LEDs are not lit, check the WAN port wiring for bad contact, and t
"Properties"
4. Double-click Internet Protocol version 4 (TCP/IP)
5, select "Automatically obtain IP address", "Automatically obtain DNS server address", click "OK"-"OK".
1, open the browser
, enter in the browser address bar: 192.168.0.1 Press ENTER to login settings interface.
192.168.0.1 not open? Please click this
Installing centos6.5 under VMware accesses the extranet via bridging, so you need to configure the IP.I. IP configuration1.1. Configure Dynamic IPVi/etc/sysconfig/network-scripts/ifcfg-eth0Device=eth0hwaddr=00:0c:29:e1:e4:8eType=ethernetuuid=f271bf73-7d8f-448f-8e8b-71c39eb13509Onboot=yes (important is enabled)Nm_controlled=yesBOOTPROTO=DHCP (Important configuration)2.2. Configure Dynamic IPDevice=eth0Hwaddr=00:0c:29:b1:f1:24Type=ethernetuuid=8887bd2f-
Ubuntu's network parameters are saved in the file/etc/network/interfaces,The default setting uses DHCP, which is obtained by dynamic IP. Here's how to set up a static IP: 1) Edit/etc/network/interfaces1.1) Add DHCP line shield # The primary network Interfaceauto eth0#iface eth0 inet DHCP 1.2) Add and static
PS: I haven't used Ubuntu for a long time, just installed an Ubuntu Server 12.04 test. Ubuntu Network settings are not the same as the Redhat system, the configuration of IP when found with the previous Ubuntu desktop version is also different, recorded as follows:1. Configure static IP address:# vim/etc/network/interfacesThe original content has the following 4
The company has two servers A (218.34.45.65) and B (218.34.45.66 ). All are placed on the hosting server!
Server configurations of known:
IP: 218.34.45.65
Subnet mask: 255.255.255.66
Default Gateway: 218.34.45.10
DNS1: 123.34.35.45
DNS2: 123.34.35.1
You need to reconfigure the static IP address of server B based on server A to facilitate Internet acc
The company has 2 servers A (218.34.45.65) and B (218.34.45.66). Put it on the hosting server!
Server configuration for known a:
ip:218.34.45.65
Subnet Mask: 255.255.255.66
Default gateway: 218.34.45.10
dns1:123.34.35.45
dns2:123.34.35.1
Now to reconfigure the static IP of server B according to server A configuration, so that the server can be accessed by t
If you use a static IP address to access the Internet, that is, the bandwidth you apply for from the network service provider (China Telecom or China Netcom) is a fixed IP address, and the network service provider provides all your internet IP addresses: includes IP Address,
Configure a static IP address under LinuxBecause the IP address of the server is fixed, unlike the IP of our own home notebook is dynamic. So we're going to write this address as static.Edit this configuration file directly:Vi/etc/sysconfig/network-scripts/ifcfg-ethxdevice=eth0 Bootproto=
To set a static IP address using netsh:
@echo off
netsh interface ip set address "Local Area Connection" Static 172.24.83.239 255.255.255.0 172.24.83.247
netsh interface ip set DNS "Local Area Connection" 172.24.102.110
netsh interface
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.