1. My wired network is managed by a SonicWall firewall router. Most IP addresses are assigned based on the MAC address of the client NIC cards. Historically this has worked perfectly.
My wireless network is managed by a Netgear WiFi router. Like the SonicWall, client IP addresses are controlled and assigned based on the MAC address. Again historically this has worked.
Using Rasbian Wheezy and the "/etc/network/interfaces" file I never had an issue getting , via dhcp, the IP addresses I had setup on the routers.
NOW, it seems to be out of control and more random. If I use the default interfaces file and no changes in the "/etc/dhcpcd.conf" file the assigned IP addresses for both eth0 and wlan0 seem to be ignoring my router MAC rules. I get IP addresses but since I'm trying to set thing up for "headless" operation, this IP address issue is a show stopper.
What am I doing wrong?
2. My current project will have a Pi running as a bridge. It has two wired Ethernet interfaces, eth0 and eth1, and the bridge interface br0, as defined in the interfaces file:
With Wheezy the bridge interface (br0) was always the same IP as the eth0 interface. Now with Jessie, while ifconfig shows the same MAC address for both eth0 and br0, they each have different addresses and neither the one specified in my router's DHCP assignment rules.
Code: Select all
auto lo br0 iface lo inet loopback iface eth0 inet manual iface eth1 inet manual #iface br0 inet dhcp iface br0 inet manual bridge_ports eth0 eth1 allow-hotplug wlan0 iface wlan0 inet manual wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf iface default inet dhcp
Yes, I can force the desired IP address for eth0 using this code in the dhcpcd.conf file:
However, I really prefer to do IP assignments via the router.
Code: Select all
interface eth0 static ip_address=192.168.59.29/24 static routers=192.168.59.1 static domain_name_servers=192.168.59.1
Even when I do force the above address on eth0, the address shown by ifconfig for br0 is not the same and varies each time I reboot the Pi. The address for eth0 is as specified in the dhcpcd.conf file above.
Again, what am I doing wrong? Is there something different with Jessie regarding bridges? Should I have an interface section in the dhcpcd.conf file for the bridge br0?