Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Whilst configuring my first Fedora 10 virtual laptop I used DHCP connections to connect to the outside world. I now want to configure the virtual systems to each have a fixed IP address so that they can be accessed from PCs over a network. (I don't actually need to connect to the Internet.) I have tried several times and looked on the Internet but can't seem to get things right. The link appears to start but I can't connect in or out between the virtual system and base Fedora installation on the machine.
My current configuration file contains:
(I had to type this info because I can't set up a shared file are without a network connection!)
DEVICE=eth0 I tried pan0 but there was a HW address problem
I removed the HW address in this version of the file
My systems are all Fedora 10 i.e. the base server and the virtual images within that server.
OK, lets try this again. I understand your host is a Fedora 10 server. However, you haven't said what you are using to run the virtual machines. The reason I'm asking is that it is highly likely that the solution to your problem depends on how you are running your virtual machines. The usual suspects are Xen, Virtualbox and VMware. These provide the environment that your virtual Fedora machines run inside.
Thanks. I'm not familiar with KVM, but we should be able to narrow down where the problem is. I'm going to assume that your using bridged networking, but if you are using NAT, please say so. There are really three things you need to look at in your VM and make sure they are right:
1) The fixed IP address. Does it show up correctly in ifconfig and is it the correct address?
2) The gateway. Look at the output of route -n on both your host and VM. They should both be pointing to the same IP address for a gateway, and that is likely the IP address of your router.
3) Your /etc/resolv.conf file. You need to have at least one nameserver in your /etc/resolv.conf file. The /etc/resolv.conf file on your host should serve as a guide.
One quick test to try is to try to connect to linuxquestions.org using the name, and then try to connect with the IP address (75.126.162.205). If the IP works, but the name fails, then you have a DNS problem. If neither work, either the route and/or IP address are goofed up or there is a basic problem with KVM networking.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.