Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm pretty new to networking and just can't get my head around this.

I'm trying to setup KVM-Qemu so I can run some virtual machines. The instructions I'm following are telling me to use eth0 and eth1 as local and WAN connections. I only have eth0 which is used for WAN. I created (or tried to) eth1 and the appropriate bridging, but this keeps disconnecting me from the server when I restart the network interfaces.

Any idea how I can fix this, as I only have eth0?

The instructions are here:

http://www.cyberciti.biz/faq/kvm-virtualization-in-redhat-centos-scientific-linux-6/

For the bridging, I'm using the settings that my host has provided me with for the additional IP.

Starting eth0 configuration:

##Note for customers who want to create bridged networking for virtualisation:
##Gateway is set in separate file
##Do not forget to change interface in file route-eth0 and rename this file
device: eth0
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
HWADDR=50:46:5d:xx:xx:xx
IPADDR=144.76.xx.xxx
NETMASK=255.255.255.255
SCOPE="peer 144.76.yy.yyy"
IPV6INIT=yes
IPV6ADDR=2a01:4f8:191:7282::2/64 
IPV6_DEFAULTGW=fe80::1
IPV6_DEFAULTDEV=eth0

At this point eth1 doesn't exist (though instructions say it should).

Then I create eth1 from instructions:

DEVICE=eth1
ONBOOT=yes
HWADDR=00:30:48:C6:0A:D9
BRIDGE=br1

Then I add the bridges:

DEVICE=br0
TYPE=Bridge
BOOTPROTO=static
ONBOOT=yes
## setup LAN/VLAN ips as per your needs ##
IPADDR=10.10.29.66
NETMASK=255.255.255.192
DELAY=0

DEVICE=br1
TYPE=Bridge
BOOTPROTO=static
ONBOOT=yes
## setup INTERNET ips as per your needs ##
IPADDR=74.ww.xx.yy
NETMASK=255.255.255.248
GATEWAY=74.ww.xx.yy
DELAY=0

(I replace the bridge specific settings with those that my host has provided for br1)

Then I restart the network and it fails.

Any ideas? :)

share|improve this question
    
Please edit your question to specify exactly what your configuration was and how you changed it. –  Michael Hampton Mar 30 at 19:18
    
Done! :) I initially didn't run it in screen, which is why it was not coming online again, but I have no idea why it's not working anymore. Do you have any links to somewhere I can learn more about this possibly? –  Nugget Mar 30 at 19:39
    
So you only have one NIC, not two, as the guide suggests. This means you can't have two, local and WAN networks, and you only need to use one NIC as the WAN network link, skipping the entire LAN thing. Do you have multiple public IPs available for the WAN? Are they all in the same subnet? –  dyasny Mar 31 at 3:19
    
I have 3 IPs in total. At the moment, the main IP is on eth0 the rest are on eth0:0 and eth0:1 respectively. Two are using the same subnet, one is using a different one. 255.255.255.224/248 Do you think I could still set it up like this? –  Nugget Mar 31 at 7:59

1 Answer 1

Something looks fishy with the ipv6 binding. ipv6 networking must be bond using the statement NETWORKING_IP6=yes and the host name must be entered. For more information I found the tutorial at https://wikis.uit.tufts.edu/confluence/display/TUSKpub/Configure+Pair+Bonding,+VLANs,+and+Bridges+for+KVM+Hypervisor

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.