Confirm that the VMNET8 virtual network card is enabledBelow begins to set the static IP into Ubuntu virtual machine.Setting up a static IP in Ubuntu 12.04.11. Start the virtual machine Ubuntu system, open the terminal and use the following command to open and edit the network interface configuration file:Vi/etc/networ
and exitIP address configuration after completionType=ethernetBootproto=staticDefroute=yesPeerdns=yesPeerroutes=yesIpv4_failure_fatal=yesIpv6init=yesName=ens33Uuid=4e0da825-c403-4cb4-9dd6-915e78106fe3Device=ens33Onboot=yesbroadcast=192.168.1.255ipaddr=192.168.1.131gateway=192.168.1.1netwask=255.255.255.0dns1=192.168.1.1hwaddr=00:0c:29:6e:b3:91This way, save some of the commands to exit:: w save file but do not exit VI: W file saves the modification to file and does not exit VI: w! Forced to sav
(1) The intuitive way is: if you use the fedora system, enter setup in the command line and enter the static IP address according to the wizard, refer to my article "Building a NAT test environment for VMware Workstation"
(2) modify the configuration file and enterVim/etc/sysconfig/network-ScriptS/ifcfg-eth0
Device = eth0Onboot = YesBootproto = staticIpaddr = 192.168.0.3Netmask = 255.255.255.0Gateway = 192
Setting IP addresses in Linux is simple. Generally, you can use the ip command tool or directly modify the configuration file.
This section describes how to configure a configuration file.
Redhat series (CentOS Redhat ):
You must modify three files and then restart the network.
The first file: IP configuration file.
Path:/etc/sysconfig/network-scripts/
Usually
Php uses static classes to obtain client IP addresses
/**
* Miscellaneous utility methods.
*/
Final class Utils {
Private function _ construct (){
}
/**
* Get IP address
* @ Return string IP address string
*/
Public
1. Find the file and make the following changes:Sudo Vim/etc/Network/interfacesModify the following parts:Auto eth0Iface eth0 Inet staticAddress 192.168.0.117Gateway 192.168.0.1 # Check whether the gateway address is the IP address.Netmask 255.255.255.0Network 192.168.0.0Broadcast 192.168.0.2552. Modify DNS resolutionThe DNS server address is automatically assigned because DHCP resolution is used in the past.Once set to a
Wired network:1. Locate the file and make the following changes:sudo vim/etc/network/interfacesModify the following sections:Auto Eth0Iface eth0 inet StaticAddress 192.168.0.117Gateway 192.168.0.1 #这个地址你要确认下 Gateways are not this addressNetmask 255.255.255.0Network 192.168.0.0Broadcast 192.168.0.2552. Modify DNS ResolutionDNS server addresses are automatically assigned because they were previously resolved by DHCPAnd once the static
Http://www.cnblogs.com/objectorl/archive/2012/09/27/vmware-ubuntu-nat-static-ip-settings.htmlRefer to the above method, but this version needs to take one more stepGedit/etc/networkmanager/networkmanager.confChange Managed=false to TrueThe steps are as follows:Static IP SettingsView NAT Mode IP1 gedit/etc/network/interfacesAdd the following contentIface eth0 inet
First go to the Network-scripts folder #:cd/etc/sysconfig/network-scriptsThen use VI to edit Ifcfg-eth0 #:vi ifcfg-eth0 #仅eth0网卡一个DEVICE = eth0 #设备名称BOOTPROTO = static #获取IP的方式或依赖的协议, where auto is changed to static broadcast=192.168.1.255 # Broadcast address, typically the last IP of the netw
1. Configure a static IP address for the network card edit the file/etc/network/interfaces:sudo vi/etc/network/interfaces and replace the line about eth0 with the following line: # The Primary network Interfaceauto eth0iface eth0 inet staticaddress 192.168.2.1gateway 192.168.2.254netmask 255.255.255.0#network 192.168.2.0#broadcast 192.168.2.2552 Replace the above IP
First make sure that the virtual network card (VMware Network Adapter VMnet8) is turned on, and then enter "Ipconfig/all" on the Windows command line to find the VMware network Adapter VMnet8 's IPv4 address (for example: 192.168.16.1), such as:Then make sure that the network configuration of the virtual machine CentOS is NAT, such as:Finally, set the static IP as follows:Start and enter the CentOS system,
To delete a static IP address, open the "command prompt ". At the command prompt, type: route delete destination where: destination specifies the IP address or network name of the remote TCP/IP host or network. For example, To delete a static route to 192.168.20.1, type: rou
1. Edit the NIC configuration fileVi/etc/sysconfig/network-scripts/ifcfg-eth0To set the IPV4 information for the NIC Eth0, it is important to note that the ipaddr set up needs to be in the same network segment as the other machines in the LAN. The following settings are required:Device=eth0//indicate the device nameType=ethernet//Network TypeUuid=00d5494b-16ed-49c9-a221-76b973cb1570onboot=yes//whether to launch the appNm_controlled=Yesbootproto=Nonebootprot=
We have completed most of the work before configuring static IP addresses, DNS settings, and host names in Linux. However, a small part of the work will be continued here. Continue with the article for configuration, soon you will complete a server host.
③ Configure the secondary DNS Server
Configure the server 11.0.0.2 as the 21php.com secondary dns Server
The secondary DNS Server transfers a complete set
Model: Cisco IOS software, 3800 software (c3845-adventerprisek9-m), Version 15.1 (4) M4, RELEASE Software (FC1)Ios:c3845-adventerprisek9-mz.151-4.m4.binSymptom: Write a command such as ' IP host www.test.com 192.168.100.9 ' save, 5 minutes or so this command automatically disappearsGoogle for a moment:https://learningnetwork.cisco.com/thread/39482This is the support of Cisco official website, probably means to restart after the good. The following URL
Today, a day, finally put Linux on the virtual machine set static IP address.Tell us a little, in fact, Bridge does not have to be wired connection, in fact, even wireless can be solved. At first I misunderstood this, have been in the tangle must use the situation of the switch to connect. Finally is always failed, has failed, Ping does not come out, but just enlightened, has been done, also consulted some
VMware12 down bridge mode static IP configurationEnvironmental centos6.6Bridging is equivalent to a virtual machine being a host in a physical network, the same as the IP segment of a physical host. Virtual network cards 1 and 8 are not used.The configuration is as follows:650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/79/62/wKioL1aPh7mTJqsBAAGks6YGTV
Modify under command line1, modify the IP settings, edit the file:$sudovi /etc/network/interfaces auto lo iface lo inet loopback #添加: auto eth0 iface eth0 inet static 192.168. 1.20 255.255. 255.0 192.168. 1.1 Save, so that the IP does not take effect immediately. Need to perform$sudo /etc/init.d/networking restart2, modify the DNS, edit the fi
Problem Description:Feel the problem to solve the back to think it is very simple, but no solution can not find the problem, knowledge reserves stretched. In response to this problem I have a long time to fix, all kinds of information, but also to prove that I have a lower ability to screen useful blog, first let me cry will go ...In virtual experiments, especially distributed cluster environment, we need to configure static
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.