asandford wrote:
Althought the OP may know that they have to do it, they may not know *how to* (in which case giving us make & model will help).
(I'm not going to comment on any of the rest of your post

)
If I had any doubt about how to do it before, I don't now! I wound up breaking my network after turning its DHCP service off and the PI's DHCP service couldn't get my clients to connect to the internet. I had to hard reset my modem/router to get everything working again.
I used a MAC address associated with the IP address of my router. I found it using
I plugged the MAC into my
dhcpd.conf. Following this I disabled the DHCP service in my router/modem. I plugged the PI directly into my laptop, SSHed into the PI with its static IP address, turned on the DHCP server, and released/renewed my laptop's IP address. It worked. It assigned an IP and passed on the gateway. After the DHCP service was disabled on the router, I turned it off. I connected my laptop and PI into the Ethernet ports on the back of the router then powered the router up. Repeated the release/refresh of the laptop's IP address. SSH still worked, but I couldn't connect to the internet. The LAN switch in the router was clearly working, but something must be wrong with the gateway. I wasn't able to connect to the router's webGUI using the IP I assigned it or the factory default IP after turning off its DHCP. I'm not sure if it's because I'm using the correct MAC address or that something is wrong with my config files. I'm posting them below. Sorry for the wall of text

I'm sure it's hard to spot the problem with this description and my config files. Are there any diagnostic tests I could run to help narrow my problem? Oh! And lastly my router/modem is a Motorola SBG65800. This is a manual I found for it online
https://www.midco.com/contentassets/b44 ... bg6580.pdf. It says the MAC address is on a label at the bottom. There are two: an HFC MAC and a Gateway MGMT MAC. These are both different than the one I found using the method below. The contents of my
/etc/dhcp/dhcpd.conf which is where I stored the static IP along with MAC address of my router
Code: Select all
option domain-name "mydebian";
# option definitions common to all supported networks...
option domain-name "mydebian";
option domain-name-servers 122.197.254.7, 122.197.254.10;
# Set up our desired subnet:
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.101 192.168.1.254;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option routers 192.168.1.100;
option domain-name-servers home;
}
#assigned addresses
host router {
hardware ethernet e8:6d:52:69:de:be;
fixed-address 192.168.1.100;
}
default-lease-time 600;
max-lease-time 7200;
#only DHCP server in this network:
authoritative;
Contents of my
/etc/network/interfaces.
Code: Select all
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.99
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.100
allow-hotplug wlan0
iface wlan0 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
allow-hotplug wlan1
and lastly the contents of my
/etc/resolv.conf. The DNS servers provided by my ISP.
Code: Select all
# Generated by resolvconf
nameserver 122.197.254.7
nameserver 122.197.254.10