On Wednesday 18 December 2013 21:37:40 Rafał Miłecki wrote:
> 2013/12/18 Rafał Miłecki <[email protected]>:
> > Some routers (a lot of/all Broadcom's BCM47xx based models) have only
> > a one network card attached to a switch. In such situation you usually
> > use one VLAN for WAN port and another VLAN for LAN ports.
> > 
> > The problem is that WAN is a virtual VLAN interface and it's always
> > up. Even if I disconnect ethernet cable from the WAN, eth0.X is still
> > up.
> > 
> > Do you have any idea how this could be improved?
> > Could we for example keep a list of VLANs with only one port assigned
> > and adjust VLAN interface state to match current port state? Is this
> > the right thing to do?
> > How otherwise we can know that WAN is disconnected/not working?
> 
> Or maybe you have some other idea how we can handle refreshing IP
> address on VLAN interface? Currently once-assigned IP doesn't change
> until I restart network manually.

http://0pointer.de/lennart/projects/ifplugd/

In openwrt: CONFIG_BUSYBOX_CONFIG_IFPLUGD

or

DHCP is unaware of any link changes, it will only renegotiate DHCP lease when 
lease time has elapsed.. so you could set dhcp lease time shorter (if you have 
control over DHCP server), like every 1 (or 5) minutes... that way (longer) 
link interrupts are caught more quickly by the DHCP daemon.

Tijs
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to