Friday, 10 December 2021

Cisco IOS DHCP with VRF

 Configuring a Cisco router as DHCP Server for a VRF, you must use the "vrf" keyword in the pool and in the excluded ranges.

ip dhcp excluded-address vrf INFO 172.23.11.1 172.23.11.10
ip dhcp excluded-address vrf INFO 172.23.11.250 172.23.11.254
ip dhcp pool INFO_VL112
 vrf INFO
 network 172.23.11.0 255.255.255.0
 default-router 172.23.11.254
 dns-server 1.1.1.1 8.8.8.8
 domain-name lab.local
 lease 0 2

 

 In order for DHCP requests to be served the following commands must be entered on DHCP Server Router


For remote devices:
ip dhcp use vrf remote

For locally connected clients:
ip dhcp use vrf connected

Wednesday, 8 December 2021

Firepower Delete Notifications from CLI

 Run the below script to get notifications from FMC and delete the ones that you want


1) OmniQuery.pl -db mdb -e "select status,category,hex(uuid),body from notification where status=11;"
2) OmniQuery.pl -db mdb -e 'delete from notification where uuid=unhex("<insert the uuid that the first command returns here");'
3) OmniQuery.pl -db mdb -e "select status,category,hex(uuid),body from notification where status=11;"