Hi,
I'm trying to get a few different types of hardware running LEDE to have an Always reachable static IP & also , if DHCP available , an IP on the network it is connected to .
I've tried a few approaches to this , but have not had any joy .
With the below config , the "defaultip" interface shows as having the correct ip (10.10.10.10) , but there is no response to ARP requests for 10.10.10.10 .
Can someone give me a heads up on how to achieve my goal ?
Thanks
Barry
My PC has a number of static ip's setup.
When I connect this PC to the LEDE device only , there is no response to arp requests for IP 10.10.10.10 sent from the PC.
defip was one of my experiments to get this working ,
I tried to use that as an interface to include in the bridge .
I also tried eth0 .
config interface 'lan'
option type 'bridge'
option proto 'dhcp'
option ifname 'eth0 eth1 wlan0'
config interface 'defaultip'
option proto 'static'
option ipaddr '10.10.10.10'
option netmask '255.255.255.0'
option ifname 'eth0'
When a physical interface is in a bridge, the kernel doesn't give it an IP. It inherits any and all IP(s) that are configured on the bridge.
I'm not sure if the UCI networking system considers the possibility of an interface having more than one IP. Using the ip addr show command may reveal what is really being set up.
I did get the 10.10.10.10 ip to work when i set it up as an alias , but the alias would only work After DHCP had assigned eth0 an IP. .... not very useful !
It's called an alias in the OpenWrt wiki. Using eth0 in an interface definition doesn't make sense when eth0 is part of a bridge. You must use "br-lan", as shown in the wiki. You can't use eth0 separately and as part of a bridge at the same time.