In the previous video, we have done configuring port security on the switch 1. 2
Next in this video, we are going to do testing. 3
So first, let’s configure an ip address for all server and pc. 4
Here let’s say the ip address is 192.168.1.1, in this case, we don’t need a gateway, because all of this computer will 5
be in the same block subnet, remember that we need a gateway if we want to communicate with 6
others computer in the different block subnet. So in this case, we don’t need a gateway. 7
Next, let’s configure the ip address for server 2. 8
Desktop, ip configuration, and the ip address is 192.168.1.2. Next server 3, 9
the ip address is 192.168.1.3, and last for the pc, the ip address is 192.168.1.4. 10
And here for the hacker computer, let’s change the name, 11
and the ip address is 192.168.1.5. 12
Now let’s test the communication between all server and pc. Server 1 to pc, 13
success, server2 to the pc, success, and server3 to pc, 14
this is also success. So now communication between all server and pc is ok. 15
Now let’s test the port security on fa0/1, we can unplug the cable from server1, 16
and then connecting the cable to the hacker. Now let’s try to send packet from hacker, 17
okay here we can see that now the interface is red, this is means that the interface is shutdown. 18
Let’s check in the switch, do show port-security interface fa0/1, 19
here we can see that now the status is secure shutdown, 20
Okay now let’s say we know about the hacker, 21
so we run to the data center and plug the cable back to the server. 22
Okay here the problem is the interface is still shutdown even we already plug the 23
cable back to the server 1. The question is, how we can enable this interface? 24
Let’s try it, go to interface fa0/1, let’s try no shutdown. 25
Here we can see that the interface is still shutdown. The light is still red. 26
So we can not enable the interface using command no shutdown. 27
Let’s try again, no shutdown, here the interface is still shutdown. 28
So what is the right command? 29
To enable the interface shutdown by port security like this, we need to use shutdown command first, 30
and then no shutdown. 31
Okay here we can see that now the interface is up. 32
So remember, we need to shutdown the interface first, and then no shutdown. 33
Now let’s check again, do show port-security interface fa0/1, 34
here we can see that now the status is secure up. So now server 1 is up again. 35
I think enough for this video 36
Thankyou for watching and see you on the next video