A friend needs help. He'll be travelling a distance to me to set up some equipment, so I need to have a configuration here so that I can get things running and he can lift from my home and take to his.
My network is 192.168.0/24 with router at 192.168.0.1 and a pihole at 192.168.0.15.
His is 192.168.1.0/24 and a router at 192.168.1.254 (typical british Telecom setup)
All I need to do is have an environment where I can give a piece of equipment a 192.168.1.x address, gateway of 192.168.1.254 and have it be able to get to the outside world and look up DNS.
I have a Pi 2 B loaded headless with bookworm 32 bit. I've been taking instructions from AI, and some of it has been wide of the mark.
nmtui shows that 192.168.0.40 is the primary IP address against eth0 and 192.168.1.254 is also registered against that ethernet port. Screen shot attached.
Route shows the following...dnsmasq has been installed and the following added...(I am concerned whether this configuration is running a DHCP server, which will collide with my home DHCP server)
When I attach a laptop to the network and give it the ip address 192.168.1.50 and router 192.168.1.254 it doesn't work.
The laptop fails to ping 192.168.1.254 and after that, there is no surprise that DNS also fails.
Grateful for thoughts please.
My network is 192.168.0/24 with router at 192.168.0.1 and a pihole at 192.168.0.15.
His is 192.168.1.0/24 and a router at 192.168.1.254 (typical british Telecom setup)
All I need to do is have an environment where I can give a piece of equipment a 192.168.1.x address, gateway of 192.168.1.254 and have it be able to get to the outside world and look up DNS.
I have a Pi 2 B loaded headless with bookworm 32 bit. I've been taking instructions from AI, and some of it has been wide of the mark.
nmtui shows that 192.168.0.40 is the primary IP address against eth0 and 192.168.1.254 is also registered against that ethernet port. Screen shot attached.
Route shows the following...
Code:
Kernel IP routing tableDestination Gateway Genmask Flags Metric Ref Use Ifacedefault 192.168.0.1 0.0.0.0 UG 100 0 0 eth0192.168.0.0 0.0.0.0 255.255.255.0 U 100 0 0 eth0192.168.1.0 0.0.0.0 255.255.255.0 U 100 0 0 eth0Code:
interface=eth0 dhcp-range=192.168.1.10,192.168.1.50,255.255.255.0,12h dhcp-option=3,192.168.1.254 # Set the default gateway for 192.168.1.x devices to the Raspberry Pi dhcp-option=6,192.168.0.15 # DNS server IPWhen I attach a laptop to the network and give it the ip address 192.168.1.50 and router 192.168.1.254 it doesn't work.
The laptop fails to ping 192.168.1.254 and after that, there is no surprise that DNS also fails.
Grateful for thoughts please.
Statistics: Posted by msknight — Thu Jan 30, 2025 7:20 am