cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2979
Views
4
Helpful
10
Replies

Reserved Static IP On PC.

hoadotnguyen
Level 1
Level 1

- I have a router 1811, this router is connect to switch 2950. I want to have 10.10.10.11 is ip on my pc.

- I do have a computer name for this pc.

- I would like to have my pc connect to any ports of my Switch; then my pc is show and ip 10.10.10.11.

- Please help! How could I reserved this IP? From my Router or Switch. Step to do this? Thanks much for any input.

1 Accepted Solution

Accepted Solutions

derrickc
Level 1
Level 1

Actually, the config looks as follows:

ip dhcp pool Admin_PC

host 10.182.40.55 255.255.255.0

client-identifier 0100.1018.023e.94

client-name admin_pc

So, when you enter "ip dhcp pool Admin_PC", your promt will be "router(dhcp-config)#" since you are configuring a pool - even though this pool consists of only one IP address. If you were doing two machines, maybe something like this...

ip dhcp pool Admin_PC1

host 10.182.40.55 255.255.255.0

client-identifier

client-name admin_pc1

ip dhcp pool Admin_PC2

host 10.182.40.56 255.255.255.0

client-identifier

client-name admin_pc2

and so on...

View solution in original post

10 Replies 10

royalblues
Level 10
Level 10

If you are using a DHCP server or the router is acting as a DHCP server, you can bind your mac-address so that you always receive the same IP address

If DHCP is not being used, then you can define the IP statically under the network adapter which will not change when you connect to any port on the switch

HTH

Narayan

Would you show me how to bind my mac-address so that I wlways recived the same IP address? Do this on router or switch? Thanks please.

Again Please. I Configuring Manual Bindings

with these steps from CLI for my router; steps are below:

1) Router(config)# ip dhcp pool rbind (whre rbind is a host pool name)

2) Router(config-dhcp)# host address 10.x.x.x xx-xx-xx-xx-xx/24

3) hardware-address 01b7.0813.8811.66 01

If I do steps above. Please correct if I miss step above. Then my client IP will has a Static IP?

Do I have to Configuring a DHCP Server Boot File?

Can I manual binding by using SDM software?

Thanks

derrickc
Level 1
Level 1

Here is a portion of one of my configurations where I want a PC to get the same IP address from the DHCP server (my 4507 switch is the DHCP server).

Note: You will have a pool for the entire network, but you will also have a pool for each "static" binding.

HTH

First I exclude a range of IPs that I want to use for true static addresses - for network gear, etc.

ip dhcp excluded-address 10.182.40.1 10.182.40.10

Then I create a pool for the entire subnet and specify the default gateway, dns servers, etc.

ip dhcp pool Admins

network 10.182.40.0 255.255.255.0

default-router 10.182.40.1

dns-server 10.192.2.67 10.192.2.14

domain-name somecompany.com

netbios-name-server 10.192.2.4

!

then I create a pool for the "static" IP binding to a particular MAC address. Note that the client identifier is the MAC address with a leading 01. (this is expained in a Cisco doc somewhere and can be seen if you do a debug ip dhcp server packet

ip dhcp pool Admin_PC

host 10.182.40.55 255.255.255.0

client-identifier 0100.1018.023e.94

client-name admin_pc

Also note the mask for the static binding needs to match the mask of the main pool.

I am so appricated your input. I am so litteral using cisco router. If I do these steps below (let say for 10 pcs), then these pc will get static IP. Steps below.

Questions please:

In line 3, network is a my host name?

In line 6, can i use my home domain (aaa.com) or my ISP domain?

In line 7, how do I find my netbios-name-server

In line 9, I just enter host keyword or client computer name?

1. ip dhcp excluded-address 10.182.40.1 10.182.40.10 (note: this is for 10 pcs)

router

2. ip dhcp pool Admins

3. network 10.182.40.0 255.255.255.0

4. default-router 10.182.40.1

5. dns-server 10.192.2.67 10.192.2.14

6. domain-name somecompany.com

7. netbios-name-server 10.192.2.4

8. ip dhcp pool Admin_PC

9. host 10.182.40.55 255.255.255.0

10. client-identifier 0100.1018.023e.94

11. client-name admin_pc

When you setup a DHCP server, generally you just want clients to grab an IP address out of a Pool of available addresses. Line 1 above simply excludes a range of IPs from the pool. These are used for any device that you want to manually configure with a static IP address...servers, Router interfaces, etc.

Then, there are times when you want to configure a device to use DHCP but always get the same IP address. This is why you configure a static binding as I showed above.

So, basically, if a device is setup for DHCP, it will get any available IP address in the 10.182.40.11 to 10.182.40.254 range unless the client identifier is 0100.1018.023e.94. For this device, it will always get 10.182.40.55. (Note that this address is in the range defined by the pool, however, the DHCP server knows to only assign it to 0100.1018.023e.94).

As for your questions,

Line3: network is the IP network where your clients/devices reside.

Line6: you can use whatever domain you want. It is what is appended to the computer name.

Line7: You may not need this depending on your environment. Basically, this is the WINS server.

Line9: use the host command to define what IP address that the client (0100.1018.023e.94) gets each time it boots.

To find your client-identifier on a Windows machine, type "ipconfig /all" at the command prompt and copy the value for "Physical Address". Mine was 0010.1802.3e94

You will have to add 01 at the begining giving you: 0100.1018.023e.94

One last question please:

Line 9, I should include the word host?

Example: router config-if# host 10.182.40.55 255.255.255.0

If I type this command from line 9 in CLI, then this is just setting for one pc client? If I want to set another pc client, what command should I do? Thanks,

derrickc
Level 1
Level 1

Actually, the config looks as follows:

ip dhcp pool Admin_PC

host 10.182.40.55 255.255.255.0

client-identifier 0100.1018.023e.94

client-name admin_pc

So, when you enter "ip dhcp pool Admin_PC", your promt will be "router(dhcp-config)#" since you are configuring a pool - even though this pool consists of only one IP address. If you were doing two machines, maybe something like this...

ip dhcp pool Admin_PC1

host 10.182.40.55 255.255.255.0

client-identifier

client-name admin_pc1

ip dhcp pool Admin_PC2

host 10.182.40.56 255.255.255.0

client-identifier

client-name admin_pc2

and so on...

when i tried with second pc, i got an error is shwoing "% A binding already exists 10.10.10.3" do you know why?

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: