IP address, DNS, gateway settings
[A]dns setting
Modify File vi/etc/resolv.confModify ContentNameServer 114.114.114.114NameServer 8.8.8.8
[Two]IP settings
Modify File: Vi/etc/sysconfig/network-scripts/ifcfg-eth0Modify ContentDevice=eth0 #描述网卡对应的设备别名, for example, Ifcfg-eth0 in a file that is eth0Bootproto=static #设
224.0.0.0 netmask 240.0.0.0 # #删除路由记录Route add default GW 192.168.120.240 # #添加默认网关Route del default GW 192.168.120.240 # #删除默认网关The route command output explains:Destination: Target network segment or hostGateway Address, * Indicates the destination is the network to which this host belongsGatemask: Network MaskFlags: tags, as follows: u indicates routing activity h indicates that the target is a host g indicates that the route is pointing to the gateway R indicates that the table ent
When using DOS batch processing to set IP addresses, DNS can greatly simplify the network management workload. For example, you need to manually set IP addresses for around 100 computers in the network environment of 192.168.0.1/24, if you set the local connection attribute of each computer in the Internet protocol, this will repeat a lot of work, in fact, each c
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
If you are using Ubuntu in a virtual machine, set up the host network first, then configure the virtual machine Ubuntu IP and gatewayIf the host operating system is Ubuntu, please directly refer to the following settingsThe contents are as follows:1. Check if connectivity is possible, ping the gateway using the ping commandThe beginning is always real unreachable2. Set IPsudo ifconfig eth0 133.133.133.190 netmask 255.255.255.0This sets the
Concept FinishingAlthough the common protocol is easy to understand, but after looking after a period of time not to see or easy to forget, note the following, more fragmented, reluctantly for you to review. If there is a mistake, please correct me.DNS ProtocolThe role of the DNS protocol is to resolve the domain name to IP, the number of domain names is very large, and the corresponding relations
1. The public port of DNS protocol is 53, which is commonly used for UDP encapsulation (TCP encapsulation can also be used ).
DNS (Domain Name System) is a distributed database (IP-name)
2. concepts:
(1) The DNS domain name can contain a maximum of 63 characters, regardless of case. For example, top-level (level-1) do
Today we explain how to set up Ip/dns methods for different operating systems. Windows 98 setting IP, DNS methods
1. Windows 2000/xp IP address parameter settings:
Right-click the desktop Network Neighborhood → select "Properties" → "Local Area Connection" of the network
Use DNS-views to resolve IP addresses in different regions-Linux Enterprise Application-Linux server application information. For more information, see the following section.
I. Introduction
In actual network applications, we sometimes hope that the same Domain Name can be resolved to different corresponding IP addresses based on different request
can enter the URL in the browser or the corresponding IP address, for example, we want to on the Sina network, we can enter the URL in the address bar of IE, can also enter the IP address, but this kind of IP address we can't remember or say is difficult to remember, So with the domain name, such a domain name will make it easy for us to remember. Therefore,
Type network configuration. netsh# ----------------------------------# interface IP Configuration# ----------------------------------pushd Interface IP## interface IP configuration for "Local Area Connection"#设静态IPSet address name= "Local Area Connection" Source=static addr=192.168.1.20 mask=255.255.255.0#设默认网关Set address name= "Local Area Connection" gateway=192
Label: style blog color Io ar use for SP Div
1 ############################ script functions and instructions ###### ############# 2 # configure the DNS server IP address on the local server 3 # Creation Time: 4 5 ########################## define a function ########## ################## 6 # define a function: configure DNS 7 # onid as the nic id; $ dnsservers is
Domain Name Systems Dns:domain Name System
A distributed network directory service, which is mainly used for the mutual conversion between domain name and IP address.
Use UDP protocol 35 ports for communication.
How to work: in order to map a domain name to an IP address, the application invokes a program called a parser that transmits the domain name as a parameter to the program, and the parser encapsulat
Copy Code code as follows:
:: Get the NIC name with the Ipconfig/all command.
for/f "tokens=2*"%%i in (' ipconfig/all^|find/i "Ethernet adapter" ') do set name=%%j
:: Remove the colon after the network card name with the for command.
for/f "tokens=1* delims=:"%%i in ("%name%") do set network card name =%%i
Apply the above script to modify DNS, such as the national DNS server crashed y
I. Set IP addresses, masks, gateways, and DNS using commands
1. Set the IP address and subnet mask of the network adapter eth0: sudo ifconfig eth0 192.168.0.50 netmask 255.255.255.02. Set the gateway sudo route add default GW 192.168.0.13. Set DNS modification/etc/resolv. conf and addNameserver 8.8.8.8Nameserver
An error occurred while adjusting the TCP/IP settings of the server DNS. My colleague reported that the enterprise email sent to the customer could not receive the email. The email sent by the customer to us could be received. I was wondering if it was okay in the past, in addition, no settings are modified on the server. 1. The first step is to check that the DNS
1.1. Set the IP address, gateway, and DNSRHEL7 inside the network card naming method from the eth0,1,2 way into the enoxxxxx format. En stands for enthernet (Ethernet), O stands for onboard (built-in), and that number is automatically generated by an index number of the motherboard to ensure its uniqueness. Compared with the original naming method, this new way is longer, difficult to remember, but the advantage is that the number is unique, when the
Modify IP, Static!netsh interface ip set address "Local Area Connection" Static 172.16.11.139 255.255.248.0 172.16.8.1Note: After the IP, the mask can be modified by itself!Get IP automatically:netsh interface ip set address "Local Area Connection" DHCPTo modify static DNS:n
Students who often return to and from the lab will encounter a problem:
A dormitory router generally automatically obtains an ip address,
However, static IP addresses are usually used in the lab.
Every round trip requires modification every day, which is very troublesome.
A simple method is provided here: (this method is for Windows 7, and for Windows xp, see the last line)
Step 1: Create a txt file
Step 2:
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 eth0 192.168.1.5 netmask 255.255.255.0
3. Modify th
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.