Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Static ip for host

Status
Not open for further replies.

steyler

Technical User
Jul 6, 2003
72
US
Need help with setting static ip. I need to set a static ip for a host. I know how to do it on the host. How do I determine what ip addresses are available to me in my subnet and then set it static on the layer three device that has the dhcp pool? (need commands). Thanks.
 
show ip dhcp binding" to check the IP addresses that are assigned to hosts.

In order to exclude a certain portion of IP addresses in your pool, do this:

!
ip dhcp excluded-address 192.168.0.1 192.168.0.30
!

This will exclude the range 192.168.0.1 - 192.168.0.30 from the pool.


 
I now understand how to exclude it from the pool. Is there anything I need to do on the L3 switch to assign it directly to a node? Also, when I do the "show ip dhcp binding" does it show every ip that is assigned statically? Or could there be some that aren't showing up because the nodes aren't powered up? How do I undo the changes that I make if I have a problem? Thanks.
 
I don't quite understand....

1) Do you mean you want to manually configure the IP addresses on the hosts

or

2) Do you want the DHCP server to have a static mapping on IP address to certain MAC so that certain host will always get that IP address?

If 2), then do this: (only 1 manual binding per pool so you may need to create more than one manual pool)

!
ip dhcp pool manual1
host 1.1.1.1 /24
hardware-address aaaa.bbbb.cccc
!
!
ip dhcp pool manual2
host 1.1.1.2 /24
hardware-address aaaa.bbbb.dddd
!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top