Home Forums Software discussion OS – ubuntu Management of STP protocol

Tagged: 

This topic contains 0 replies, has 1 voice, and was last updated by  pbertino 1 year, 3 months ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #1847

    pbertino
    Participant

    I am using Ubuntu 16.04 with three espressobin board and I am trying STP.
    I have configurated with brctl the stp in all boards and I put these boards in a ring condition.
    ebin0.lan1->ebin1.lan0
    ebin1.lan1->ebin2.lan0
    ebin2.lan1->ebin0.lan0
    When port enter in state learning it never back in forwarding also when I remove one cable from the loop.
    I try to monitor the frame with tcpdump but from the learning port nothing management frames appear.

    Do anyone know if it needs any other configuration?

    I have the follow configuration in each boards:

    brctl addbr br0
    ifconfig eth0 0.0.0.0 up
    ifconfig wan 0.0.0.0 up
    ifconfig lan0 0.0.0.0 up
    ifconfig lan1 0.0.0.0 up
    brctl addif br0 lan0
    brctl addif br0 lan1

    #board 1
    ifconfig wan 192.168.0.1
    dnsmasq –interface=wan –dhcp-range=wan,192.168.0.2,192.168.0.199,12h
    #board 2
    #ifconfig wan 192.168.1.1
    #dnsmasq –interface=wan –dhcp-range=wan,192.168.1.2,192.168.1.199,12h
    #board 3
    #ifconfig wan 192.168.2.1
    #dnsmasq –interface=wan –dhcp-range=wan,192.168.2.2,192.168.2.199,12h

    echo 1 > /proc/sys/net/ipv4/ip_forward

    iptables -t nat -A POSTROUTING -o br0 -j MASQUERADE
    dhclient br0
    brctl stp br0 on

    root@localhost:~# brctl showstp br0
    br0
    bridge id 8000.f0ad4e053717
    designated root 8000.f0ad4e053717
    root port 0 path cost 0
    max age 20.00 bridge max age 20.00
    hello time 2.00 bridge hello time 2.00
    forward delay 15.00 bridge forward delay 15.00
    ageing time 300.00
    hello timer 1.85 tcn timer 0.00
    topology change timer 0.00 gc timer 137.73
    flags

    lan0 (1)
    port id 8001 state forwarding
    designated root 8000.f0ad4e053717 path cost 19
    designated bridge 8000.f0ad4e053717 message age timer 0.00
    designated port 8001 forward delay timer 0.00
    designated cost 0 hold timer 0.00
    flags

    lan1 (2)
    port id 8002 state learning
    designated root 8000.f0ad4e053717 path cost 4
    designated bridge 8000.f0ad4e053717 message age timer 0.00
    designated port 8002 forward delay timer 11.71
    designated cost 0 hold timer 0.00
    flags

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

Signup to our newsletter

Technical specification tables can not be displayed on mobile. Please view on desktop