OpenSUSE Linux Bridging Network

Posted on January 17, 2007

advertisement

I had a OpenSUSE Linux 10.2 network bridge setup with 2 network card(eth0 & eth1) recently.

Below is the automated script that I use to start my network bridging services:

#!/bin/bash
PATH="/sbin:/usr/sbin:/usr/local/sbin";
slaveIfs="1 2 3 4 6 7 8 9 10";
cmd="$1";
[ -z "$cmd" ] && cmd="start";
case "$cmd" in
  start)
    brctl addbr br0;
    brctl stp br0 on;
    brctl addif br0 eth0;
    brctl addif br0 eth1;
    (ifdown eth0 1>/dev/null 2>&1;);
    (ifdown eth1 1>/dev/null 2>&1;);
    ifconfig eth0 0.0.0.0 up;
    ifconfig eth1 0.0.0.0 up;
    dhclient br0 ### Adapt to your needs.
    for file in br0 eth0 eth1;
    do
      echo "1" > /proc/sys/net/ipv4/conf/${file}/proxy_arp;
      echo "1" > /proc/sys/net/ipv4/conf/${file}/forwarding;
    done;
    echo "1" > /proc/sys/net/ipv4/ip_forward;
    ;;
  stop)
    brctl delif br0 eth0;
    brctl delif br0 eth1;
    ifconfig br0 down;
    brctl delbr br0;
    #ifup eth0; ### Adapt to your needs.
    #ifup eth1; ### Adapt to your needs.
    ;;
  restart,reload)
    $0 stop;
    sleep 3;
    $0 start;
    ;;
  status)
    brctl show;
    ;;
esac;


Due to some technical problem, I have rebooted the OpenSUSE box yesterday just before leaving office. I’m not aware anything about the box because I did not login to the system. Around 7:xx PM, I received a call from my colleague said that my Linux box having the network DHCP problem. A group of staff couldn’t getting any DHCP IP address due to some looping in my network setup I guess…..

After some investigation, I found the error message:


Jan 16 xx:xx:20 linux-2zhw kernel: eth1:
 received packet with own address as source address
Jan 16 xx:xx:24 linux-2zhw kernel: eth1:
 received packet with own address as source address
Jan 16 xx:xx:31 linux-2zhw kernel: eth1:
 received packet with own address as source address
Jan 16 xx:xx:34 linux-2zhw kernel: eth1:
 received packet with own address as source address
Jan 16 xx:xx:41 linux-2zhw kernel: eth1:
 received packet with own address as source address
Jan 16 xx:xx:45 linux-2zhw kernel: eth1:
 received packet with own address as source address
Jan 16 xx:xx:51 linux-2zhw kernel: eth1:
 received packet with own address as source address

Yeah! It’s my OpenSuSE box problem somehow the bridge network keep looping. I have remove the automated script immediately and I’m so sorry for those who have affected :(

Possibly Related Posts:


Comments

Leave a Reply




Planet Malaysia

  • Follow us on Twitter


  • web www.planetmy.com