Ubuntu10.04 network problem resolution record

Source: Internet
Author: User
Ubuntu10.04 network problem resolution record the previous virtual machine environment. due to a long network configuration change, the network is not connected now. the solution is recorded as follows: premise: Windows 7 of the local machine: Ip address: 192.168.1.5; the gateway is 192.168.1.1. the virtual machine bridges the local machine through the Bridge... ubuntu10.04 network problem resolution record the previous virtual machine environment. due to a long network configuration change, the network is not connected now. the solution is recorded as follows: premise: Windows 7 of the local machine: Ip address: 192.168.1.5; the gateway is 192.168.1.1, and the virtual machine uses Bridge to Bridge the Internet with the local machine. Process: 1. create Bridge configuration: Edit-> Virtual network editor, add a Bridged type network or directly modify one of them to the Bridged type, select the NIC used by the local machine at the location of Bridged. 2. set the Network of the virtual system to Bridged: Select Bridged in the network connection type from VM> Settings> hardware> Network adapter, and then exit. 3. start the VM and run the command ifconfig to view the currently started network devices and their configurations. if there are any of the following devices, skip steps 1 and 5 and directly configure the network ip address and Gateway. Eth0 Link encap: Ethernet HWaddr xx: xx inet6 addr: xxxx/64 Scope: Link... lo Link encap: Local Loopback inet addr: 127.0.0.1 Mask: 255.0.0.0 inet6 addr: 1/128 Scope: Hos... if you can only see one lo entry (as shown below), follow Step 1 to use ifconfig-a to continue viewing the Local Nic device lo Link encap: Local Loopback inet addr: 127.0.0.1 Mask: 255.0.0.0 inet6 addr:: 1/128 Scope: Hos... 4. run the ifconfig-a command to view all Nic devices even if they are not started. the following eth0 Link encap: E Thernet HWaddr xx: xx inet6 addr: xxxx/64 Scope: Link... lo Link encap: Local Loopback inet addr: 127.0.0.1 Mask: 255.0.0.0 inet6 addr: 1/128 Scope: hos5: run the command vi/etc/network/interfaces to modify the network configuration auto eth0iface eth0 inet dhcp and change the automatically configured ip address to the following, where # is followed by the annotation item auto eth0iface eth0 inet staticaddress 192.168.1.10gateway 192.168.1.1netmask 255.255.255.0 # nameserver 8.8.8.8nameserver 8.8.8.8 # Here is D The ip address of the NS domain name varies. # Network 192.168.1.0 # broadcast 192.168.1.2556, through vi/etc/resolv. conf command to modify DNS configuration nameserver 8.8.8.8 # keep consistent with the above nameserver configuration domain localdomainsearch localdomain7, restart the Nic device with the Command/etc/init. d/networking restart the Nic device. 8. run the reboot command to restart the VM system and run the ifconfig command to check whether the network configuration is configured and accessible. If you do not use the command ifconfig eth0 up/down to start/close the network adapter eth0, try again. (1) configure IP/mask/default gateway in the/etc/network/interfaces File (2)/etc/resolv. the conf file contains the DNS domain name resolution server address (3)/etc/init. d/networking this file can restart the Nic configuration/etc/init. d/networking restart the following commands are used: (1) ifconfig ------- view Nic information (2) ifconfig eth0 up/down Start/close Nic eth0 (3) ifconfig eth0 125.0.0.0 netmask 255.0.0.0 ----- configure the nic ip address (4) route add default gw 192.168.1.1 ------- configure the default route (5)/etc/init. d/networking restart network configuration

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.