LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 02-20-2024, 09:53 PM   #1
guoyanzhang
LQ Newbie
 
Registered: Feb 2024
Posts: 7

Rep: Reputation: 0
Customized Linux system, wired and wireless connectivity interoperability?


The Linux system I customized runs on device A, which uses an ARM processor. Device A has an eth2 (fixed IP 192.168.5.1) and a wlan2, which is a wireless transmitter with a fixed IP 192.168.1.6. My computer can connect to device A through 192.168.1.6, but in this case, without wired connection, I can still log in to device A using 192.168.5.1; But if I am unable to log in to device A using 192.168.1.6 after connecting it with a wired connection, what is the problem?

[root@dobot ~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 wlan2
192.168.5.0 * 255.255.255.0 U 0 0 0 eth2
192.168.100.0 * 255.255.255.0 U 0 0 0 eth1
[root@dobot ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 4E:BF:B7:B3:54:5F
inet6 addr: fe80::4cbf:b7ff:feb3:545f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8681 errors:2 dropped:0 overruns:0 frame:2
TX packets:8689 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:627545 (612.8 KiB) TX bytes:356046 (347.7 KiB)

eth1 Link encap:Ethernet HWaddr 00:0E:C6:87:72:01
inet addr:192.168.100.6 Bcast:192.168.100.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

eth2 Link encap:Ethernet HWaddr 00:0E:C6:87:72:01
inet addr:192.168.5.1 Bcast:192.168.5.255 Mask:255.255.255.0
inet6 addr: fe80::20e:c6ff:fe87:7201/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:28924 errors:0 dropped:0 overruns:0 frame:0
TX packets:41781 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2545558 (2.4 MiB) TX bytes:5457600 (5.2 MiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:60760 errors:0 dropped:0 overruns:0 frame:0
TX packets:60760 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3955747 (3.7 MiB) TX bytes:3955747 (3.7 MiB)

wlan2 Link encap:Ethernet HWaddr D0:37:45:8A:68:90
inet addr:192.168.1.6 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::d237:45ff:fe8a:6890/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:157031 errors:0 dropped:589 overruns:0 frame:0
TX packets:15430 errors:0 dropped:82 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2875938 (2.7 MiB) TX bytes:4311430 (4.1 MiB)

Last edited by guoyanzhang; 03-01-2024 at 01:03 AM.
 
Old 02-23-2024, 04:17 AM   #2
des_a
Senior Member
 
Registered: Sep 2006
Posts: 1,416
Blog Entries: 43

Rep: Reputation: 36
Perhaps missing a default gateway, from the looks of it to me? Or else, is your wireless network working OK? Is it actually connected to the proper wireless network? It looks like it is, but maybe check.
 
Old 02-29-2024, 09:59 PM   #3
guoyanzhang
LQ Newbie
 
Registered: Feb 2024
Posts: 7

Original Poster
Rep: Reputation: 0
[root@dobot ~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 wlan2
192.168.5.0 * 255.255.255.0 U 0 0 0 eth2
192.168.100.0 * 255.255.255.0 U 0 0 0 eth1
 
Old 02-29-2024, 10:13 PM   #4
___
Member
 
Registered: Apr 2023
Posts: 139
Blog Entries: 1

Rep: Reputation: Disabled
As configured, A's 192.168.1.* pkts can only go thru wlan2

What exactly does "without wired connection" mean? What is ?turned off? &where?

Post route from "computer" (not A)
Maybe routing takes a different path "after connecting it with a wired connection"
 
Old 03-01-2024, 01:04 AM   #5
guoyanzhang
LQ Newbie
 
Registered: Feb 2024
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by ___ View Post
As configured, A's 192.168.1.* pkts can only go thru wlan2

What exactly does "without wired connection" mean? What is ?turned off? &where?

Post route from "computer" (not A)
Maybe routing takes a different path "after connecting it with a wired connection"
"without wired connection" mean I did not use an Ethernet cable to connect device A's eth2.
 
Old 03-01-2024, 03:29 AM   #6
___
Member
 
Registered: Apr 2023
Posts: 139
Blog Entries: 1

Rep: Reputation: Disabled
https://www.linuxquestions.org/quest...og.php?b=36313
Code:
ip r # or route, on 'computer', not A, both without & with ethernet connected
 
Old 03-01-2024, 04:10 AM   #7
guoyanzhang
LQ Newbie
 
Registered: Feb 2024
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by ___ View Post
https://www.linuxquestions.org/quest...og.php?b=36313
Code:
ip r # or route, on 'computer', not A, both without & with ethernet connected
I am not clear, any question?
 
Old 03-02-2024, 01:16 AM   #8
___
Member
 
Registered: Apr 2023
Posts: 139
Blog Entries: 1

Rep: Reputation: Disabled
Post the output of the route command, run on your 'computer', not the ARM device A, both with & without the ethernet connected.

That will show what device 192.168.1.6 is using.
 
Old 03-04-2024, 08:13 PM   #9
guoyanzhang
LQ Newbie
 
Registered: Feb 2024
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by ___ View Post
Post the output of the route command, run on your 'computer', not the ARM device A, both with & without the ethernet connected.

That will show what device 192.168.1.6 is using.
with the ethernet connected:

C:\Users\guoya>route print
===========================================================================
接口列表
11...90 2e 16 c7 1b a3 ......Realtek PCIe GbE Family Controller
7...00 ff 31 c7 b2 a8 ......TeamViewer VPN Adapter
13...10 3d 1c 9c 87 9b ......Microsoft Wi-Fi Direct Virtual Adapter
4...12 3d 1c 9c 87 9a ......Microsoft Wi-Fi Direct Virtual Adapter #2
21...10 3d 1c 9c 87 9a ......Intel(R) Wi-Fi 6 AX201 160MHz
8...34 29 8f 73 63 27 ......Realtek USB GbE Family Controller
19...00 ff c6 0d db 24 ......SVN Adapter V1.0
20...10 3d 1c 9c 87 9e ......Bluetooth Device (Personal Area Network) #3
1...........................Software Loopback Interface 1
===========================================================================

IPv4 路由表
===========================================================================
活动路由:
网络目标 网络掩码 网关 接口 跃点数
0.0.0.0 0.0.0.0 192.168.50.254 192.168.50.201 30
127.0.0.0 255.0.0.0 在链路上 127.0.0.1 331
127.0.0.1 255.255.255.255 在链路上 127.0.0.1 331
127.255.255.255 255.255.255.255 在链路上 127.0.0.1 331
192.168.5.0 255.255.255.0 在链路上 192.168.5.123 291
192.168.5.123 255.255.255.255 在链路上 192.168.5.123 291
192.168.5.255 255.255.255.255 在链路上 192.168.5.123 291
192.168.50.0 255.255.255.0 在链路上 192.168.50.201 286
192.168.50.201 255.255.255.255 在链路上 192.168.50.201 286
192.168.50.255 255.255.255.255 在链路上 192.168.50.201 286
224.0.0.0 240.0.0.0 在链路上 127.0.0.1 331
224.0.0.0 240.0.0.0 在链路上 192.168.50.201 286
224.0.0.0 240.0.0.0 在链路上 192.168.5.123 291
255.255.255.255 255.255.255.255 在链路上 127.0.0.1 331
255.255.255.255 255.255.255.255 在链路上 192.168.50.201 286
255.255.255.255 255.255.255.255 在链路上 192.168.5.123 291
===========================================================================
永久路由:


IPv6 路由表
===========================================================================
活动路由:
接口跃点数网络目标 网关
1 331 ::1/128 在链路上
21 286 fe80::/64 在链路上
8 291 fe80::/64 在链路上
21 286 fe80::dd32:93b6:51f6:4cdc/128
在链路上
8 291 fe80::fa02:92bd:9721:9/128
在链路上
1 331 ff00::/8 在链路上
21 286 ff00::/8 在链路上
8 291 ff00::/8 在链路上
===========================================================================
永久路由:
 
Old 03-04-2024, 08:18 PM   #10
guoyanzhang
LQ Newbie
 
Registered: Feb 2024
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by ___ View Post
Post the output of the route command, run on your 'computer', not the ARM device A, both with & without the ethernet connected.

That will show what device 192.168.1.6 is using.

without the ethernet connected:

C:\Users\guoya>route print
===========================================================================
接口列表
11...90 2e 16 c7 1b a3 ......Realtek PCIe GbE Family Controller
7...00 ff 31 c7 b2 a8 ......TeamViewer VPN Adapter
13...10 3d 1c 9c 87 9b ......Microsoft Wi-Fi Direct Virtual Adapter
4...12 3d 1c 9c 87 9a ......Microsoft Wi-Fi Direct Virtual Adapter #2
8...34 29 8f 73 63 27 ......Realtek USB GbE Family Controller
19...00 ff c6 0d db 24 ......SVN Adapter V1.0
21...10 3d 1c 9c 87 9a ......Intel(R) Wi-Fi 6 AX201 160MHz
20...10 3d 1c 9c 87 9e ......Bluetooth Device (Personal Area Network) #3
1...........................Software Loopback Interface 1
===========================================================================

IPv4 路由表
===========================================================================
活动路由:
网络目标 网络掩码 网关 接口 跃点数
0.0.0.0 0.0.0.0 192.168.1.6 192.168.1.20 55
127.0.0.0 255.0.0.0 在链路上 127.0.0.1 331
127.0.0.1 255.255.255.255 在链路上 127.0.0.1 331
127.255.255.255 255.255.255.255 在链路上 127.0.0.1 331
192.168.1.0 255.255.255.0 在链路上 192.168.1.20 311
192.168.1.20 255.255.255.255 在链路上 192.168.1.20 311
192.168.1.255 255.255.255.255 在链路上 192.168.1.20 311
192.168.5.0 255.255.255.0 在链路上 192.168.5.123 291
192.168.5.123 255.255.255.255 在链路上 192.168.5.123 291
192.168.5.255 255.255.255.255 在链路上 192.168.5.123 291
224.0.0.0 240.0.0.0 在链路上 127.0.0.1 331
224.0.0.0 240.0.0.0 在链路上 192.168.1.20 311
224.0.0.0 240.0.0.0 在链路上 192.168.5.123 291
255.255.255.255 255.255.255.255 在链路上 127.0.0.1 331
255.255.255.255 255.255.255.255 在链路上 192.168.1.20 311
255.255.255.255 255.255.255.255 在链路上 192.168.5.123 291
===========================================================================
永久路由:


IPv6 路由表
===========================================================================
活动路由:
接口跃点数网络目标 网关
1 331 ::1/128 在链路上
21 311 fe80::/64 在链路上
8 291 fe80::/64 在链路上
21 311 fe80::dd32:93b6:51f6:4cdc/128
在链路上
8 291 fe80::fa02:92bd:9721:9/128
在链路上
1 331 ff00::/8 在链路上
21 311 ff00::/8 在链路上
8 291 ff00::/8 在链路上
===========================================================================
永久路由:
 
Old 03-05-2024, 07:43 AM   #11
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Member Response

Hi,

I would suggest that you use as root 'route-n' to get the routing table.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Used wired to install now on wireless but system waits for wired dhcpoffer. lonniec Linux - Laptop and Netbook 3 03-08-2011 07:52 PM
How to configure PC for wired/static and wired/DHCP networks? catkin Linux - Networking 2 10-27-2010 10:51 AM
bridging a wireless and wired network causes wired to stop working royce2020 Linux - Networking 0 04-21-2009 04:48 PM
Wireless Laptop to Wired ethernet via Linux PC (wired/wireless) sambartle Linux - Wireless Networking 0 01-30-2005 04:37 AM
Wired to Wireless back to Wired The_Nerd Linux - Hardware 5 09-15-2004 09:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 03:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration