Ethernet setup on LS1028ARDB

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Ethernet setup on LS1028ARDB

Jump to solution
1,199 Views
noahw
Contributor III

I am trying to set up ethernet interface on LS1028ARDB as well. I run your shell script from https://community.nxp.com/t5/Layerscape/Switch-Setup-on-LS1028ARDB/m-p/2061701?attachment-id=18222 to bring the interfaces up, then follow the next steps. I do see the lines:

mscc_felix 0000:00:00.5 swp0: Link is Up -- 1Gbps/Full - flow control rx/tx

IPv6: ADDRCONF(NETDEV_CHANGE): swp0: link becomes ready

 

However, when I try ping -c 5 -s 1 100.1.1.1, the ping fails and I get Destination Host Unreachable.

my output of `ip a` shows:

eno2: <BROADCAST,MULTICAST,UP,LOWER_UP> with no ip address, and

swp0@eno2: <BROADCAST,MULTICAST,UP,LOWER_UP> with ip address 100.1.1.29

 

Any ideas?

0 Kudos
Reply
1 Solution
1,135 Views
noahw
Contributor III

Figured this out, I needed to run 

dhclient eno0

View solution in original post

0 Kudos
Reply
2 Replies
1,144 Views
yipingwang
NXP TechSupport
NXP TechSupport

1. Please check Kernel configuration file whether the following Kernel options are enabled.

~# zcat /proc/config.gz | grep CONFIG_MSCC_OCELOT_SWITCH
CONFIG_MSCC_OCELOT_SWITCH=y
~# zcat /proc/config.gz | grep CONFIG_NET_DSA_MSCC_FELIX
CONFIG_NET_DSA_MSCC_FELIX=y
~# zcat /proc/config.gz | grep CONFIG_FSL_ENETC_MDIO
CONFIG_FSL_ENETC_MDIO=y

Example – Single port configuration of the Felix DSA switch driver:
#!/bin/bash
#
# configure external switch interfaces
ip addr add 192.168.0.1/24 dev swp0
ip addr add 192.168.1.1/24 dev swp1
ip addr add 192.168.1.1/24 dev swp2
ip addr add 192.168.1.1/24 dev swp3
# master interface to be brought up first
ip link set eno2 up
# bring up the slave interfaces
ip link set swp0 up
ip link set swp1 up
ip link set swp2 up
ip link set swp3 up

Please refer to "8.6.3.3.4 Bridge mode" and "8.6.3.3.5 Gateway mode" in LSDK 21.08 user manual to configure switch ports in other mode.

0 Kudos
Reply
1,136 Views
noahw
Contributor III

Figured this out, I needed to run 

dhclient eno0

0 Kudos
Reply