UNIHIKERGeneral

SSH Connections

userHead John.Hugery 2024-06-25 10:23:30 60 Views2 Replies

Greetings.  After connecting the Unihiker to WiFi, it no longer responds on the USB connection (10.1.2.3).  Is this normal?  What if I disconnect from Wifi?  Will the unit no longer be accessible?  Can I get both network interfaces to work simultaneously (eg SSH into either 10.1.2.3 or the Wifi IP Address)?

2024-07-01 17:37:39

It seems like you're describing a situation where your device (Unihiker) changes its network connectivity behavior based on whether it's connected to WiFi or not. Let's address your questions:

### 1. USB Connection (10.1.2.3) and WiFi Connectivity

- **Behavior**: When you connect your Unihiker device to WiFi, it likely prioritizes the WiFi connection for network communications. This might cause the USB connection (10.1.2.3) to become inactive or inaccessible.
 
- **Normal Behavior**: It's not uncommon for devices to prioritize one network interface over another. In this case, connecting to WiFi may disable or override the USB network interface.

### 2. Disconnecting from WiFi

- **Accessibility**: If you disconnect the Unihiker from WiFi, it should revert to using the USB network interface (10.1.2.3) for network communications, assuming the USB connection is still physically connected and configured correctly on both the Unihiker and your computer.

### 3. Accessing Both Network Interfaces Simultaneously

- **Simultaneous Access**: Whether you can access both network interfaces simultaneously (USB and WiFi) depends on the device's networking capabilities and configuration:
 
 - **USB Interface (10.1.2.3)**: Typically used for direct, wired connections and might provide a different set of services (like SSH) compared to WiFi.
 - **WiFi Interface**: Used for wireless connections, providing access to the broader network and internet if configured.

- **SSH Access**: Ideally, you should be able to SSH into your Unihiker device using either its USB IP address (10.1.2.3) or its WiFi IP address. However, this depends on the device's networking setup:  https://www.oemstron.com/
 
 - If the USB interface becomes inactive when WiFi is connected, you may only be able to SSH into the WiFi IP address when WiFi is active.
 - To maintain access via USB and WiFi simultaneously, you may need to configure the networking settings on the Unihiker to enable both interfaces concurrently. This typically involves setting up routing and possibly assigning static IP addresses to ensure consistent access.

### Recommendations:

1. **Check Networking Settings**: Review the networking configuration settings on your Unihiker device. Look for options to enable both USB and WiFi interfaces simultaneously if that's your requirement.

2. **Static IP Assignments**: Consider assigning static IP addresses to both the USB and WiFi interfaces to ensure consistent access regardless of network changes.

3. **Network Priorities**: Understand how your device prioritizes network interfaces. Some devices may need specific configuration tweaks to allow concurrent access via USB and WiFi.

4. **Documentation**: Consult the device's documentation or support resources for specific guidance on configuring and managing network interfaces.

In conclusion, while it's possible to access both network interfaces (USB and WiFi) simultaneously, it depends on your device's networking capabilities and how it's configured. Ensure you have the correct settings and configurations in place to achieve the desired network access behavior.

userHeadPic JAMES.JACK
2024-06-27 19:52:44

Both interfaces should work at the same time. I can confirm this with following output:

root@unihiker:~# ip a

2: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
   link/ether b6:a8:05:81:5e:1c brd ff:ff:ff:ff:ff:ff
   inet 10.0.0.14/24 brd 10.0.0.255 scope global dynamic noprefixroute wlan0
      valid_lft 85446sec preferred_lft 85446sec
   inet6 fe80::95d4:4553:a9f7:b05e/64 scope link noprefixroute 
      valid_lft forever preferred_lft forever

6: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
   link/ether 00:e0:4c:28:9b:f9 brd ff:ff:ff:ff:ff:ff
   inet 10.1.2.3/24 brd 10.1.2.255 scope global br0
      valid_lft forever preferred_lft forever
   inet6 fe80::2e0:4cff:fe28:9bf9/64 scope link 
      valid_lft forever preferred_lft forever

 

In this case the unihiker is connected as station to an access point (#2) and I'm connected via SSH/USB (#6) … 

userHeadPic Lupin