I have two wan connections a straightforward Cable connection where I can pull multiple dynamic IPs (but that dont change often).
The router easily connects and pulls an IP, no fuss no muss putting 0.0.0.0/0 in for default gateway works etc…
The other connection is via Bell Fiber. The line comes to an ONT and then comes out an ethernet cable tot he mikrotik router.
In the router I create.
a. a straight ethernet port much like cable.
b. create vlan 35 using the Base ethernet port as the interface.
c. Use the vlan as dhcp client.
The router searches for the vlan35 network and binds like the straight cable but no routing connectivity occurs automatically
I have to.
a. go to IP dhcp client
b. double click on the vlan35 interface client line
c. go to status tab
d. find the IP gateway IP for the ISP
e. place the gateway IP in the appropriate routing rule
THEN I AM connected.
So what kind of connection is this?
(Should I worry about MTU numbers or anything else??)
Well I have a recursive fail over IP Routes setup.
that checks googe and if not up, then O OPEN DNS and if both of those fail then goes to secondary WAN.
I am open to any ideas you may have, but the router is only capable of coming up with a working accessible WAN connection with the VLAN, on A NEW LEASE, if I manually put in the IP gateway. If i recall, the default route will not work either due to the default rule does not work because there is no gateway IP established. (the router does not take the gateway IP from the bounded connection and put it in the IP route rule - I have to do this step).
How do i check what the MTU expectations are from the ISP?
However, I fail to see how the script will work.
Unless the script can actually physically retrieve the ISP gateway from a bounded DHCP client connection, then the script will not be then able
to fill in the correct value in the IP route rule!
Default route setups DO NOT work.
Unless the script can actually physically retrieve the ISP gateway from a bounded DHCP client connection
Since you’re so lazy :-p
Execute script on status change. This parameter is available in v6.39rc33+ > These are available variables that are accessible for the event script> :
bound - 1 - lease is added/changed; 0 - lease is removed
server-address - server address
lease-address - lease address provided by server
interface - name of interface on which client is configured
gateway-address - gateway address provided by server
vendor-specific - stores value of option 43 received from DHCP server
Example >>
I dont know which are the variables I am supposed to fill in and I have no clue on how to add a second router, ie make a complete second script or somehow double up specific lines of the script, or double up variables in the script.
Not lazy just making too many assumptions about my skill levels…