[Bridge] How to keep bridge up after reboot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



One thing what has worked for me on RH[89] is
modification of a
/etc/sysconfig/network-scripts/ifcfg-br0
In it, you have the normal IP resolving stuff and then
add some script at the end (this file is acutally
sourced).  In example, if br0 was eth0 and eth1 and
your IP was dhcp:

DEVICE=br0
ONBOOT=yes
BOOTPROTO=dhcp
if [ "$0" = "/sbin/ifup" -o "$0" = "./ifup" ] ; then
  ip link set eth0 up
  ip link set eth1 up
  brctl addbr br0
  brctl addif br0 eth0
  brctl addif br0 eth1
fi
if [ "$0" =
"/etc/sysconfig/network-scripts/ifdown-post" ] ; then
  brctl delbr br0
  ip link set eth0 down
  ip link set eth1 down
fi

--- Stephen Hemminger <shemminger@xxxxxxxx> wrote:

> On Thu, 5 May 2005 16:06:59 -0600 
> Scott Ellerbrock <sellerbrock@xxxxxxxxxxxx> wrote:
> 
> > I am sorry for the newbie question. I am working
> with SUSE 9.2 and I have
> > followed the instructions at
> >
>
http://tldp.org/HOWTO/Ethernet-Bridge-netfilter-HOWTO-4.html
> > 
> > I have gotten my bridge to work flawlessly, but I
> can't figure out how to
> > get the bridge to come up after a reboot. 
> > 
> > Any help or pointers to docs that will get me
> going in the right direction
> > would be greatly appreciated.
> > 
> > Scott
> >  
> It is really depends on the distribution, some of
> the firewall's etc have
> gui's and startup scripts to handle.  You might look
> in the SUSE doc's.
> > _______________________________________________
> Bridge mailing list
> Bridge@xxxxxxxxxxxxxx
> http://lists.osdl.org/mailman/listinfo/bridge
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

[Index of Archives]     [Netdev]     [AoE Tools]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux