Community discussions

MikroTik App
 
TikYAN
just joined
Topic Author
Posts: 12
Joined: Tue Feb 09, 2021 3:12 pm

Static ARP with DHCP on VRRP

Fri Apr 05, 2024 2:49 pm

Hi!

i didn't get the static ARP Table with DHCP on VRRP running...

R1:
Interface Bridge1, 192.168.0.11/24, ARP: Reply only
Interface VRRP1 on Bridge1, 192.168.0.1/32 ARP: Reply only
DHCP on Interface VRRP1 (tried on Bridge1 as well), Add ARP for Leases
DHCP Lease-1

R2:
Interface Bridge1, 192.168.0.12/24, ARP: Reply only
Interface VRRP1 on Bridge1, 192.168.0.1/32 ARP: Reply only
DHCP on Interface VRRP1 (tried on Bridge1 as well), Add ARP for Leases
DHCP Lease-1

if i run on VLAN and VRRP Interface ARP Enabled, everything is ok
if i change to Reply only, i can't ping the IPs from R1 or R2 or VRRP.
i've added the MACs from VRRP Partners to each others ARP Table, VRRP works, but the Lease won't register to ARP.

Must the ARP Entries exist on the VRRP Interface Table or VLAN Interface Table or on both?
Should i use on DHCP the VLAN Interface an NOT the VRRP?

Best Regards!
YAN
 
TikYAN
just joined
Topic Author
Posts: 12
Joined: Tue Feb 09, 2021 3:12 pm

Re: Static ARP with DHCP on VRRP  [SOLVED]

Fri Apr 05, 2024 4:11 pm

#R1
/interface bridge add arp=reply-only name=bridge1
/interface vrrp add arp=reply-only interface=bridge1 name=vrrp1
/ip dhcp-server add add-arp=yes interface=vrrp1 name=server1
/interface bridge port add bridge=bridge1 interface=ether1
/interface bridge port add bridge=bridge1 interface=ether2
/ip address add address=192.168.0.11/24 interface=bridge1 network=192.168.0.0
/ip address add address=192.168.0.1 interface=vrrp1 network=192.168.0.1
/ip arp add address=192.168.0.1 interface=bridge1 mac-address=00:00:5E:00:01:01
/ip arp add address=192.168.0.12 interface=bridge1 mac-address=08:55:31:A7:25:06
/ip arp add address=192.168.0.99 interface=bridge1 mac-address=C8:5B:76:E2:1B:80
/ip dhcp-server lease add address=192.168.0.99 mac-address=C8:5B:76:E2:1B:80 server=server1
/ip dhcp-server network add address=192.168.0.0/24 dns-server=8.8.8.8 gateway=192.168.0.1 netmask=24
/system identity set name=R1
/system note set show-at-login=no
/tool romon set enabled=yes
#R2
/interface bridge add arp=reply-only name=bridge1
/interface vrrp add arp=reply-only interface=bridge1 name=vrrp1 priority=50
/ip dhcp-server add add-arp=yes interface=vrrp1 name=server1
/interface bridge port add bridge=bridge1 interface=ether1
/interface bridge port add bridge=bridge1 interface=ether2
/ip address add address=192.168.0.12/24 interface=bridge1 network=192.168.0.0
/ip address add address=192.168.0.1 interface=vrrp1 network=192.168.0.1
/ip arp add address=192.168.0.1 interface=bridge1 mac-address=00:00:5E:00:01:01
/ip arp add address=192.168.0.11 interface=bridge1 mac-address=08:55:31:AA:04:A2
/ip arp add address=192.168.0.99 interface=bridge1 mac-address=C8:5B:76:E2:1B:80
/ip dhcp-server lease add address=192.168.0.99 mac-address=C8:5B:76:E2:1B:80 server=server1
/ip dhcp-server network add address=192.168.0.0/24 dns-server=8.8.8.8 gateway=192.168.0.1 netmask=24
/system identity set name=R2
/tool romon set enabled=yes
on real devices, not in eve-ng, everything works as expected.
The only thing is, if the DHCP-Server interface is on VRRP, the Mac from the Lease use the wrong Interface on the ARP Table.
If i use in DHCP the Bridge Interface, the ARP Entry will be created by the DHCP Server with the right Interface (Bridge)

Who is online

Users browsing this forum: akakua, Amazon [Bot], andkar, antonsb, DanMos79, dioeyandika, jprietove, normis, onnoossendrijver, pedroush, sergejs, woland, zlowred and 55 guests