Single Board Computer MBLS1028A-IND - Yocto Linux BSP documentation

The TSN switch of the STKLS1028A is not configured by default. The master interface eno2 is enbabled by default, so it is not necesarry to bring it up manually.

Single port configuration

Every single switch port acts as a configurable Ethernet port

# Configure each single switch interface and bring it up.
 
$ ip addr add 192.168.1.2 dev swp0 && ip link set swp0 up
$ ip addr add 192.168.1.3 dev swp1 && ip link set swp1 up
$ ip addr add 192.168.1.4 dev swp2 && ip link set swp2 up
$ ip addr add 192.168.1.5 dev swp3 && ip link set swp3 up

Bridge configuration

Every switch port is part of one configurable Ethernet bridge.

# Create a bridge device in this example it is called switch
 
$ ip link add name switch type bridge
 
# Bring up the bridge device 
 
$ ip link set switch up
 
# Add the interfaces to the bridge device switch and bring them up.
 
$ ip link set swp0 master switch && ip link set swp0 up
$ ip link set swp1 master switch && ip link set swp1 up
$ ip link set swp2 master switch && ip link set swp2 up
$ ip link set swp3 master switch && ip link set swp3 up
 
# Configure bridge device
 
$ ip addr add 192.168.1.2 dev switch 
  • Last modified: 2022/08/04 15:02