EOIP MAC address

I have created a HQ 2-branch-office environment.
The EOIP operate well- My question is the HQ EOIP MAC address/addressses

  • If I use the same MAC on both interface the two EOIP interfaces will have the same MAC address
  • If I user different MAC-s I will have two MAC address for one IP
    Which way is the correct one?

HQ SiteA

/interface eoip
add allow-fast-path=no local-address=10.36.6.204 loop-protect=on mac-address=02:6A:86:3F:2D:CF name=eoip-SiteA-SiteC remote-address=10.36.6.206 tunnel-id=2
add allow-fast-path=no local-address=10.36.6.204 loop-protect=on mac-address=02:6A:86:3F:2D:CF name=eoip-SiteA-SiteB remote-address=10.36.6.205 tunnel-id=1

SiteB

/interface eoip
add allow-fast-path=no local-address=10.36.6.205 mac-address=02:F1:17:72:55:47 name=eoip-SiteA-SiteB remote-address=10.36.6.204 tunnel-id=1

SiteC

/interface eoip
add allow-fast-path=no local-address=10.36.6.206 mac-address=02:F1:17:72:55:AA name=eoip-SiteA-SiteC remote-address=10.36.6.204 tunnel-id=2

You need a different MAC address for each end of each EOIP tunnel.
If you use IP address, 1 IP for each device where you connect to.

In your case: 2 tunnels = 4 ports = 4 MAC addresses.
3 devices being connected = 3 IP addresses.

You need to look at EOIP as an ethernet cable.
Every ether port has its own MAC address as well.

In your case it might work since site A has 2 EOIP tunnels starting to B and C.
But logically those MAC addresses should be different. Exactly the same as with an ethernet port.

Look at it from another angle… assume Hex with 5 ports.
In its simplest form (used as switch) it has 1 IP address but 5 MAC addresses, 1 for each port.

The MAC address is clear. Thanks
Regarding IP address I assume was not clear enough, so maybe this is the answer to my original question.
you said one IP for one EOIP interface. Actually I did not set IP for EOIP iterface I was talking about the tunnel local address.
So I mixed the two MAC one IP. The IP is for WAN interface and the MAC is for tunnel in the EOIP interface config

/interface eoip
add allow-fast-path=no local-address=10.36.6.204 loop-protect=on mac-address=02:6A:86:3F:2D:CF name=eoip-SiteA-SiteC remote-address=10.36.6.206 tunnel-id=2

Thanks for the explanation. Now it is clear for me.