Multi DHCP

How can i make the interface publish mac form the other interface.
i have an APPLETV on LAN2 and IPHONE on wifi but thay cant talke to each other. but i kan ping them so i think thay scan for mac.

> /ip dhcp-server print                                      
Flags: X - disabled, I - invalid 
 #   NAME     INTERFACE     RELAY           ADDRESS-POOL     LEASE-TIME ADD-ARP
 0   LAN      LAN2-master                   dhcp_Ether       3d         yes    
 1   WIFI-IN  WIFI                          dhcp_Wifi        3d         yes



/interface> print                                            
Flags: D - dynamic, X - disabled, R - running, S - slave 
 #     NAME                             TYPE               MTU L2MTU  MAX-L2MTU
 0  R  WAN                              ether             1500  1524       1524
 1  R  LAN2-master                      ether             1500  1524       1524
 2  R  LAN3                             ether             1500  1524       1524
 3  R  LAN4                             ether             1500  1524       1524
 4     LAN5-slave                       ether             1500  1524       1524
 5  R  vpn.Anonine.net                  pptp-out          1460
 6     pptp-in1                         pptp-in         
 7  R  WIFI                             bridge            1500  1524



/ip address> prin                                            
Flags: X - disabled, I - invalid, D - dynamic 
 #   ADDRESS            NETWORK         INTERFACE                              
 0   ;;; ETHERNET
     192.168.88.1/26    192.168.88.0    LAN2-master                            
 1 D 82.196.108.172/23  82.196.108.0    WAN                                    
 2   ;;; WIFI
     192.168.88.65/26   192.168.88.64   LAN3                                   
 3 D 188.126.92.242/32  188.126.80.0    vpn.Anonine.net

and i use arp-proxy on the interfaces.

so what can i do.

Bridge the interfaces together on the same subnet.

yes but i have an bridge on Lan3 and Lan4 cald WIFI.

so the 2 DHCP servers is set one for LAN2-Master and one for WIFI.
and i want WIFI (birge lan3, and 4) to share MAC whit LAN2 inteface.

That is what proxy-arp partially does, but you probably need to try putting everything on the same bridge if your devices truely only communicate on a layer2 (mac).

However, are you sure that your devices require a layer 2 communication? It’s hard to believe that any modern networked devices won’t work over stardard TCP/IP Layer 3.

it works over tcp but, like the ipone scans the network for a mac range 58:55:CA:::** that is the APPLETV. and when it finds it it connect to the ip. if the iphone cant see the mac how can it tell if one ip or a nouther ip is the appletv.
its same whit menny outher products.

If that is truely what it requires, then you may need to put it all on the same bridge. A lot of network printers work that way as well where they look at mac addresses, but they will allow you to manually type in the IP address in the case they are on separate networks. So, you do not have that option with the iPhone-to-AppleTV?

nopp, its appels own DNAL protocol, like i said i have a bridge and the second dhcp-server is using that as a interface and the firs dhcp-server uses Lan2 interface. so how can i put all 3 interface in one bridge and make LAN3,4 to get ip from dhcp2 and lan2 get from dhcp1.

/tanx for showing interest.

Why do you want 2 different ip ranges for devices on the same network? You can only have 1 dhcp server on a network. So, you could let all your devices pull from the same dhcp addresses, and you could assign specfic addresses to certain mac addresses in the dhcp server if you wanted some devices to have forced addresses.

i need it for this setup all the wifi trafic is using a pptp interface and then all the ips in that range takes that way.
how can i else select who shuld use what connection?

You can choose in interfaces instead of src addresses. Even in bridge, you can use specific interfaces. In the bridge setting, make sure to enable “use firewall” so the traffic goes through the rules per interface:

instead of src-address=x.x.x.x/x you can use bridge-in-interface=aaaaaaa to pick out the specific wifi connections (not “in-interface”, make sure to use “BRIDGE in interface”. Its on the second tab in winbox instead of the first box).