Observations on WiFi and Ethernet interface when connected to same network on imx8mplus

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Observations on WiFi and Ethernet interface when connected to same network on imx8mplus

887 次查看
ssuresh
Contributor I

Hi NXP Expert,

Can you please confirm if this is an expected behaviour?

Scenario :
1. Assign static IP to eth0 and eth1 ports

ifconfig eth0 192.168.1.20 up
ifconfig eth1 192.168.1.30 up

2. Connect board to an AP via WiFI using connmanctl (gets an IP, 192.168.1.173)

3. All the 3 interfaces eth0, eth1, wlan0 in same domain

4. ping 192.168.1.173 ---> NOT SUCCESS

5. Connect LAN cable between eth0 and board

6. ping 192.168.1.173 ---> SUCCESS

Our assumption is that ping to Wifi IP is happening via ethernet connection. Is this expected?

0 项奖励
回复
2 回复数

867 次查看
JosephAtNXP
NXP TechSupport
NXP TechSupport

Hi,

Thank you for your interest in NXP Semiconductor products,

I think that this issue and the other one is how is routed the packet and my assumption is based on this output.

Let me conduct the experiments over this.

Regards

0 项奖励
回复

855 次查看
JosephAtNXP
NXP TechSupport
NXP TechSupport

Hi,

It's regarding the routes as the other thread,

I conducted an experiment and showed that it's expected due to routes applied to the network section of the board, please feel free to try:

# Booted board shows no routes
$ ip route show table main

# Connect ETH0 to modem, as the IF is up, dhcp is assigned and shows routes
$ ip route show table main

# Assign an static IP to ETH1, increases a route (which is that the host routes ETH1 IP through ETH0)
$ ip route show table main

# Change cable to ETH1, the routes are limited and not swapped, shows that there needs to be an update for the routes or the workaround you have described
$ ip route show table main

Regards,

0 项奖励
回复