Skip to contentSkip to conversation

force a MAC to have one IP

DISCUSSION Rakotomandimby Mihamina 2 participants 2 messages Nov 5, 2009

lore
Share & tools
lore
#0 lore raw

Hi all

On our LAN, we have a DHCP server that offers fixed IPs to some MACs. (We dont use such solutions as NuFW yet)

We would like to ensure one IP adress is used by the assigned MAC. (QoS matter)

Is this a good enough solution:
-A INPUT -m mac --mac-source 00:15:C5:F4:29:7C -s ! 192.168.1.13 -j REJECT
-A FORWARD -m mac --mac-source 00:15:C5:F4:29:7C -s ! 192.168.1.13 -j REJECT

Is there any better one?

Signature · 3 lines
       Architecte Informatique chez Blueline/Gulfsat:
   Administration Systeme, Recherche & Developpement
                                   +261 33 11 207 36
#1 lore raw

2009/11/5 Rakotomandimby Mihamina <[email protected]>:

Quoted 8 lines

We would like to ensure one IP adress is used by the assigned MAC. (QoS matter)

Is this a good enough solution:

(quoted diff) +0 -2
-A INPUT   -m mac --mac-source 00:15:C5:F4:29:7C -s ! 192.168.1.13 -j REJECT
-A FORWARD -m mac --mac-source 00:15:C5:F4:29:7C -s ! 192.168.1.13 -j REJECT

Is there any better one?

Use ipsets, probably macipmap.

Karel