Linux (1): linux change IP address command _ change DNS _ change default gateway _ change subnet mask _ host name, linuxdns
How to use commands to change the linux IP address, DNS, and subnet mask, and add a Linux virtual machine to the Virtual Machine (vitrualBox;
Installation: http://pan.baidu.com/s/1sjJPhP7
After i
= yes # whether to set this network interface when the system starts. If it is set to yes, the device is activated when the system starts.2. Modify the GatewayModify the gateway configuration file of the corresponding Nic[Root @ centos] # vi/etc/sysconfig/networkModify the following contentNETWORKING = yes (indicates whether the system uses the network, which is generally set to yes. If it is set to no, the network cannot be used, and many system service programs cannot be started)HOSTNAME = ce
In Debian, the IP address configuration parameters are in the interface under the/etc/Network/directory, while the DNS configuration parameters are in the resolv. in Conf, the following describes the configuration parameters:
======================================
IP Address Settings:/etc/Network/interface
// Obtain Dynamic DHCP
# Start the system activation
This article introduces, in Linux set the IP address, gateway, DNS method, have the need for friends to make a reference bar.There are two ways to set up a Linux network:First: Use the command to modify (direct immediate effect)Copy Codecode example:IP and netmask:# ifconfig eth0 192.168.30.197 netmask 255.255.255.0Gateway# route Add default GW 192.168.30.1 eth0Dns:# VI Etc/resolv.confNameServer 202.131.80.
Modify IP
cmd/c netsh interface ip set address name= "Local Area Connection" Source=static addr=211.82.56.253 mask=255.255.255.0 gateway=211.82.56.1 Gwmetric=1
Modify DNS
cmd/c netsh interface ip set DNS name= "Local Area Connection" Source=static addr=202.99.192.66
To configure or update an IP address:
WMIC N
WinXPCMD------------->netsh winsock reset=============Related knowledge:The netsh winsock reset command means to reset the Winsock directory. If there is a problem with the Winsock protocol configuration on a machine that will cause problems such as network connectivity, you will need to reset the Winsock directory with the Netsh winsock reset command to restore the network. Winsock is a Windows network programming interface that starts with a built-in command from Windows XP SP2 and uses Netsh
1. Click on the "Start" menu to enter.2. Then we click on "Control Panel" at the beginning.3. Enter the control Panel and click "Network and Internet" to enter, as follows.4. In the open Network and Inernt interface we click on "Network and Sharing Center" to enter, as shown below.5. Then we click the "Change adapter Settings" option, click to enter6. Locate the Ethernet icon and right-click, then select Properties.7. Then we click on the "Ethernet Properties" window to double-click Internet Pro
If you do not know your computer's network connection information we can have a number of ways to view, below we introduce directly in the graphical interface of a procedure.
1, view the current connection of the wireless network and the list of wireless networks can be connected, click the taskbar in the lower right corner of the network connection icon, as shown in the following figure:
2, view the current network connection IP address, gatew
Note: System: debian6.0.4IP address: 192.168.21.166 subnet mask: 255.255.255.0 Gateway: 192.168.21.2DNS: 8.8.8.88.8.4.4 operation: System O M reminder: qihang01 original content copyright, reprinted, please indicate the source and original article links 1. set the IP address, Gateway nano/etc/network/inte
Note:
System: debian 6.0.4IP address: 192.168.21.166Subne
Operating System: Linux cent OS 5
Set static IP Address :?
1234567891011
nano /etc/sysconfig/network-scripts/ifcfg-eth0DEVICE=eth0BOOTPROTO=staticHWADDR=00:F1:F3:07:11:4AONBOOT=yesDHCP_HOSTNAME=ehangpcTYPE=EthernetNETMASK=255.255.255.0IPADDR=192.168.1.2GATEWAY=192.168.1.1
Set DNS :?
123
nano /etc/resolv.confnameserver 8.8.8.8
Restart th
Win7 System Web page error "Unable to resolve DNS address of server" How to do?
Method One:
1, click the Start menu, enter "cmd" in the search box, and then in the search out of the program "Cmd.exe" on the right button, select "Run as Administrator";
2, open the command prompt after we enter the box "Ipconfig/flushdns" press ENTER;
3, after the completion of the previous command, enter "
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.