cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
419
Views
0
Helpful
2
Replies

MAC binding in DHCP pool

Ramprasad2
Level 1
Level 1

hi Team,

 

i have Cisco C9300 switch and i want MAC binging with DHCP pool and configured MAC address get ip address.

!
interface Vlan301
description MAC-FILTER_TEST_SVI
ip address 172.3.1.254 255.255.255.0
!
!
ip dhcp pool MAC-FILTER_TEST
network 172.3.1.0 255.255.255.0
default-router 172.3.1.254
dns-server 8.8.8.8
!
!
interface GigabitEthernet2/0/2
switchport access vlan 301
switchport mode access
spanning-tree portfast
!
mac access-list extended TEST
permit host 5405.db39.f302 any
!

vlan access-map TEST1 10
action forward
match mac address TEST

vlan access-map TEST1 20
action drop
!
vlan filter TEST1 vlan-list 301
!

 

as above all configured command but after that configured 5405.db39.f302 getting ip address and other mac address getting ip address i want that only 5405.db39.f302 mac address ip address other mac not get ip adddress.

 

 

2 Replies 2

balaji.bandi
Hall of Fame
Hall of Fame
as above all configured command but after that configured 5405.db39.f302 getting ip address and other mac address getting ip address i want that only 5405.db39.f302 mac address ip address other mac not get ip adddress.

Not sure we understand the requirement correctly - what are you looking to achieve here - need more explanation to help you.

As i understand you want only that MAC address get IP address - rest all should not get IP address is this correct ?

check DHCP client identifier - if you looking Reserve the IP address against MAC : (Configuring Manual Bindings)

https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/ipaddr_dhcp/configuration/xe-3s/dhcp-xe-3s-book/config-dhcp-server-xe.html#GUID-68D87544-7C6F-48C9-9DFE-56F5B7E4A89D

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Show access-list see if the Mac match any traffic or not

I think you need to change order

Match first then action forward 

MHM

Review Cisco Networking for a $25 gift card