Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trunk ports set to auto 1

Status
Not open for further replies.

burtsbees

Programmer
Jan 29, 2007
7,657
US
I have heard that trunk links can flap if you set the physical interface to auto duplex/speed...

set port speed 5/1 100
set port duplex 5/1 full

Without these commands, it will be auto speed and duplex...then the trunk, in this case, DTP...

set trunk 5/1 auto negotiate 1-1005,1025-4094
Spantree portfast is disabled on the entire module (C6509, SUP1A). Here is why I am wondering...

5/1 errdisable 1 full 100 10/100BaseTX
5/2 errdisable 1 auto auto 10/100BaseTX
5/3 errdisable 10 auto auto 10/100BaseTX
5/4 errdisable 1 auto auto 10/100BaseTX
5/5 errdisable 10 auto auto 10/100BaseTX
5/6 errdisable 1 auto auto 10/100BaseTX
5/7 errdisable 1 full 100 10/100BaseTX
5/8 errdisable 5 auto auto 10/100BaseTX
5/9 errdisable 1 auto auto 10/100BaseTX
5/10 errdisable 1 auto auto 10/100BaseTX
5/11 errdisable 1 auto auto 10/100BaseTX
5/12 errdisable 1 auto auto 10/100BaseTX
5/13 errdisable 10 auto auto 10/100BaseTX
5/14 errdisable 1 full 100 10/100BaseTX
5/15 errdisable 1 auto auto 10/100BaseTX
5/16 errdisable 1 auto auto 10/100BaseTX
5/17 errdisable 1 auto auto 10/100BaseTX
5/18 errdisable 1 auto auto 10/100BaseTX
5/19 errdisable 1 auto auto 10/100BaseTX
5/20 errdisable 5 auto auto 10/100BaseTX
5/21 errdisable 5 auto auto 10/100BaseTX
5/22 errdisable 1 auto auto 10/100BaseTX
5/23 errdisable 5 auto auto 10/100BaseTX
5/24 errdisable 1 auto auto 10/100BaseTX
5/25 errdisable 1 full 100 10/100BaseTX
5/26 errdisable 1 auto auto 10/100BaseTX
5/27 errdisable 1 auto auto 10/100BaseTX
5/28 errdisable 1 half 100 10/100BaseTX
5/29 errdisable 1 auto auto 10/100BaseTX
5/30 errdisable 1 auto auto 10/100BaseTX
5/31 errdisable 1 auto auto 10/100BaseTX
5/32 errdisable 1 auto auto 10/100BaseTX
5/33 errdisable 1 auto auto 10/100BaseTX
5/34 errdisable 5 auto auto 10/100BaseTX
5/35 errdisable 1 auto auto 10/100BaseTX
5/36 errdisable 1 auto auto 10/100BaseTX
5/37 errdisable 1 auto auto 10/100BaseTX
5/38 errdisable 1 auto auto 10/100BaseTX
5/39 errdisable 1 auto auto 10/100BaseTX
5/40 errdisable 1 auto auto 10/100BaseTX
5/41 errdisable 1 auto auto 10/100BaseTX
5/42 errdisable 5 auto auto 10/100BaseTX
5/43 errdisable 10 auto auto 10/100BaseTX
5/44 errdisable 5 auto auto 10/100BaseTX
5/45 errdisable 1 auto auto 10/100BaseTX
5/46 errdisable 1 auto auto 10/100BaseTX
5/47 errdisable 1 full 100 10/100BaseTX
5/48 errdisable 50 auto auto 10/100BaseTX

I have not looked far into this issue...there is no "set option errport enable" global command, so they are shut down. I do see that some of the ports are set to full/100, and they are errdisable as well. The customer must not be too worried about this...lol

set port speed 5/1,5/7,5/14,5/25,5/28,5/47 100
set port duplex 5/1,5/7,5/14,5/25,5/47 full

Most ports in mod 5 are set to trunk on, not DTP. I imagine resetting module 5 may clear this up. My other questions are
1)What exactly is the command to reset the module, and
2)Would I still need to set port enable (or set option errport enable, set errdisable-timeout globally) to get the ports to come back up after a module reset?

I realize that doing this will not fix the root cause of the problem. I have not tried doing a sh errdisable-timeout yet, but I will before I do anything. Thanks in advance.

Burt
 
One question might be how are the ports configured on the device that is attached to it? Also, anything with spanning-tree for why it might have err-disabled?
 
Ok..dug out my CatOS book (Cisco Field Manual: Catalyst Switch Configuration)

Looks like to reset a module its:
set module power down mod
set module power up mod

 
Cat2980G-A (enable) set module help
Set module commands:
----------------------------------------------------------------------------
set module disable Disable module
set module enable Enable module
set module name Set module name
Cat2980G-A (enable) set module disable ?
<mod> Module number
Cat2980G-A (enable) set module disable 2
This command may disconnect your telnet session.
Do you want to continue (y/n) [n]?y
Module 2 disabled.

That is on my C2980G-A...

Cat2980G-A (enable) sh mod
Mod Slot Ports Module-Type Model Sub Status
--- ---- ----- ------------------------- ------------------- --- --------
1 1 0 Switching Supervisor WS-X2980 no ok
2 2 48 10/100BaseTx Ethernet WS-X2980RJ no disable
3 3 34 10/100/1000 Ethernet WS-X2980GBRJ no ok


Burt
 
Burt I have never seen an issue with trunk ports speed and duplex set to auto as long as both ends are set to auto , at least between cisco gear . We have a lot of them out there that way. Did not quite understand this. To get the ports out of err-disable I believe you have to do a "set port disable " first and then a set port enable" . You should have to reload anything to get them out of err-disable .

 
boy have to proofread my answers before posting . :) should read
Burt I have never seen an issue with trunk ports speed and duplex set to auto as long as both ends are set to auto , at least between cisco gear . We have a lot of them out there that way. To get the ports out of err-disable I believe you have to do a "set port disable " first and then a set port enable" . You should not have to reload anything to get them out of err-disable .
 
There are some non-cisco devices that don't play well with Cisco and require the ports to be set to 100/fixed.

Off the top of my head, I know I have had problems with ethernet to fiber converters when linking two switches in different buildings. In this scenario where I link Cisco devices utilizing non-Cisco converters, I force the switches to 100/fixed.

I also had a few problems with Dell switches when trunking to Cisco.
 
They are CatOS 6509's trunked to CatOS running on 3524's.

Burt
 
Also, vipergg, "set port disable" and then "set port enable" is an interface command, so on 48 ports. That's why I was wondering if it could be done by
set module disable 5
then
set module enable 5
all in one fell swoop. Thanks.

Burt
 
Just do a set port disable 5/1-48 and then set port enable 5/1-48 . Two commands and your done.
 
On catos switches almost all commands can be applied to multiple ports at once as shown in my last note except things like trunking and etherchannel but things like port enable/disable , speed,duplex , setting vlans etcc can all be done on multiple ports. One of the things I always like about catos it was easy to do that and less cumbersome than the "interface range" on IOS boxes.
 

robertjo24 said:
14 Jan 09 13:54
I know I have had problems with ethernet to fiber converters when linking two switches in different buildings. In this scenario where I link Cisco devices utilizing non-Cisco converters, I force the switches to 100/fixed.

******

I have had the same issue - the problem with the transceivers was either that they do not even have an auto/auto setting, or that their dipswitches come set to 100/Full by default.

Also bear in mind there are two different kinds of "auto" - "negotiate", and "detect".
Cisco does "negotiate", so anything that doesn't negotiate will cause the Cisco gear to go to 100/Half. Unless the other side does "auto detect", this will result in errors which in turn will result in switch ports disabling themselves.

In other words, the other guy's advice says it all: the switch ports connected to each other have to be configured properly to match, and then tested to assure compatibility.

With newer gear, it all works fine and I haven't had any problems along these lines for the last couple of years.
 
Like I stated---the other side is set to auto, also a CatOS switch (3524), and also---some switch ports where both sides are hard coded are also err-disable. This is very likely NOT the issue.
Also like I stated, the command "show errdisable-timeout" should show why they are errdisabled. I just have to get back there---not my customer, but a third party customer (my customer's customer).

Burt
 
If the error disabled output pasted here is from the switch, then I will want to believe the issue is probably a hardware one, you might want to get the line card checked because its appears to be happening only on module 5 especially if there are other modules installed on the switch.

-Viconsul
 
Yes. That's also why I was wondering about just powering off and back on the module.

Burt
 
Also, in the past I have unscrewed the module and pulled it out slightly and tightened it again and it tends to do the trick. This doesn't affect the operation of the other modules on the switch, provided there is enough slack on the cabling to allow this.

-Viconsul
 
Right---reseat it first. Bad thing is that A)The customer is so oblivious that they don't realize this is happening, B)They don't syslog, and C)they have never cleared their log buffers.

Burt
 
I've had a Cisco switchport err-disable itself spontaneously in the middle of the day, at the busiest time.
The upshot of that one was that they'd used a non-Cisco SFP, and a Cisco SFP in the same switchport was fine.
It seemed that the Cisco switch was very intolerant of the non-Cisco SFP and so I simply disabled the switchport's ability to err-disable for whichever "reason" it was giving.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top