How to configure Ethernet switch

Revision as of 18:37, 26 October 2023 by Registered User (Created page with "<noinclude>{{ApplicableFor |MPUs list=STM32MP25 |MPUs checklist=STM32MP25 }}</noinclude> == Purpose == This article describes how to configure the Ethernet switch. <br/> == F...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Applicable for Unknown MPU

"STM32MP25" is not in the list (STM32MP13x, STM32MP15x, STM32MP25x) of allowed values for the "Has applicability specified for" property.


1. Purpose[edit source]

This article describes how to configure the Ethernet switch.

2. For GMAC standalone configuration[edit source]

100% same sequence than MP1

3. For Switch configuration[edit source]

ETH1  Stm32-deip glue  edge-lkml File describing the probe scheme are located on board in:

 /etc/modprobe.d/edgx_sw_modprobe.cnf
 /etc/modprobe.d/acm_modprobe.cnf

During edge-lkml probe, the interface on which the switch internal port is connected is given as parameter:

 Ex: edgx_pfm_lkm netif="end1:0"
 In: /etc/modprobe.d/edgx_sw_core.conf

3.1. Ethernet interface[edit source]

Alternate text
Ethernet Switch interfaces

Use ifconfig to list interfaces: end0: standalone GMAC interface end1: SW interface for ETH1 GMAC Connected to switch internal port Will not have IP address! Sw0p1: Internal port interface Will not have IP address! Sw0p2: External port interface connected to ETH3 port Will not have IP address! Sw0p3: External port interface connected to ETH1 port Will not have IP address! Sw0ep: « endpoint » interface Used to communicate to/from the MP25 through external ports



  ifconfig eth0 uuu.xxx.yyy.zzz
Warning white.png Warning
If there is some service such as systemd-networkd, NetworkManager, Connman , the configuration of Ethernet interface can change when the service see the change


To check if eth0 and the gateway are well configured, one can type:
 ifconfig
 route
In the console, a log similar to the one below should be displayed:
  ifconfig
 eth0      Link encap:Ethernet  HWaddr 00:80:E1:01:39:61  
           inet addr:10.48.1.172  Bcast:10.48.3.255  Mask:255.255.252.0
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:18 errors:0 dropped:0 overruns:0 frame:0
           TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1000 
           RX bytes:3038 (2.9 KiB)  TX bytes:684 (684.0 B)
           Interrupt:103 
 STM32MP1 # route
 Kernel IP routing table
 Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
 default         lme-gw-vl802.lm 0.0.0.0         UG    10     0        0 eth0
 10.48.0.0       *               255.255.252.0   U     0      0        0 eth0


4. References[edit source]