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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have tow VMs, one CentOS 6.5 and another CentOS 6.8.
When creating the VMs, two network cards are assigned but the result is not expected.
The CentOS 6.5 VM have two IPs, but there is only one configuration file "ifcfg-eth0" in /etc/sysconfig/network-scripts
The CentOS 6.8 VM have only one IP and one "ifcfg-eth0".
I make another CentOS 6.8 image and create VM. In the new CentOS 6.8 image, several "ifcfg-ethX" is created manually.As a result, the new VM have two IPs.
I get question:
1、why the CentOS 6.5 VM have two IPs but only one network configuraion file "ifcfg-eth0"?
2、why the CentOS 6.8 failed to get multiple IPs until several "ifcfg-ethX" file created?
You say you have tow (two, I presume) VMs. What hypervisor are you using? How did you create them? How did you configure them, in particular what resources did you allocate to them?
FYI: Ip addresses require that a (at least virtual) network device exist, but a single device MAY be allocated multiple addresses. Not saying that is going on here, just that you have provided FAR too little information to convince either way. We need more complete data.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.