09-22-2018 09:56 AM - edited 03-08-2019 04:13 PM
Hi
if I configure dhcp on router after I configure and switchport port-security on switch fastethernet 0/1
interface fastethernet0/1
switchport access vlan 10
switchport mode access
switchport port-security
switchport port-security maximum 2
switchport port-security violation restrict
switchport port-security aging time 120
for exmaple my PC1 get 192.168.1.10 ip address on dhcp server after i add other PC2 to this port (fastethernet0/1) i will get 192.168.1.11 ip address again i back Pc1 to this port (fastethernet0/1) my pc1 will get new ip address or again will take 192.168.1.10 ?
Solved! Go to Solution.
09-22-2018 11:30 AM
What DHCP Server you are using, if you using MS DHCP Server, depends on Lease time you have setup.
If you requirement is to get all the time same IP address for PC1 and PC2, reserve the IP address so all the time PC1 and PC2 get same IP address
09-22-2018 11:07 AM
Hello,
the PC originally connected will retain its IP address, 192.168.1.10. That is with the Cisco IOS DHCP server. You will have to test if this works the same with other external 3rd party DHCP servers...
09-23-2018 01:38 AM
09-23-2018 01:49 AM
If you using Cisco device as DHCP Server, then you need to do Configuring DHCP Static Mapping.
Below document will help you for that.
09-23-2018 04:49 AM
Hello,
I tested your setup on an IOS device, as stated the original IP address is retained when you reconnect the PC...I did not configure any sort of mapping or reservation.
@Hiko wrote:
I am using dhcp on router so but i wan get same ip address everytime
09-22-2018 11:30 AM
What DHCP Server you are using, if you using MS DHCP Server, depends on Lease time you have setup.
If you requirement is to get all the time same IP address for PC1 and PC2, reserve the IP address so all the time PC1 and PC2 get same IP address
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide