When I unplug WAN cable and plug it back in, the link is up but I never get the INTERNET connection until I disable/enable WAN port or renew the IP lease. Is this my configuration or something else?
I have a very basic setup.
RB3011UiAS
WAN on ether1
DHCP client:
Code: Select all
/ip dhcp-client option
set clientid_duid code=61 name=clientid_duid value="0xff\$(CLIENT_DUID)"
set clientid code=61 name=clientid value="0x01\$(CLIENT_MAC)"
set hostname code=12 name=hostname value="\$(HOSTNAME)"
/ip dhcp-client
add add-default-route=yes default-route-distance=1 dhcp-options=hostname,clientid disabled=no interface=ether1 use-peer-dns=no use-peer-ntp=no
When I unplug WAN cable and plug it back in I see:
Code: Select all
sep/29 18:02:28 interface,info ether1 link down
sep/29 18:02:39 interface,info ether1 link up (speed 1G, full duplex)
sep/29 18:02:39 interface,info ether1 detect UNKNOWN
sep/29 18:02:45 interface,info ether1 detect WAN
but INTERNET is still unreachable unless I release the lease explicitly:
Code: Select all
/ip dhcp-client release numbers=0
and only then I see:
Code: Select all
sep/29 18:06:16 dhcp,info dhcp-client on ether1 lost IP address xxx.x.xx.xxx - lease stopped locally
sep/29 18:06:16 dhcp,info dhcp-client on ether1 got IP address xxx.x.xx.xxx
sep/29 18:06:17 interface,info ether1 detect INTERNET
Is this a normal behaivour? What am I missing?
My workaround so far was to run netwatcher to monitor WAN connection and renew the lease when link is down but I have a feeling I don't have to do this.