Link to home
Create AccountLog in
Networking

Networking

--

Questions

--

Followers

Top Experts

Avatar of biggynet
biggynet

dhcp reserved MAC address
I have a device that can get an IP address from my Catalyst 3560X switch but we cannot configure it with a static IP address. So I am just wondering to get its MAC address and statically reserve an IP address from the dhcp pool to it. It is possible to do that on the FortiGate firewall.  But I've never done it on Catalyst switches. If it it not possible, what can I do to get that device  a permanent IP address without statically assign an IP address to it.

Thanks

Zero AI Policy

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


SOLUTION
Avatar of acbxyzacbxyz🇩🇪

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account

Avatar of Sandeep GuptaSandeep Gupta🇮🇳

The IP you want to use permanently can be exclused from dhcp pool by using following command at your L3 switch.

ip dhcp excluded-address <<IP address>>

Avatar of acbxyzacbxyz🇩🇪

excluded-address only works if the address is statically assigned at the target device. If it is not this won't work and the device would loose it's address after the lease expired. See my post above.

SOLUTION
Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.

Avatar of biggynetbiggynet

ASKER

I added the command host ip_add my_mask and I got the following error:
"%this command may be used with network, origin, vrf or relay pools."

This is what I was trying to do:
ip dhcp pool Mars
                    host 172.16.2.254 mask 255.255.255.0
                    hardware-address 02c7.f800.0422 ieee802
                    default-router 172.16.2.100 172.16.2.101
                    domain-name cisco.com
                    dns-server 172.16.1.102 172.16.2.102
                    netbios-name-server 172.16.1.103 172.16.2.103
                    netbios-node-type h-node

But I got an error after entering the command host.

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


Avatar of vivigattvivigatt🇫🇷

Check this link:
http://e2346437.blogspot.fr/2009/09/cisco-catalyst-dhcp-with-reservation.html

Does your cisco have the "LANBASE" image ? LANLITE based devices are not able of adding DHCP reservations it seems

I have c3560-ipservices that is LAN base IOS.

SOLUTION
Avatar of vivigattvivigatt🇫🇷

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.

I see what I did wrong. I entered the host command under the dhcp pool where I have the network 99.99.99.0 255.255.0.0.

Now I created another pool and it works but I use hardware-address instead of client-identifier. Are those commands the same?

How do I check if my manual binding is working? I also added the dhcp lease command. How do I check if my lease command works? Thx

Free T-shirt

Get a FREE t-shirt when you ask your first question.

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


SOLUTION
Avatar of vivigattvivigatt🇫🇷

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.

Another question....
So if I have the below
ip dhcp pool global-dhcp
   network 192.168.2.0
   default-router 192.168.2.1
   dns-server 192.168.0.50
   domain-name domain.local
   netbios-name-server 192.168.0.50
   lease 0 4

ip dhcp pool Eric
   host 192.168.2.254 255.255.255.0
   client-identifier 0100.16d3.3e9c.f8
   default-router 192.168.2.1
   dns-server 192.168.0.50
   netbios-name-server 192.168.0.50

Is the  default-router 192.168.2.1 necessary in dhcp pool Eric? Also, is there a relationship between global-dhcp and Eric?

Thx

ASKER CERTIFIED SOLUTION
Avatar of vivigattvivigatt🇫🇷

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.

So another to understand this is the relationship between global-dhcp and Eric is that 192.168.2.254 is in the subnet 192.168.2.0 of global-dhcp so Eric inherits everything from global-dhcp

SOLUTION
Avatar of vivigattvivigatt🇫🇷

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Networking

Networking

--

Questions

--

Followers

Top Experts

Networking is the process of connecting computing devices, peripherals and terminals together through a system that uses wiring, cabling or radio waves that enable their users to communicate, share information and interact over distances. Often associated are issues regarding operating systems, hardware and equipment, cloud and virtual networking, protocols, architecture, storage and management.