
mscc_felix 0000:00:00.5 swp0: Link is Up - 1Gbps/Full - flow control rx/tx
br0: port 1(swp0) entered blocking state
br0: port 1(swp0) entered forwarding state
Generic PHY fixed-0:00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=fixed-0:00, irq=POLL)
8021q: adding VLAN 0 to HW filter on device eno2
fsl_enetc 0000:00:00.2 eno2: Link is Up - 1Gbps/Full - flow control off
When configuring the L2Switch ports in a bridge interface we need to set the IP on this interface. In this case the Linux network
stack will take care of sending packets to switch ports and forward the ingress port traffic to the bridge interface.
Adding an IP address for
br0:
bash-4.4# $EXEC_SWNS ip addr add 192.168.2.1/24 dev br0
bash-4.4# $EXEC_SWNS ip addr show dev br0
2: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1468 qdisc noqueue state UP group default qlen 1000
link/ether bc:8d:bf:7c:5b:00 brd ff:ff:ff:ff:ff:ff
inet 192.168.2.1/24 scope global br0
valid_lft forever preferred_lft forever
Once the IP address is set on the
br0 interface, the bridge is ready to receive and send packets:
bash-4.4# $EXEC_SWNS ip -s link show dev br0
2: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1468 qdisc noqueue state UP mode DEFAULT group default
qlen 1000
link/ether bc:8d:bf:7c:5b:00 brd ff:ff:ff:ff:ff:ff
RX: bytes packets errors dropped overrun mcast
0 0 0 0 0 0
TX: bytes packets errors dropped carrier collsns
0 0 0 0 0 0
bash-4.4#
bash-4.4# $S ping 192.168.2.2 -c3
PING 192.168.2.2 (192.168.2.2) 56(84) bytes of data.
64 bytes from 192.168.2.2: icmp_seq=1 ttl=64 time=0.331 ms
64 bytes from 192.168.2.2: icmp_seq=2 ttl=64 time=0.098 ms
64 bytes from 192.168.2.2: icmp_seq=3 ttl=64 time=0.152 ms
--- 192.168.2.2 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2033ms
rtt min/avg/max/mdev = 0.098/0.193/0.331/0.100 ms
bash-4.4# $S ip -s link show dev br0
2: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1468 qdisc noqueue state UP mode DEFAULT group default
qlen 1000
link/ether bc:8d:bf:7c:5b:00 brd ff:ff:ff:ff:ff:ff
RX: bytes packets errors dropped overrun mcast
344 5 0 0 0 0
TX: bytes packets errors dropped carrier collsns
378 5 0 0 0 0
bash-4.4#
4.2.12.3.3.3.2 CPU port without bridge
In this configuration mode, the traffic received on all external ports is forwarded to the CPU port as in previous example (bridge
mode), however, the L2 forwarding does not work by default. Another difference from bridge mode is that each switch port interface
can be used independently to send and receive packets.
Figure 8.
on page 103 shows the high-level view of this mode.
Linux kernel
Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019
102
NXP Semiconductors
Содержание Layerscape LS1028A BSP
Страница 135: ......