= 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:
The steps are as follows: 1. Locate the file and make the following changes: sudo vi/etc/network/interfaces The result of the modification is the following section: Auto Lo Iface Lo inet loopback Auto P2P1 Iface p2p1 inet Static Address 192.168.1.244 Gateway 192.168.1.1 Netmask 255.255.255.0 Note:p2p1 for the machine's network card name, different server network card name is different , please modify it yourself 2. Modify
Users who frequently access the Internet may often go to large websites such as Sina and Sohu. They only need to enter their URLs in the browser to access the website. It seems very simple, but technically speaking, but it contains a complicated process: when accessing a webpage, first enter the website domain name in the browser, then, the browser converts the entered website domain name to the corresponding IP address based on the settings of the lo
Build a DNS server by yourself
Preface:
During normal internet access, domain names are all accessed. How can we convert domain names to IP addresses? What about accessing our server host? In this case, you need to use the DNS server
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
To set the IP address and DNS resolution server, edit/etc/Network/interfaces:
# Interfaces (5) file used by IFUP (8) and ifdown (8) auto loiface lo Inet loopbackauto eth0iface eth0 Inet static address 192.168.1.6 gateway 192.168.1.1 netmask 255.255.255.0 DNS-nameservers 192.168.1.1 # network 192.168.1.0 # broadcast 19
DNS server is actually a domain name resolution system, the prerequisite is only that two virtual machines can ping the same can, so can be in the basic network configuration alone, or you can follow the DHCP server to practice, but we used to ping the IP address, now become ping domain name (example: Ping www.qq.com)
Each IP address can have a host name that consists of one or more strings separated by a decimal point. With the hostname, do not memorize each IP device IP address, just remember the relative intuitive meaningful host name on the line. This is the function that the DNS protocol will perform.Today we will discuss
1. View DNS:Cat/etc/resolv.conf2, Ubuntu fixed IPsudo vim/etc/network/interfacesModify the following sections:Auto Eth0Iface eth0 inet StaticAddress 59.77.132.80Netmask 255.255.255.0Gateway 192.168.0.12. Modify DNS ResolutionDNS server addresses are automatically assigned because they were previously resolved by DHCPAnd once the static IP is set, there is no auto
/** The architecture automatically resolves DNS servers of different IP addresses based on Telecom and Netcom users* This article describes how to allow the DNS server to parse different image server IP addresses based on the user
Tutorial Background:The company's current network environment is accessible to all users above the internet, and the DNS used is obtained through the DHCP server, the DNS address entered on the DHCP server is a registered DNS server
When the user is working with the Win7 system, sometimes the connection to the network process prompts for DNS and IP addresses automatically, and the result is that the browser cannot connect to it. Why is this happening? What should we do in this situation? In fact, we can go to the Network Center through the Start menu manually set up to get DNS and
the local computer, click "start", "run", Enter cmd in the box, and click "OK". The new DOS window is displayed.
2. Enter the following command in the DOS interface and press Enter:
NSLookup-q = NS www.webweb.com
(Note: There is a space between NSLookup and-Q, and there is a space between ns and www.web.com)
If the local DNS server does not work properly, press the Enter key and the system will receive an
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
Scenario: The day before the virtual machine in the configuration of the centos6.3, you can normally surf the internet, and the FTP server to build up, today a boot this goods unexpectedly can not surf the internet, depressed ....
Problem:
The following figure:
Can ping the IP address, but the domain name Ping pass ...
Resolution process: STEP1) A preliminary assessment of
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, host name, and whether to start the network;/Etc
DNSdomainnamesystem Domain Name System features: (1) recursive query and iterative query (2) Distributed Database (3) Resolve domain names to IP addresses (4) it has three types: primary DNS server, secondary DNS server, and cache DNS
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
First, you must have a domain name that belongs to you. For example: ABC.com. No domain name must first register a domain name.
Second, register a DNS domain name in the International Domain name Center to make your DNS server globally effective.
1, in the domain name registrars (such as new network, new network interconnection) of the Domain name Control Panel i
Linux Modify IP, DNS, routing command line settings ubuntu version of the command line set IP
Cat/etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, interfaces (5).
# The Loopback network interface
Auto Lo
Iface Lo inet Loopback
# The Primary network interface
Auto
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.