T-Mobile Home Internet Gateway

Hi
possible solution without additional hardware, all based on the assumption that your Router is a Switch too:

  • take notes of the current IPv4 configuration on your PC
  • change the IP to a static IP in the 192.168.0.0/24 range, like for example 192.168.0.2
  • access the Raspi via the known IP, the IP of your Router should not matter in this case, at least the typical Routers for home use I know act as a simple Switch on their LAN-Ports
  • change the IP on the Raspi, using DHCP instead of static is a good advice
  • restart the Raspi
  • change the IP-Configuration back to what it was before
  • in the router configuration pin the IP to the device ( making it pseudo static)

Have not tried this additional alternative myself, just based on documentation:
there are also instructions on how to add a static IP in parallel to the DHCP-Address, like here:

Believe you did not say which OS your are using on the PC, assuming Windows. guess with Linux or MacOS you can do the same, but I do not have instructions for other OS
you would use that to add an IP in the 192.168.0.0/24 range, change the IP on the Raspi to be in the range of your new network
Advantage: you can still access all other resources from your PC

to remove after your Raspi is connected with the correct IP:

netsh interface ipv4 delete address address=192.168.0.2

Armin

Iā€™ve never tried using the LAN ports on a router as a switch- Iā€™ll have to remember this for the future.

Yes, a simple switch would work instead of a crossover cable, but I was trying to give the OP the lowest-risk method of getting back into the Raspberry.

The T-Mobile router will only hand out 50 ip addresses so only 50 devices in its default configuration.

You donā€™t need a crossover cable almost everything made in the last ~10 years has Auto-MDIX and the Raspberry Pi is no exception. Just use whatever cable you have to connect your laptop to your Pi.

If it works, this would be the easiest solution for the OP.

Does anyone know if DHCPCD is what I want for DHCP?

Sorry I didnā€™t mention I have macOS!

Right now my RPi4 boots from usb so I removed it and put the micro SD card back in and it was able to manually connect to the wifi. Also able to ssh into from my mac once plugged into ethernet.

So Iā€™m just trying to understand why I shouldnā€™t create a static ip for my raspberrypi and use DHCP?
I am willing to do whichever but really I want to do whatā€™s simplest for a beginner in order to get the system back up.

Is this necessary if I have ssh access?

When I connect does it have to be a local connection from my mac or can it be ssh?

Using this guide:

How do I know the info for template so itā€™s good with T-moblileā€™s router configuration?
How I need to change this:

interface eth0
static ip_address=192.168.0.4/24
static routers=192.168.0.1
static domain_name_servers=192.168.0.1

I would really encourage you to use a dynamic IP setting on the Pi and to use a feature available in most recent routers to allocate a static IP to your Pi based on its MAC address as Steve mentioned here.

Initially you dont need to use the assignment and the Pi will get a dynamic IP address from your router. You said you could see the clients list in your router and that will tell you the current IP of the Pi

I set my config up with:

interface eth0
static ip_address=192.168.12.159/24
static routers=192.168.12.1
static domain_name_servers=192.168.12.1

Then rebooted the system and was able to SSH into the pi using 192.168.12.159.

I powered down the RP4 then removed the micro SD card and plug back the usb to boot from that has HA and I canā€™t find it anywhere now

Is this DHCPCD?

I have an hdmi plugged into my raspberryPi and I have it booted through usb showing the Home Assistant. I have noticed that my raspberry pi now shows up on my router device list but the ip is empty/blank but the ip of the ethernet is the ip of the router, 192.168.12.1?
Also HA core still shows my old ip, 192.168.0.25. How can I change my ip through the HA command line to my new static ip, 192.168.12.159?

At the moment none of the ipā€™s bring up my homepage/lovelace dashboard.

DHCPCD is the DHCP client on a Linux system. It is loaded with the Raspian OS.

You have been advised at least ten times here to NOT USE static IP on the Raspberry Pi. Unless you know what you are doing and have a good reason to not let the router assign a permanent IP lease (AKA static IP) from the DHCP server in your router. From your questions, I really doubt that you do.

Show the complete config file.

Oh okay I thought I was using DHCPCD on my Raspberry Pi when I used that website. I apologize for being a beginner.

What/which config file are you talking about and where can I find that for you?

Does none of this matter if DHCPCD is not correct?
T-Mobile Home Internet Gateway - #34 by BrianLane

Will I still be able to have my Tmobile router assign a permanent IP lease from the DHCP?

What I did above what in the /etc/dhcpcd.conf file of my raspberry pi not my router. Iā€™m not sure how to access config on my router.

By default your router includes a DHCP server. There is nothing to set up out of the box.

I want to see that config file. Is that the whole file?

Yes but does that file even matter if it was on micro SD card and I boot HA from usb w/o micro SD?