1. manually set the Host. Add the information vim/etc/hosts at/etc/hostname and insert a line at the end of/etc/hosts. Example: 219.232.244.185 fengbin. me format: IP address domain name Step 2 Modify/etc/sysconfig/networkvim/etc/sysconfig/network if networking = yes if not equal to yes then change to yeshostname = fengbin. me2, modify IP www.2cto.com 1. The most
JIU Xue training network-the largest training platform in China!Free course release, demand, search for courses, lecturers, institutionsTraining courses: Computer, English, Japanese, enterprise management, occupational, French, software, driving, oral English, logistics, chefs, networking, networking, beauty, talent, accounting, stocks, dance...
Recently, I was transferred to Shanghai Telecom to create a project. Due to the inconsistency between the IP
networkHOSTNAME = centos # Set host name4. Modify the NIC[Root @ centos ~] # Vim/etc/sysconfig/network-scripts/ifcfg-eth0Open the file, modify the following content, and saveDEVICE = eth0 # corresponds to the first NicTYPE = EthernetONBOOT = yes # run at startupNM_CONTROLLED = yesBOOTPROTO = static # use a static IP address instead of an IP
网关gateway1.1.1.1#设置网关dns-nameservers1.1.1.1#设置DNS服务器, multiple DNS separated by spaces-search. com #限制. com queries go to the DNS server set above hwaddress etherxx: on:Geneva: 1b:2c:1f #设置MAC地址Reference:http://blog.csdn.net/zhangwu1241/article/details/53311534http://www.you
= 192.168.2.255
2. Modify the Gateway
VI/etc/sysconfig/Network
Networking = Yes
Hostname = Aaron
Gateway = 192.168.1.1
3. Restart the network configuration
/Etc/init. d/network restart
Bytes -----------------------------------------------------------------------------------
Modify configuration file
/Etc/sysconfig/network-scripts/has a configuration file
For example, the file: ifcfg-eth0 represents the configuration file of the actual Ethernet NIC 0
For example, the file:
= "2d92dacb-4277-4846-ad83-c6d2a9b27e35"onboot= "Yes"Ipaddr= "192.168.1.30"netmask= "255.255.255.0"Gateway= "192.168.1.1": Wq Save Exit[Root@centos ~]# Service Network restart[Root@centos ~] #ifconfigSee if the modified IP address is in effect3.4 Modifying DNS settingsCurrent host name View[Root@centos ~]# vim/etc/resolv.confAdd the following to the
2. Set a fixed IP address and DNS on Ubuntu.
1) Open a terminal.
2) set a fixed IP Address
Enter sudo VI/etc/Network/interfaces on the terminal, which is usually displayed:
Auto Lo
Iface lo Inet loopback
Add the following co
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
Temporarily modify IP address, gateway, host name, DNS, immediately effective, no reboot (failure after reboot)
1. Modify Host Name
The code is as follows:
#hostname Slyar
2. Modify IP address (eth0 is the name of the network card)
The code is as follows:
#ifconfig eth
This technique is very useful for friends who often use laptops for business trips, such as in another environment, such as the customer's company, you always need to change the network to someone else's intranet address, gateway, DNS, and so on. Write a batch processing file, and then change it to the next one. It's faster than the mouse operation.
Form: http://blog.csdn.net/zmxjModify the
Temporarily modify IP address, gateway, host name, DNS, immediately effective, no reboot (failure after reboot)
1. Modify Host Name
The code is as follows:
#hostname Slyar
2. Modify IP address (eth0 is the name of the network card)
The code is
Set the IP address, gateway, and DNS in the command line in LinuxRun the command: ifconfig eth0 192.168.1.123 netmask 255.255.255.0Run the following command to configure the Gateway: Route add default GW 192.168.1.3You can write these two commands to/etc/rc. Local or/etc/rc. d/rc. Local to save them permanently./Etc/sysconfig/Network: Set the default gateway, hos
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
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
temporarily modify IP address, gateway, hostname, DNS, effective immediately, no restart (after restart)1. Modify Host Name#hostname Slyar2. Modify the IP address (eth0 is the NIC name)#ifconfig eth0 192.168.1.5 netmask 255.255.255.03. Modify the default gateway (Eth0 is the
1. Set IP address, gateway Cp/etc/network/interfaces/etc/network/interfaces.bak # Backing up legacy configuration Files Vi/etc/network/interfaces # Edit Network adapter profile # The Loopback network interfaceAuto LoIface Lo inet Loopback# The Primary network interfaceAuto eth0 # Auto Connect networkAllow-hotplug eth0Iface eth0 inet Static # static means using dynamic I
Because the company's computer every time the power-on reset assigned IP address is different, which leads to a lot of inconvenient things, so simply lock a fixed IP address, the following is the steps I lock the IP address:1. Set
Specific methods
Right-click the desktop Network Neighborhood → select "Properties" → "Local Area Connection" of the network card to select "Properties" → "general" → "Internet Protocol (TCP/IP)" To view its properties:
If the router is the default setting, then the computer's various network parameters should be set to:
IP Address: 192.168.1.x (2 Mask: 25
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 Pr
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.