Equis
May 15, 2008, 2:30am
1
Hello
I would like to not add defulat route but add subnet routes via DHCP (default will be vpn after establised)
Does anyone know how to do this?
I need to tell cleint how to get to vpn server with routes and I have 500 clienst to do
DCHP would be easy if I knwo how.
Thanks
/ip dhcp-server option
add code=249 name=“static-routes” value=“0x080ac0a810fa10c0a8c0a810fa” - sets two static routes on Windows XP: 08 = mask /8, 0a = 10.0.0.0 (with mask /8), gateway c0a810fa = 192.168.16.250; and 10 = mask /16, c0a8 = 192.168.0.0 (/16), and the same gw.
Equis
May 16, 2008, 1:53am
3
Hello
I am very gratefull for that, thanks
Can you tell me will Microtil dhcp cleint work with that?
Also, do you have a table that shows those funky letters I need to make IP address?
Thanks again
funky? it’s hexadecimal numbers =)
option 249 (in rfc, it is 121, in windows - 249 =) ): http://www.ietf.org/rfc/rfc3442.txt
Equis
May 16, 2008, 2:13am
5
Thank you again.
I have added that but it did not give my mikrotik client and static routes, perhaps it doesn’t support it?
olmi
September 29, 2008, 7:13pm
6
I have version 2.9.27
/ip dhcp-server option
add code=249 name=“static-routes” value=“0x080ac0a810fa10c0a8c0a810fa” - sets two static routes on Windows XP: 08 = mask /8, 0a = 10.0.0.0 (with mask /8), gateway c0a810fa = 192.168.16.250; and 10 = mask /16, c0a8 = 192.168.0.0 (/16), and the same gw.
Not work. help me make static routes via DHCP options.
upgrade, 2.9.27 is unsupported. 2.9.51 is free and fixes many of those issues.
What’s new in 2.9.51:
*) fixed bug - dhcp server failed to give out options with code > 127;
enk
October 2, 2008, 1:21pm
9
If he uses 2.9.27, it is likely that he has cracked version. Why do you say that 2.9.51 free? =)
because a legal copy of 2.9.27 can be upgraded to 2.9.51 for free. If it’s not legal then too bad, suffer with the bugs.
Pepo
October 2, 2008, 4:34pm
11
i want to ask is this method will be work Well for load balancing if we use it ???
I tried to add more than 1 static route (in addition to default route) but it did not work! just 1 static route works:
0x18AC1401AC154601
route above works good but below not (that contains 4 route):
0x18AC1401AC154601AC1402AC154601AC1403AC154601AC1406AC154601
even 2 static routes did not work:
0x18AC1401AC154601AC1402AC154601
Chupaka
September 12, 2020, 11:38am
13
You forgot subnet mask, each route should contain it. Wrong:
0x18AC1401AC154601AC1402AC154601AC1403AC154601AC1406AC154601
Correct:
0x18AC1401AC15460118AC1402AC15460118AC1403AC15460118AC1406AC154601
You forgot subnet mask, each route should contain it. Wrong:
0x18AC1401AC154601AC1402AC154601AC1403AC154601AC1406AC154601
Correct:
0x18AC1401AC15460118AC1402AC15460118AC1403AC15460118AC1406AC154601
Thanks alot! that’s it!
it seems there is no option to mark as “true answer” for the question in the forum!
any way
thank you
mkx
September 14, 2020, 6:06am
15
There is a way, but only user that started a topic can do it.