Pejman Moghadam / Fedora

Fedora Core 4 - Bridging

Public domain


Installation

mkdir /root/bridge/
cd /root/bridge/
wget http://download.fedora.redhat.com/pub/fedora/linux/core/4/i386/os/Fedora/RPMS/sysfsutils-1.2.0-4.i386.rpm
wget http://download.fedora.redhat.com/pub/fedora/linux/core/4/i386/os/Fedora/RPMS/bridge-utils-1.0.4-6.i386.rpm
rpm -ivh sysfsutils-1.2.0-4.i386.rpm
rpm -ivh bridge-utils-1.0.4-6.i386.rpm

/root/bridge/bridge.sh

ifconfig eth0 0.0.0.0
ifconfig eth1 0.0.0.0
brctl addbr br0
brctl addif br0 eth0
brctl addif br0 eth1
ifconfig br0 10.20.30.10 netmask 255.255.255.240
ifconfig br0:0 192.168.10.1 netmask 255.255.255.0
route add default gw 10.20.30.1
ip route flush cache

Startup

chmod +x /root/bridge/bridge.sh
echo "/root/bridge/bridge.sh" >> /etc/rc.d/rc.local
reboot

BY: Pejman Moghadam
TAG: rpm, bridge
DATE: 2007-09-06 17:09:31


Pejman Moghadam / Fedora [ TXT ]