Transcription

USING DHCP SERVER LEASE AS ATOOL FOR NETWORKADMINISTRATIONA SIMPLE GUIDE FOR NETWORK ADMINISTRATORS TO USE THE DHCP SERVER LEASESTO MONITOR, ADD RATE LIMIT AND ADDRESS LISTING TO THE DHCP CLIENT.MUM PH 2018MUM PH 2018 SIENA COLLEGE OF TAYTAY INGENU IT SOLUTIONS

BULLETEngr. Norberto F. Inlayo IIIMTCNA, MTCRE, MTCUMEMikrotik Academy Trainer Siena College of Taytay (Mikrotik Academy)Business Owner Ingenu IT Solutions (Mikrotik Authorized Reseller)MUM PH 2018 SIENA COLLEGE OF TAYTAY INGENU IT SOLUTIONS

Siena College of TaytayMUM PH 2018 SIENA COLLEGE OF TAYTAY INGENU IT SOLUTIONS

GOVERNMENT FUNDED PROJECTCURRICULUM ENHANCEMENT THROUGHACADEMIC INDUSTRY PARTNERSHIP WITHMIKROTIK ACADEMY FOR INCREASEDEMPLOYABILITY OF GRADUATESInstitutional Development and Innovation Grants (IDIG)Concept Paper - Siena College of Taytay

GOVERNMENT FUNDED PROJECTSECTORAL ENGAGEMENTCHED K-12 Transition ProgramSiena College of Taytay & TELMARC

Let us do a MSUMMikrotik Student User MeetingMUM PH 2018 SIENA COLLEGE OF TAYTAY INGENU IT SOLUTIONS

USING DHCP SERVER LEASES AS ATOOL FOR NETWORKADMINISTRATIONA SIMPLE GUIDE FOR NETWORK ADMINISTRATORS TO USE THE DHCP SERVERLEASES TO MONITOR, ADD RATE LIMIT AND ADDRESS LISTING TO THE DHCPCLIENT.MUM PH 2018 SIENA COLLEGE OF TAYTAY INGENU IT SOLUTIONS

OBJECTIVE For the Network Administrator To be able to monitor all the device client who is connected to the network. To set a Dynamic IP Address to Static within Mikrotik. To enable Use Source Mac Address option to lock the device IP to the device mac. To add the Rate Limit to the device client. To use Address Listing option to be able to add the client to a certain firewall rule.MUM PH 2018 SIENA COLLEGE OF TAYTAY INGENU IT SOLUTIONS

REFERENCE:wiki.mikrotik.comforum.mikrotik.comMUM PH 2018 SIENA COLLEGE OF TAYTAY INGENU IT SOLUTIONS

ROUTEROS: DHCP SERVERDynamic Host Configuration Protocol For easy distribution of IP in a network IP Assignment Obtaining IP SettingsMUM PH 2018 SIENA COLLEGE OF TAYTAY INGENU IT SOLUTIONS

ROUTEROS: DHCP SERVERMUM PH 2018 SIENA COLLEGE OF TAYTAY INGENU IT SOLUTIONS

PRE-REQUISITE: DHCP Server should be configured. There should be an IP Pool. IPv4 for the devices should be set to obtain an IP address automatically. Note: Devices with manually configured IP cannot be probed in the DHCP lease.MUM PH 2018 SIENA COLLEGE OF TAYTAY INGENU IT SOLUTIONS

PRE-REQUISITE:There should be an IP Pool.MUM PH 2018 SIENA COLLEGE OF TAYTAY INGENU IT SOLUTIONS

PRE-REQUISITE:IPv4 for the devices shouldbe set to obtain an IPaddress automatically.MUM PH 2018 SIENA COLLEGE OF TAYTAY INGENU IT SOLUTIONS

DHCP SERVERLEASEDHCP server lease submenuis used to monitor andmanage server's leases.MUM PH 2018 SIENA COLLEGE OF TAYTAY INGENU IT SOLUTIONS

DHCP SERVERLEASEOptions: Assign IP Bind IP to MAC Address Client ID Assign Server Lease Time Block Access Always Broadcast DHCP Options Rate Limit Queue Address ListMUM PH 2018 SIENA COLLEGE OF TAYTAY INGENU IT SOLUTIONS

DYNAMIC TO STATIC Double click on anydynamically assigned IPto view the DHCP Leaseoptions.MUM PH 2018 SIENA COLLEGE OF TAYTAY INGENU IT SOLUTIONS

Click Make Static. Close the DHCP Leasewindow and re-open itagain.MUM PH 2018 SIENA COLLEGE OF TAYTAY INGENU IT SOLUTIONS

Type the IP addressthat will be assignedto the client. Tick the box of UseSrc. MAC Address tobind the IP to theMAC AddressMUM PH 2018 SIENA COLLEGE OF TAYTAY INGENU IT SOLUTIONS

ADDING RATE LIMIT Type the desiredbandwidth limit on theRate Limit field.Example:512k Upload2M DownloadMUM PH 2018 SIENA COLLEGE OF TAYTAY INGENU IT SOLUTIONS

ADDING RATE LIMIT It will be automatically be added on the Queue ListMUM PH 2018 SIENA COLLEGE OF TAYTAY INGENU IT SOLUTIONS

ASSIGN ADDRESS LIST Type a name/groupwhere the client devicewill be assigned.MUM PH 2018 SIENA COLLEGE OF TAYTAY INGENU IT SOLUTIONS

ASSIGN ADDRESS LIST It will automatically beadded in the Addresslist which can be usedin creating filter rules.Example:Filter Rules for ComputerLab Internet HoursMUM PH 2018 SIENA COLLEGE OF TAYTAY INGENU IT SOLUTIONS

SCRIPT: EXTRACTING LEASESThis script will help you extract the necessary informationform the lease that you want to include in your CSV file./ip dhcp-server lease :foreach i in [find] do { :put ([get i address].",".[get i mac-address].",".[get i client-id].",".[get i server]) }BIG THANKS toskot for thispost contribution @ Mikrotik ForumMUM PH 2018 SIENA COLLEGE OF TAYTAY INGENU IT SOLUTIONS

SCRIPT: EXTRACTING LEASES/ip dhcp-server lease :foreach I in [find] do ( :put {[get iNote: Typing this script and pressingwill show theavailable options that you may include in the command.MUM PH 2018 SIENA COLLEGE OF TAYTAY INGENU IT SOLUTIONS

SCRIPT: EXTRACTING LEASESHere is the script if we want to extract the list of block-accessclient with client-id and dhcp-server included:foreach i in [find] do { :put ([get i block-access].",".[get iclient-id].",".[get i server]) }MUM PH 2018 SIENA COLLEGE OF TAYTAY INGENU IT SOLUTIONS

SCRIPT: EXTRACTING LEASES Highlight the extractedinformation and copypaste it in a text file inyour desktop.MUM PH 2018 SIENA COLLEGE OF TAYTAY INGENU IT SOLUTIONS

SCRIPT: EXTRACTING LEASES Create a text file inyour desktop. Copy paste theextracted fieldsfrom the terminal.MUM PH 2018 SIENA COLLEGE OF TAYTAY INGENU IT SOLUTIONS

SCRIPT: EXTRACTING LEASES Change theextension name toCSV. Open the CSVfile. You successfullyextracted the list inyour desktopMUM PH 2018 SIENA COLLEGE OF TAYTAY INGENU IT SOLUTIONS

THANK YOU AND ENJOY A HAPPY MUM PH 2018CREATE MUM MEMORIES VISIT THE PHOTO BOOTHSPONSORED BY INGENU IT SOLUTIONSLet’s be friends: 639053529751 [email protected] www.ingenuits.comMUM PH 2018 SIENA COLLEGE OF TAYTAY INGENU IT SOLUTIONS

OBJECTIVE For the Network Administrator To be able to monitor all the device client who is connected to the network. To set a Dynamic IP Address to Static within Mikrotik. To enable Use Source Mac Address option to lock the device IP to the device mac. To add the Rate Limit to the device client. To use Address Listing option to be able to add the client to a certain firewall .