Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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