Community discussions

MikroTik App
 
VadimS7
just joined
Topic Author
Posts: 6
Joined: Mon Jul 06, 2020 3:51 pm

script for dhcp client

Mon Jul 05, 2021 4:23 pm

Hello everyone. Help with the script. There is a mikrotik configured for the operation of two Internet providers, using packet marking. The first provider gives a static address, the second via DHCP with changing the gateway and address. It is necessary that when changing the address to the dhcp client, the ip is registered in Mangle, and the gateway in the routing table. Thanks in advance!
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: script for dhcp client

Mon Jul 05, 2021 7:55 pm

DHCP client create automatically the route.
On mangle use WAN interface name than IP.
The IP change but the interface still the same.
 
VadimS7
just joined
Topic Author
Posts: 6
Joined: Mon Jul 06, 2020 3:51 pm

Re: script for dhcp client

Tue Jul 20, 2021 11:44 am

I partially solved my question, but there is one more problem for me, if you change the ip address with the gateway, one of the interfaces, or rather ether1, substitutes the values ​​from ip dhcp-clients (gataway). The link is attached below
https://dropmefiles.com/BUgI2

Who is online

Users browsing this forum: No registered users and 15 guests