ip address and dhcp

in CCNA & CCENT
Hey!!!
I'm confused with assigning ip addresses with interfaces. I know how to assign them to the interface but I don't understand why my computer thats hooked up to the switch doesn't get an ip address. I thought the interface would have given out ip addreses automatically. The only time is when I get an ip address is when I assign a dhcp address in the global config. Then assign an ip address that is the same ip / mask to that interface. That is when I get ip addresses to the computers. Then only one interface assigns ip addresses and the other doesn't. Would I have to make two different pools for both addresses?
I'm confused with assigning ip addresses with interfaces. I know how to assign them to the interface but I don't understand why my computer thats hooked up to the switch doesn't get an ip address. I thought the interface would have given out ip addreses automatically. The only time is when I get an ip address is when I assign a dhcp address in the global config. Then assign an ip address that is the same ip / mask to that interface. That is when I get ip addresses to the computers. Then only one interface assigns ip addresses and the other doesn't. Would I have to make two different pools for both addresses?
Booya!!
WIP : | CISSP [2018] | CISA [2018] | CAPM [2018] | eCPPT [2018] | CRISC [2019] | TORFL (TRKI) B1 | Learning: | Russian | Farsi |
*****You can fail a test a bunch of times but what matters is that if you fail to give up or not*****
WIP : | CISSP [2018] | CISA [2018] | CAPM [2018] | eCPPT [2018] | CRISC [2019] | TORFL (TRKI) B1 | Learning: | Russian | Farsi |
*****You can fail a test a bunch of times but what matters is that if you fail to give up or not*****
Comments
CCNA:S
Don't be a dumper!
Oops sorry!! I ment a router.
WIP : | CISSP [2018] | CISA [2018] | CAPM [2018] | eCPPT [2018] | CRISC [2019] | TORFL (TRKI) B1 | Learning: | Russian | Farsi |
*****You can fail a test a bunch of times but what matters is that if you fail to give up or not*****
Are you running a DHCP on the router?, can you please explain a little bit more?, i'm not getting what you are asking.
WIP : | CISSP [2018] | CISA [2018] | CAPM [2018] | eCPPT [2018] | CRISC [2019] | TORFL (TRKI) B1 | Learning: | Russian | Farsi |
*****You can fail a test a bunch of times but what matters is that if you fail to give up or not*****
Yes, you have to run DHCP in your router;
This is assuming that you're using a cisco router:
If you want that all PCs in your network got an IP you have to run the service in the router unless you are running a DHCP server:
config mode:
Then you have to create the pools:
Ex:
If you want to assign static IPs to any PC then try this:
If you want to exclude some IPs then try this:
If you have this and still your PC's don't get an IP address then try some sh cmds to verify:
This will tell you if your DHCP is assigning IPs
Hope this help.
I'm just curious, why did you think that?