automatically shutdown ports after inactivity

Answered Question
Jul 8th, 2008

we have a requirement to shutdown ports in unattended locations such as meeting rooms. Is it possible to have a port automatically shutdown after a period of inactivity? for example, if we know a meeting will start at 10am we can manually open the port before this. once the meeting is over and they have neglected to tell us the port is no longer required, the port could close 1.5 hours after last use instead of being open for days until we are requested to close it.

I have this problem too.
0 votes
Correct Answer by ThomasMoeller about 8 years 4 months ago

Hi

One way to solve this is by using port-security. It is not timebased though.

This will tell the switch to learn the mac address automaticaly, and keep it until you clear it. if someone else tries to use it, it will shut down.

switchport port-security

switchport port-security maximum 1

switchport port-security mac-address sticky

switchport port-security violation shutdown

Another approach could be using timebased acl's.

-Thomas

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 4 (2 ratings)
Loading.
Correct Answer
ThomasMoeller Tue, 07/08/2008 - 01:50

Hi

One way to solve this is by using port-security. It is not timebased though.

This will tell the switch to learn the mac address automaticaly, and keep it until you clear it. if someone else tries to use it, it will shut down.

switchport port-security

switchport port-security maximum 1

switchport port-security mac-address sticky

switchport port-security violation shutdown

Another approach could be using timebased acl's.

-Thomas

purohit_810 Tue, 07/08/2008 - 04:33

Thomas is right, this is the best way you could achieve. Access-list is not racommanded for port shut isolation procedure.

Thanks,

Dharmesh Purohit

Actions

This Discussion