Community discussions

MikroTik App
 
kelarlee
newbie
Topic Author
Posts: 29
Joined: Thu Dec 27, 2018 5:48 pm

2 ip adresses on one intarface (Winbox showing wrong)

Thu Sep 09, 2021 10:15 am

Hi there, i have a little problem, its not so critical for me, but for my colleagues it can be misleading. First of all i have 2 ip adresses on my ether1 interface for example 10.0.0.10 and 10.0.0.20. First adress (10.0.0.10) assigned by dhcp from another mikrotik and using for internet access. Another IP (10.0.0.20) using for dstnat chain so i can access to another mikrotik through NAT. My problem is - when i using Neighbors search in winbox, my mikrotik showing ip 10.0.0.20, but i need 10.0.0.10. Is there anyway how i can bind 10.0.0.10 instead of 10.0.0.20 to showing my mikrotik in neighbours ?
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11967
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: 2 ip adresses on one intarface (Winbox showing wrong)

Thu Sep 09, 2021 10:35 am

remove the .20 and use the 10 on dstnat...
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 11381
Joined: Thu Mar 03, 2016 10:23 pm

Re: 2 ip adresses on one intarface (Winbox showing wrong)

Thu Sep 09, 2021 10:37 am

Not exactly the answer to your question, but: when winbox shows list of devices, you can click on MAC address (instead of IP address) and then winbox will connect via MAC. Access control for this is not via firewall, but rather via /tool mac-server and subtree.
 
kelarlee
newbie
Topic Author
Posts: 29
Joined: Thu Dec 27, 2018 5:48 pm

Re: 2 ip adresses on one intarface (Winbox showing wrong)

Thu Sep 09, 2021 11:10 am

remove the .20 and use the 10 on dstnat...
Thank you for reply, but its not an option for me. Some time ago we had an "accident" with our mikrotik(RB912UAG-2HPnD) , it fall from roof and seems like internal storage start malfunctioning. When mikrotik rebooting or power off, it configuration always drop to default, i even cant upgrade Router OS, but all other functions working as normal. So i just make txt file with commands so my colleagues can just copy and paste list of commands in terminal. And after all this seems like when i using this list of commands, mikrotik by default showing in discovery protocol not this ip that i wanted. Example of my commands:
/interface bridge add name=bridge-local
/interface bridge port add bridge=bridge-local hw=yes interface=wlan1
/ip address add address=192.168.44.1/24 interface=bridge-local network=192.168.44.0
/ip pool add name=dhcp-pool ranges=192.168.44.10-192.168.44.199
/ip address add address=192.168.88.220/24 interface=ether1 network=192.168.88.0
/ip dhcp-server network add address=192.168.44.0/24 dns-server=192.168.44.1 gateway=192.168.44.1 netmask=24
/ip dhcp-server add address-pool=dhcp-pool disabled=no interface=bridge-local lease-time=10m name=dhcp-local
/ip dhcp-client add add-default-route=yes dhcp-options=hostname,clientid disabled=no interface=ether1
/ip firewall nat add action=masquerade chain=srcnat out-interface=ether1
/interface wireless security-profiles add name=nopass mode=none supplicant-identity=MikroTik
/interface wireless set [ find default-name=wlan1 ] band=2ghz-b/g country="united states" disabled=no frequency=auto mode=ap-bridge ssid=MUS wireless-protocol=802.11 wps-mode=disabled distance=dynamic security-profile=nopass
/ip firewall nat add action=dst-nat chain=dstnat dst-address=192.168.88.220 to-addresses=192.168.44.5
/ip dns set allow-remote-requests=yes servers=192.168.88.1,8.8.8.8
All i need is that mikrotik showing in winbox with ip assigned by dhcp server. For now it showing as 192.168.88.220(static).
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11967
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: 2 ip adresses on one intarface (Winbox showing wrong)  [SOLVED]

Thu Sep 09, 2021 11:31 am

neighbor discovery can transmit only one ip, and is choiced the latest IP added to the interface
winbox can not know the other addresses, but as @mkx already write, you can use mac address,
but, if the IP is the same, why not add the ip directly to address book on winbox?
 
kelarlee
newbie
Topic Author
Posts: 29
Joined: Thu Dec 27, 2018 5:48 pm

Re: 2 ip adresses on one intarface (Winbox showing wrong)

Thu Sep 09, 2021 11:39 am

neighbor discovery can transmit only one ip, and is choiced the latest IP added to the interface
winbox can not know the other addresses, but as @mkx already write, you can use mac address,
but, if the IP is the same, why not add the ip directly to address book on winbox?
Thank you for the explanation. I think i just add /delay before add static ip to interface so it can assigned ip from dhcp server first.

Who is online

Users browsing this forum: BinaryTB, Bing [Bot], GoogleOther [Bot], rplant and 75 guests