I am trying to setup a specific network configuration on my CentoOS 6 OS. I'm running into some issues that I don't quite understand and could use some help understanding them.
I am running Centos on a virtual machine hosted on a Mac. I use VMWare Fusion.
From my experience trying to do this, I am confused in a number of areas.
- How is the network managed?
- I know that /etc/init.d/network does some of it. However, when I created the ifcfg file under /etc/sysconfig/network-scripts/ifcfg-eth0:0, "service network restart" does not bring up the virtual adapter. Interestingly enough, when I restart the VM, the virtual adapters are up.
- I notice there is a utility called NetworkManager which seems apart from the network script. I added a new network adapter to my virtual machine, and suddenly I have eth1 and eth2 (no longer eth0), neither of which appear to have corresponding ifcfg files. Yet, NetworkManager happily connects/disconnects them and I can get to the internet.
- Where can I find more documentation on any of this?
- Virtual network adapters. Where can I find more documentation on the details of how they work?
- If I have eth0 to be 10.x.x.20, and eth0:0 to be 10.x.x.21, and I sent packets through eth0:0, will the router see packets from the 10.x.x.20, or 10.x.x.21?
- How can I expect traffic to route if I set up a virtual adapter?
- When my virtual machine's adapter is configured to be NAT, my virtual adapter in the virtual machine can route traffic to the internet just fine. However, when the virtual machine's adapter is bridged to my network, the virtual adapter can't reach the internet at all. Why is this?
http://collaboradev.com/2011/08/02/crea ... in-centos/