INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

checking portfast from a Linux host

checking portfast from a Linux host

(OP)
Hi,

I would like to query from a Linux host to see whether my network port has portfast enabled or not. I do not want to login to network switch and would like the query to be based on my Linux host ( egs. tcpdump ) . Ant suggestions ?

Regards
H.Nair

RE: checking portfast from a Linux host

Unplug the LAN cable, plug it back in and immediately from a shell prompt ping something you know is reachable. If it replies immediately or after a couple of packets you have portfast enabled. If it takes 50-seconds or so then it is normal STP.

RE: checking portfast from a Linux host

(OP)
Thanks ADB100

I am doing an automated check. Instead of unplug the cable, I can bring down the NIC from the Linux host. And then enable it again. Now I have another query. What is the minimum time that I have to wait if STP ? Is it 50 seconds always

Thanks
H.Nair

RE: checking portfast from a Linux host

The STP protocol is widely documented - http://www.proprofs.com/mwiki/index.php/Spanning_T...

When a port becomes active it will go through three timers - Max Age whilst it listens for BPDU's on the interface to see if it is already part of the Tree, it then puts the port in Listening State for the Forward Delay time (default 15-seconds) and then in the Learning State for the Forward Delay time. During this period the port will not forward any packets that are received. Add them up and its 50-seconds. PortFast fast-forwards these states and moves a port to the forwarding state after a second or so.

Andy

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close