Pejman Moghadam / Redhat

Redhat 8.0 - Bridge

Public domain


Disable Ethernet Interfaces

ifconfig eth0 0.0.0.0
ifconfig eth1 0.0.0.0

Create Bridge Interface

brctl addbr br0
brctl addif br0 eth0
brctl addif br0 eth1

Bridge IP Setting

ifconfig br0 192.168.0.14 netmask 255.255.255.240 broadcast 192.168.0.16
ifconfig br0:0 192.168.0.17 netmask 255.255.255.240 broadcast 192.168.0.31
ifconfig br0:1 192.168.0.33 netmask 255.255.255.224 broadcast 192.168.0.63
ifconfig br0:2 192.168.0.65 netmask 255.255.255.192 broadcast 192.168.0.127
ifconfig br0:3 192.168.0.129 netmask 255.255.255.192 broadcast 192.168.0.191
ifconfig br0:4 192.168.0.193 netmask 255.255.255.192 broadcast 192.168.0.255
ifconfig br0:5 10.10.10.131 netmask 255.255.255.192 broadcast 10.10.10.191
ifconfig br0:6 100.101.12.1 netmask 255.255.255.252 broadcast 100.101.12.3

Default Gateway

route add default gw 192.168.0.1

Flushing Route Table

ip route flush cache

BY: Pejman Moghadam
TAG: bridge, brctl
DATE: 2007-11-27 15:25:38


Pejman Moghadam / Redhat [ TXT ]