Network settings of Fedora10 in virtual machine, virtual machine fedora10

Source: Internet
Author: User

Network settings of Fedora10 in virtual machine, virtual machine fedora10

After the virtual machine is installed, Fedora10 does not support network connections. In this case, you need to change

System configuration file, switch to the root user, and enter the command on the terminal:

Gedit/etc/sysconfig/network-scripts/ifcfg-eth0

Modify ifcfg-etho,

The original content of the ifcfg-eth0 file is as follows:

# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
DEVICE = eth0
HWADDR = 00: 0c: 29: 3c: 3b: f2
The above is the original system file, and the third is the MAC address of the system. Do not modify it,

After the content is added, the file is changed to the following style


# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]

DEVICE = eth0
HWADDR = 00: 0c: 29: 3c: 3b: f2
ONBOOT = yes
BOOTPROTO = none
USERCTL = yes
PEERDNS = yes
IPV6INIT = no
NM_CONTROLLED = yes
TYPE = Ethernet
NETMASK = 255.255.255.0
IPADDR = 192.168.0.58
GATEWAY = 192.168.1.2
DNS1 = 202.96.128.166


IPADDR indicates the Virtual Machine IP address. The first three parts must be the same as the host IP address.

The Virtual Machine IP address and Host IP address are in the same CIDR block.

Different

You can set one or more of the last DNS.

One DNS, so only one DNS is set.


After the configuration is complete, restart the VM to make the configuration file take effect. Enter:

Ping 192.168.0 .*


192.168.0. * is the host address. If the network is set successfully, the following information appears:

PING 192.168.0.*(192.168.0. *) 56 (84) bytes of data.
64 bytes from 192.168.0. *: icmp_seq = 1 ttl = 64 time = 2.60 ms
64 bytes from 192.168.0. *: icmp_seq = 2 ttl = 64 time = 0.884 ms
64 bytes from 192.168.0. *: icmp_seq = 3 ttl = 64 time = 0.877 ms
64 bytes from 192.168.0. *: icmp_seq = 4 ttl = 64 time = 0.705 ms
64 bytes from 192.168.0. *: icmp_seq = 5 ttl = 64 time = 0.743 ms
64 bytes from 192.168.0. *: icmp_seq = 6 ttl = 64 time = 0.707 ms
--- 192.168.0. * ping statistics ---
6 packets transmitted, 6 encapsulated ed, 0% packet loss, time 5122 ms


If the setting fails, the system prompts that the host is not found.

The configuration file does not work. You need to restart the virtual machine or set the IP address.

The Virtual Machine IP address and Host IP address must be set in the same

Network segment, that is, the first three parts must be the same.

You can also Ping the VM on the host to test whether the network configuration is successful,

Open cmd, enter ping 192.168.0.58,

A message is displayed indicating whether the connection is successful.







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.