[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#864807: b53_mdio module doesn't get loaded automatically on Lamobo R1



The following is necessary to get a running network on the Lamobo R1
with a current kernel:

Load the b53_mdio module,
file /etc/modules:

# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
b53_mdio

Define a bridge,
file /etc/network/interfaces.d/br0:

auto br0
iface br0 inet dhcp

Setup the switch. With the commands below all ports are connected
together in the same vlan. For usage as a router we would have to create
at least two vlans. One for the wan port and one for ports lan1-lan4.

Maybe we should create a package with different configuration files for
the switch which the user can choose from.

File /etc/network/if-pre-up.d/switch (chmod 755):

#!/bin/sh
#
# Setup interfaces and VLANs

# Reset eth0
ip link set eth0 down
ip addr flush eth0
ip link set eth0 up

# Create VLAN 101 on interface eth0: eth0.101
ip link add link eth0 name eth0.101 type vlan id 101

# Create bridge br0 as disabled for STP (Spanning Tree Protocol).
ip link add br0 type bridge
ip link set dev br0 type bridge stp_state 0

bridge vlan

# Assign ports to bridge
ip link set lan1 master br0
bridge vlan add vid 101 dev lan1 pvid untagged
bridge vlan add vid 101 dev lan1 pvid untagged self
ip link set lan1 up

ip link set lan2 master br0
bridge vlan add vid 101 dev lan2 pvid untagged
bridge vlan add vid 101 dev lan2 pvid untagged self
ip link set lan2 up

ip link set lan3 master br0
bridge vlan add vid 101 dev lan3 pvid untagged
bridge vlan add vid 101 dev lan3 pvid untagged self
ip link set lan3 up

ip link set lan4 master br0
bridge vlan add vid 101 dev lan4 pvid untagged
bridge vlan add vid 101 dev lan4 pvid untagged self
ip link set lan4 up

ip link set wan master br0
bridge vlan add vid 101 dev wan pvid untagged
bridge vlan add vid 101 dev wan pvid untagged self
ip link set wan up

ip link set eth0.101 master br0
bridge vlan add vid 101 dev eth0.101 pvid untagged
bridge vlan add vid 101 dev eth0.101 pvid untagged self
ip link set eth0.101 up

bridge vlan


Best regards

Heinrich Schuchardt


Reply to: