Created a Xen bridge on F20 and networking will not start on boot...
After troubleshooting I found that I need to run the following commands manually to start networking:
- sudo ifup em1
- sudo ifup xenbr0
- sudo route add default gw 192.168.0.1
I want to have these run on boot so that I do not have to run them manually. How do I create a script for this?
/etc/sysconfig/network-scripts/ifcfg-em1:
TYPE="Ethernet"
BOOTPROTO=none
DEVICE="em1"
ONBOOT="yes"
HWADDR=A0:D3:C1:05:20:A0
BRIDGE=xenbr0
DELAY=0
NM_CONTROLLED=no
/etc/sysconfig/network-scripts/ifcfg-xenbr0:
DEVICE=xenbr0
TYPE=Bridge
BOOTPRO=none
IPADDR0=192.168.0.10
PREFIX0=16
GATEWAY0=192.168.0.1
DNS1=192.168.0.1
ONBOOT=yes
DELAY=0
NM_CONTROLLED=no
BRIDGE_STP=on
uname -a
Linux Sandbox 3.16.6-203.fc20.x86_64 #1 SMP Sat Oct 25 12:44:32 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
Try
BOOTPROTO=static
instead ofBOOTPRO=none
in ifcfg-zenbr0I do believe that was one of the things I attempted but will try again......just tried...does not fix the issue.
@GobleSt - You shouldn't have changed it back if you tried
BOOTPROTO
before.BOOTPRO
is gibberish.doh! I just tried "static" did not even catch the syntax error....!!! ...but alas, I tried again and still no go. Here is my CURRENT /etc/sysconfig/network-scripts/ifcfg-xenbr0:
Try removing the quotes from Type=. You'd think it would work, but shrug - my bridges don't have that, and they work :)