Network Configuration of the ubuntu10.04 virtual machine in the lab

Source: Internet
Author: User

The lab uses the ubuntu10.04 Virtual Machine network to configure the lab and the dormitory network. I came to the lab yesterday. To use nfs, you must set up a network to access the Internet using ubuntu10.04 in the virtual machine. Guigong's network has many characteristics. The IP addresses of each machine are almost fixed. In addition, many subnets exist. Ubuntu can be accessed from a drcom client. Vmware can set up shared Internet access with hosts. ========================================================== ================================================== The settings are all in the etc directory. The hostname was modified yesterday. Modify the network configuration today. It mainly involves interfaces and/etc/resolv under/etc/network. conf = ==================================== network information of the school lab: according to this information, set ubuntu10.04 in The virtual machine to 1 # The primary network interface 2 auto eth0 3 iface eth0 inet static. 4 address 202.193.89.253. It is not allocated by the gateway. 5 netmask subnet mask 255.255.255.192 this subnet mask, the last is 192 6 gateway 202.193.89.254 7 # iface eth0 inet dhcp 8 auto lo 9 iface lo inet loopback 10 ~ Resolv. modify conf: ================================================== ping, successful: root @ ubuntu:/etc # cd network root @ ubuntu:/etc/network # lsif-down.d if-post-down.d if-pre-up.d if-up.d interfaces interfaces-502root @ ubuntu:/etc/network # vi interfacesroot @ ubuntu: /etc/network # ping 127.0.0.1PING 127.0.0.1 (127.0.0.1) 56 (84) bytes of data.64 bytes from 127.0.0.1: icmp_seq = 1 ttl = 64 time = 0.027 ms ^ [[A64 bytes from 127.0.0.1: icmp_seq = 2 ttl = 64 time = 0.026 ms ^ C --- 127.0.0.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999 msrtt min/avg/max/mdev = 0.026/0.026/0.027/0.005 msroot @ ubuntu:/etc/network # ping 202.193.80.203PING 202.193.80.203 (202.193.80.203) 56 (84) bytes of data. ^ C --- 202.193.80.203 ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 1999 ms root @ ubuntu:/etc/network # ping 202.193.89.203 PING 202.193.89.203 (202.193.89.203) 56 (84) bytes of data.64 bytes from 202.193.89.203: icmp_seq = 1 ttl = 64 time = 4.82 ms64 bytes from bytes: icmp_seq = 27 ttl = 64 time = 0.082 ms64 bytes from 202.193.89.203: icmp_seq = 28 ttl = 64 time = 0.193 ms64 bytes from 202.193.89.203: icmp_seq = 29 ttl = 64 time = 0.191 ms64 bytes from 202.193.89.203: icmp_seq = 30 ttl = 64 time = 0.114 ms64 bytes from 202.193.89.203: icmp_seq = 31 ttl = 64 time = 0.110 ms64 bytes from 202.193.89.203: icmp_seq = 32 ttl = 64 time = 0.116 ms64 bytes from 202.193.89.203: icmp_seq = 33 ttl = 64 time = 0.116 ms64 bytes from 202.193.89.203: icmp_seq = 34 ttl = 64 time = 0.121 ms64 bytes from 202.193.89.203: icmp_seq = 35 ttl = 64 time = 0.156 ms64 bytes from 202.193.89.203: icmp_seq = 36 ttl = 64 time = 0.118 ms64 bytes from 202.193.89.203: icmp_seq = 37 ttl = 64 time = 0.155 ms64 bytes from 202.193.89.203: icmp_seq = 38 ttl = 64 time = 0.194 ms64 bytes from 202.193.89.203: icmp_seq = 39 ttl = 64 time = 0.198 ms64 bytes from 202.193.89.203: icmp_seq = 40 ttl = 64 time = 0.093 ms ^ C --- 202.193.89.203 ping statistics --- 40 packets transmitted, 15 bytes ed, 62% packet loss, time 39002 msrtt min/avg/max/mdev = 0.082/0.452/4.823/1.168 msroot @ ubuntu:/etc/network # ping 202.193.89.254PING 202.193.89.254 (202.193.89.254) 56 (84) bytes of data.64 bytes from 202.193.89.254: icmp_seq = 6 ttl = 64 time = 1.52 ms64 bytes from 202.193.89.254: icmp_seq = 7 ttl = 64 time = 2.93 ms64 bytes from 202.193.89.254: icmp_seq = 8 ttl = 64 time = 2.10 ms ^ C --- 202.193.89.254 ping statistics --- 8 packets transmitted, 3 encoded ed, 62% packet loss, time 7003 msrtt min/avg/max/mdev = 1.521/2.187/2.933/0.579 msroot @ ubuntu:/etc/network #

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.