Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 2868

Beginners • Surely simple networking help please!!!

$
0
0
Hi

I have a Raspberry Pi 5 upon which I have installed RpiOS lite.

I have a quectel 5g modem/hat which connects to the pi via usb. Eventually I want the pi to function as wifi hotspot > 5g lte modem. How I proceed setting up the pi below is potentially constrained by other things I want/need to do down the line - following any one of a number of online tutorials I have found. Anyway, in order to troubleshoot I disconnected this modem (when connected it appears as usb0).

I use rpi-imager to flash the sd card I have. I set up ssh with rpi-imager. This all works fine. I run isc-dhcp-server on the computer to which I connect the pi, give the Pi a appropriate ip address, and can log into it using ssh over a wired connection from my to the pi's eth0.

So far so good. But when I reboot the pi I can no longer ping, never mind ssh into it over a the same wired connection.


Here is where I do post logging in the first time:

I put the sd card into a reader and add the following to /etc/network/interfaces

Code:

auto loiface lo inet loopbackauto wlan0  iface wlan0 inet static  address 10.1.1.1  netmask 255.255.255.0  auto eth0  iface eth0 inet dhcp/code]and the following line to /etc/dhcp/dhclient.conf[code]denyinterfaces eth0 wlan0
(this is necessary for setting up the 5g modem later)

I also tried installing ubuntu server and ssh'ed into the pi after it was given an ip address over wifi. On the ubuntu server I had to put the above line into /etc/dhcpcd.conf instead.

I tried similar with the (latest I presume) version ubuntu server available with rpi-imager installed on the pi, (on another (new) sd card that otherwise has worked/works fine) and get the same problem. On the ubuntu server install I can ssh into it over wifi after the first reboot (if I set the pi up to connect to my home wifi network from rpi-imager) but I need to connect over a wired connection.

It must be either something obvious and I am proven an idiot yet again (most likely), or something not clearly stated in any of the tutorials I have read.

Can anyone help? (It would be very much appreciated

PLEASE NOTE: It is likely that suggestions for alternative,ways of setting up this basic networking are potentially problematic. I mention this because I hope not to have to reply to a load of irrelevant 'just do it like this' suggestions (thanks though, I still do appreciate any replies)!

Statistics: Posted by Dave Raspberry — Thu Nov 07, 2024 9:42 am — Replies 0 — Views 13



Viewing all articles
Browse latest Browse all 2868

Trending Articles