192.168.0.0
Broadcast 192.168.0.255
Gateway 192.168.0.1
# Dns-* options are implemented by the resolvconf package, if installed
Dns-nameservers 61.128.114.20.61.128.114.166
If eth0 is configured, you can view all interfaces by adding ifconfig-a and-a again. You can only view the active interfaces without adding parameters.
Eth1 is found and eth0 is gone. This should be because my virtual machine recognizes the network card as eth1, and the original
The Network Interface Information File of debian or ubuntu-Debian information for the Linux release. For details, refer to the following section. Author: Love and destiny in Wuhan
Root @ havp :~ # Cat/etc/network/interfaces
# The local loopback interface auto indicates that the interface is automatically enabled upon startup.
Auto lo
Iface lo inet loopback
# Eth0 settings
Auto eth0
Iface eth0 inet static
Address 192.168.1.250 # IP address
Netmask 255.255.255.0 # Subnet Mask
Network 192.168.1.0 #
, you can use the above content to create it. After creation, start ipchains Server:
# Firewall configuration written by lokkit# Manual customization of this file is not recommended.# Note: ifup-post will punch the current nameservers through# Firewall; such entries will ** not * be listed here.: Input ACCEPT: Forward ACCEPT: Output ACCEPT-A input-s 0/0-d 0/0-I lo-j ACCEPT# Allow http, ftp, smtp, ssh, domain via tcp; domain via udp-A input-p tcp-s 0/0
. log "specifies the location of the log file. To start named properly, ensure that the file exists and the named process has read and write permissions on it.
4.2 options
Options {
Directory "/var/named ";
// Listen-on-v6 {any ;};
/*
* If you 've got a DNS server around at your upsTrEam provider, enter
* Its IP address here, andEnableThe line below. This will make you
* Benefit from its cache, thus reDuCe overall DNS traffic in the Internet.
*/
// Forwarders {
// Your. upper. DNS.
, Physnet1Bridge_mappings = Physnet0:br-eth0, physnet1:br-eth1You need to create(5) Restart# Service Openvswitch-switch Restart (only reboot once after installation, cannot restart)# Service Neutron-plugin-openvswitch-agent Restart-------------------------------------------------------------------8. Restart the neutron service.Service Neutron-server RestartService Neutron-dhcp-agent RestartService Neutron-metadata-agent RestartService Neutron-plugin-openvswitch-agent Restart=====================
name servers and 13 top-level nameservers worldwide.650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M00/8E/97/wKioL1jGZAHje7RdAAH7P1ubNLQ585.jpg-wh_500x0-wm_ 3-wmp_4-s_1101796131.jpg "title=" domain name. jpg "alt=" wkiol1jgzahje7rdaah7p1ubnlq585.jpg-wh_50 "/>Third, Linux operating system installationInstall the Linux operating system (CENTOS7) in VMware and try to contact simple commands such as: Cd,ifconfig,touch,rm,mv,top,netstat,ping,chmo
ipchains configuration file is as follows:
# Firewall configuration written by lokkit # Manual customization of this file is not recommended. # Note: ifup-post will punch the current nameservers through the # firewall; such entries will ** not * be listed here.: input ACCEPT: forward ACCEPTutput ACCEPT-A input-s 0/0-d 0/0-I lo-j ACCEPT # allow http, ftp, smtp, ssh, domain via tcp; domain via udp-A input-p tcp-s 0/0-d 0/0 pop3-y-j ACCEPT-A input-p t
end of the/etc/sysconfig/network file:/Etc/sysconfig/network:Networking = YesHostname = mylinuxGateway = 10.0.0.2Forward_ipv4 = YesAt the same time, execute the Echo 1>/proc/sys/NET/IPv4/ip_forward statement. However, I found that in RedHat Linux9.0, it is enough to execute the next statement. I don't know if other Linux distributions are the same.To enable the statement Echo 1>/proc/sys/NET/IPv4/ip_forward to automatically execute the statement after startup, we add it to/etc/rc. d/RC. at the
This time, KVM was installed in ubuntu12.04.2, and a new problem occurred while creating the VM.
Symptom:
You cannot ping the virtual machine, log on to the SSH client, and log on to the console. The virtual machine cannot be shut down. It seems that the power management has not been installed successfully.
Solve the network problems first:
Fortunately, you can use virt-cat to check files in the virtual machine.
Disable virtual machine first
virsh destroy vm1
Then check the NIC settings file:
This article is reproduced in: http://yubosun.akcms.com/tech/ubntu-dns-reset.htm
After Ubuntu is installed, a static IP address is set. After restarting, the domain name cannot be resolved. To reset the DNS, open/etc/resolv. conf.
CAT/etc/resolv. conf# Dynamic resolv. conf (5) file for glibc resolver (3) generated by resolvconf (8)# Do not edit this file by hand -- your changes will be overwritten
The content is a warning: the file is dynamically created by the resolvconf program. Do not manua
identifier: 0x00000000 Device Boot Start End Blocks Id System/dev/sdb1 2048 26623 12288 83 Linux/dev/sdb2 26624 1625199 799288 83 Linux...
Mount/dev/sdb1 to the system, for example,/Media/Username/Sdb1:
$ sudo mount /dev/sdb1 /media/username/sdb1
Go to the mount point, edit the uenv.txt file, and change line 1 mmcblk1p2 to mmcblk0p2:
$ sudo vi uEnv.txt root=/dev/mmcblk0p2extraargs=console=tty0 hdmi.audio=EDID:0 disp.screen
[email protected] ~]# Vi/etc/sysconfig/network-scripts/ifcfg-eth0device=eth0# NIC device nameonboot=yes# Activate Yes at startup | nobootproto=static# protocol type DHCP BOOTP noneipaddr=192.168.1.90# Network IP addressnetmask=255.255.255.0# Network Subnet addressgateway=192.168.1.1# Gateway addressbroadcast=192.168.1.255# Broadcast Addresshwaddr=00:0c:29:fe:1a:09# network card MAC addresstype=ethernet# network card type is EthernetNote: You will need to re-import the file after you modify the f
is a list of hotpluggable network interfaces.# They will be activated automatically by the hotplug subsystem.Mapping hotplugScript grepMap eth0
# The primary network interfaceIface eth0 inet staticAddress 192.168.2.250Netmask 255.255.255.0Network 192.168.2.0Broadcast 192.168.2.255Gateway 192.168.2.1# Dns-* options are implemented by the resolvconf package, if installedDns-nameservers 202.96.209.6
Auto eth1Iface eth1 inet staticAddress 192.168.10.254N
nameservers found; Try putting DNS servers into your# ifcfg files in/etc/sysconfig/network-scripts like so:## dns1=xxx.xxx.xxx.xxx# dns2=xxx.xxx.xxx.xxx# domain=lab.foo.com Bar.foo.comCheck the data that the DNS configuration must be added to/etc/sysconfig/network-scripts/ifcfg-eth6, increase dns1=192.168.0.1.But this time or not, the last data is missing the default routing settings, need to add the following file/etc/sysconfig/network-scripts/route
dialling. you wowould probably want to add "defaultroute" and "usepeerdns" to the options file.
Note for GPRSIn order to use the faster (and sometimes cheaper) GPRS, you will need to change a few settings in your dialer configuration. the basic modules and stuff remain the same. I still didn't get wvdial to play along, but in the meantime added pppd itself to the list of working Dialers. here's how:
First (for convenience only) I made a link from/dev/USB/TTS/0 to/dev/GPRS:
# ln -s /dev/usb/tts/
I want to configure DNS, modify/etc/resolv. conf, restart service network restart after modification, and modify/etc/resolv. conf. The information is lost. Please take a look.
Configuration before modification# No nameservers found; try putting DNS servers into your# Ifcfg files in/etc/sysconfig/network-Scripts like so:## Dns1 = XXX. XXX# Dns2 = XXX. XXX# Domain = lab.foo.com bar.foo.com
Solution: Add dns1 = XXX. XXX directly in the ifcfg-eth0, and t
tools:You must configure the/etc/apt. conf file in the following format:
1 Acquire::http::proxy "http://user:pwd@proxy.xxx:8080/"; 2 Acquire::https::proxy "https://user:pwd@proxy.xxx:8080/"; 3 Acquire::ftp::Proxy "ftp://username:password@proxyhost:port/";
This setting is permanently valid and is also recommended. Of course, you also need to set the NIC of the VM to the NAT mode.
Wget tool settings:You need to configure the/etc/wgetrc file in the following format:
1 http_proxy = http://us
Address 192.168.216.188
Gateway 192.168.216.2
Netmask 255.255.255.0
# Indicates the meaning of the comment.
Address is an IP address. ping the IP address to check whether the IP address can be pinged.
The gateway and netmask can be obtained based on the above.
Note: If the static IP address cannot be accessed after it is configured, check whether the dns is configured and whether the configuration is correct.
You also need to configure dns
Have you seen the comments for this place?
This file i
There are two email servers: 192.168.1.1 (B .test.cn in windows) and a.test.com in 192.168.1.3linux ).
Configure the DNS server in linux. The following are some files set during the configuration process,
The specific content of the/etc/hosts file is as follows:
# Do not remove the following line, or various programs# That require network functionality will fail.
127.0.0.1 localhost. localdomain localhost fc4192.168.1.3 a.test.com192.168.1.1 B .test.cn B
/Etc/host. conf file:
Order hosts, bind
I
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.