02-15-2024 09:36 PM
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.
02-16-2024 09:40 AM
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)
02-16-2024 10:05 AM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide