Skip to content

Instantly share code, notes, and snippets.

@benoitjpnet
Last active August 29, 2015 13:56
Show Gist options
  • Select an option

  • Save benoitjpnet/9171814 to your computer and use it in GitHub Desktop.

Select an option

Save benoitjpnet/9171814 to your computer and use it in GitHub Desktop.

Revisions

  1. Benoît.S revised this gist Feb 23, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion bridge-fbx6hd
    Original file line number Diff line number Diff line change
    @@ -8,7 +8,7 @@
    bridge name bridge id STP enabled interfaces
    br0 8000.0000aa002005 no eth0
    eth1
    root@vaiolaptop:~# brctl showmacs br0
    # brctl showmacs br0
    port no mac addr is local? ageing timer
    2 00:00:aa:00:xx:xx yes 0.00
    1 00:1a:80:f6:xx:xx yes 0.00
  2. Benoît.S revised this gist Feb 23, 2014. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions bridge-fbx6hd
    Original file line number Diff line number Diff line change
    @@ -10,7 +10,7 @@ br0 8000.0000aa002005 no eth0
    eth1
    root@vaiolaptop:~# brctl showmacs br0
    port no mac addr is local? ageing timer
    2 00:00:aa:00:20:05 yes 0.00
    1 00:1a:80:f6:de:8d yes 0.00
    2 00:00:aa:00:xx:xx yes 0.00
    1 00:1a:80:f6:xx:xx yes 0.00
    1 f4:ca:e5:5b:xx:xx no 14.98
    2 f4:ca:e5:7a:xx:xx no 14.98
  3. Benoît.S revised this gist Feb 23, 2014. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion bridge-fbx6hd
    Original file line number Diff line number Diff line change
    @@ -4,7 +4,6 @@

    # ifconfig br0 up


    # brctl show br0
    bridge name bridge id STP enabled interfaces
    br0 8000.0000aa002005 no eth0
  4. Benoît.S revised this gist Feb 23, 2014. 1 changed file with 0 additions and 3 deletions.
    3 changes: 0 additions & 3 deletions bridge-fbx6hd
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,3 @@
    # ip link add link eth0 name eth0.100 type vlan id 100
    # ip link add link eth1 name eth1.100 type vlan id 100

    # brctl addbr br0
    # brctl adif br0 eth0
    # brctl adif br0 eth1
  5. Benoît.S revised this gist Feb 23, 2014. 1 changed file with 11 additions and 11 deletions.
    22 changes: 11 additions & 11 deletions bridge-fbx6hd
    Original file line number Diff line number Diff line change
    @@ -7,14 +7,14 @@

    # ifconfig br0 up

    # brctl show
    bridge name bridge id STP enabled interfaces
    br0 8000.0000aa002005 no eth0
    eth1

    # brctl showmacs br0
    port no mac addr is local? ageing timer
    2 00:00:aa:00:xx:xx yes 0.00
    1 00:1a:80:f6:xx:xx yes 0.00
    1 f4:ca:e5:5b:xx:xx no 14.98
    2 f4:ca:e5:7a:xx:xx no 14.98

    # brctl show br0
    bridge name bridge id STP enabled interfaces
    br0 8000.0000aa002005 no eth0
    eth1
    root@vaiolaptop:~# brctl showmacs br0
    port no mac addr is local? ageing timer
    2 00:00:aa:00:20:05 yes 0.00
    1 00:1a:80:f6:de:8d yes 0.00
    1 f4:ca:e5:5b:xx:xx no 14.98
    2 f4:ca:e5:7a:xx:xx no 14.98
  6. Benoît.S created this gist Feb 23, 2014.
    20 changes: 20 additions & 0 deletions bridge-fbx6hd
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    # ip link add link eth0 name eth0.100 type vlan id 100
    # ip link add link eth1 name eth1.100 type vlan id 100

    # brctl addbr br0
    # brctl adif br0 eth0
    # brctl adif br0 eth1

    # ifconfig br0 up

    # brctl show
    bridge name bridge id STP enabled interfaces
    br0 8000.0000aa002005 no eth0
    eth1

    # brctl showmacs br0
    port no mac addr is local? ageing timer
    2 00:00:aa:00:xx:xx yes 0.00
    1 00:1a:80:f6:xx:xx yes 0.00
    1 f4:ca:e5:5b:xx:xx no 14.98
    2 f4:ca:e5:7a:xx:xx no 14.98