Community discussions

MikroTik App
 
warez
just joined
Topic Author
Posts: 17
Joined: Tue Jun 28, 2011 1:44 pm

What IP Source for Dude use to monitor hosts?

Mon Oct 17, 2016 11:28 am

I have Dude on CHR. In system have severals IP Addresses
What IP address Source the Dude use to monitor hosts?
How i can setup this?
 
LetMeRepair
newbie
Posts: 26
Joined: Mon Jan 31, 2011 5:23 pm

Re: What IP Source for Dude use to monitor hosts?

Thu Jan 18, 2018 10:16 pm

This some old topic, but I came across the same problem now. I need (or would like) to define the source address used for probing etc.Since there seems to have been much work going on for the Dude, is there possibly a soluton to this meanwhile?
 
4lex
just joined
Posts: 4
Joined: Mon Jan 15, 2018 8:39 pm

Re: What IP Source for Dude use to monitor hosts?

Fri Jan 19, 2018 8:21 am

It uses own selected as a default route, but you can set preferred-src-ip, for example:
/ip address
add address=8.8.8.1/32 interface=ether1 network=8.8.8.0
add address=10.1.1.1/29 interface=ether1 network=10.1.1.0
add address=172.16.1.2/24 interface=vlan100-ether1 network=172.16.1.0

/ip route
add distance=1 gateway=8.8.8.2
add distance=1 dst-address=10.0.0.0/8 gateway=10.1.1.2 pref-src=10.1.1.1
add distance=1 dst-address=172.16.0.0/12 gateway=10.1.1.2 pref-src=10.1.1.1
add distance=1 dst-address=192.168.0.0/16 gateway=10.1.1.2 pref-src=10.1.1.1
So private network (10.0.0.0/8, 172....) will be pinged with src 10.1.1.1,
172.16.1.0/24 - from 172.16.1.2 - as directly connected,
all other addresses will be reachable with source ip 8.8.8.1 as default.
Last edited by 4lex on Tue Jan 23, 2018 3:45 pm, edited 1 time in total.
 
LetMeRepair
newbie
Posts: 26
Joined: Mon Jan 31, 2011 5:23 pm

Re: What IP Source for Dude use to monitor hosts?

Fri Jan 19, 2018 1:23 pm

Thanks, that's a nice idea. So far i only used this setting when I had to manage multiple (WAN) IPs in the gateway subnet, never thought of using it this way.

Who is online

Users browsing this forum: No registered users and 45 guests