Иногда бывают ситуации, когда нужно срочно подключить к Cisco каталисту
новый оптический линк и как назло нет лишних SFP модулей, но зато есть
множество сторонних от DLink, 3COM, Nateks, но которые как известно в
каталистах не работают из-за жадности компании Cisco, стремящейся
навариться на продаже своих комплектующих.
Так и у меня произошло в этот раз.
Вашему вниманию предлагаю готовое решение, которое у меня работает на
гигабитном канале с приблизительной 70% загрузкой вот уже 3 месяца.
Тестировалось на:
Cisco Catalyst 3560 с IOS c3560-ipservicesk9-mz.122-50.SE.bin
Cisco Catalyst 3750 с IOS c3750-ipbase-mz.122-35.SE5.bin
Под рукой оказались 3COM SFP-GD-BX34-R и Nateks SFP-GE-SM-10KM
1. Включаем SFP в порты и получаем
4d04h: %GBIC_SECURITY_CRYPT-4-VN_DATA_CRC_ERROR: GBIC in port Gi0/2 has bad crc
4d04h: %PM-4-ERR_DISABLE: gbic-invalid error detected on Gi0/2, putting Gi0/2 in err-disable state
#sh int status:
Gi0/2 err-disabled 1 auto auto unknown
Работать стало быть не хотим. Ок.
2.
#conf t
#int Gi0/2
#shut
Снимаю модуль
#exit
#service unsupported-transceiver
Warning: When Cisco determines that a fault or defect can be traced to
the use of third-party transceivers installed by a customer or reseller,
then, at Cisco's discretion, Cisco may withhold support under warranty or
a Cisco support program. In the course of providing support for a Cisco
networking product Cisco may require that the end user install Cisco
transceivers if Cisco determines that removing third-party parts will
assist Cisco in diagnosing the cause of a support issue.
Циска честно предупреждает что может наступить коллапс если воткнуть в
неё сторонний модуль. Соглашаемся
3.
#no errdisable detect cause sfp-config-mismatch
#no errdisable detect cause gbic-invalid
4. Опять вставляем модуль:
4d05h: %GBIC_SECURITY_CRYPT-4-VN_DATA_CRC_ERROR: GBIC in port Gi0/2 has bad crc
4d05h: %PHY-4-UNSUPPORTED_TRANSCEIVER: Unsupported transceiver found in Gi0/2
Видит. Ругается, но уже не блокирует порт в err-disabled.
#int Gi0/2
#no shut
#do sh int status | inc Gi0/2
Gi0/2 connected routed a-full a-1000 unsupported
Бинго.
5.
#do ping 10.254.0.1 repeat 1000
Type escape sequence to abort.
Sending 1000, 100-byte ICMP Echos to 10.254.0.1, timeout is 2 seconds:!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1
#do sh int Gi0/2
GigabitEthernet0/2 is up, line protocol is up (connected)
Hardware is Gigabit Ethernet, address is 001f.6d94.5541 (bia 001f.6d94.5541)
Internet address is 10.254.0.2/24
MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive not set
Full-duplex, 1000Mb/s, link type is auto, media type is unsupported
input flow-control is off, output flow-control is unsupported
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:33, output 00:00:11, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
849816 packets input, 101969402 bytes, 0 no buffer
Received 5929 broadcasts (0 IP multicast)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 watchdog, 5927 multicast, 0 pause input
0 input packets with dribble condition detected
849885 packets output, 102019496 bytes, 0 underruns
0 output errors, 0 collisions, 0 interface resets
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier, 0 PAUSE output
0 output buffer failures, 0 output buffers swapped out
#do sh idprom int Gi0/2
General SFP Information
Identifier : 0x03
Connector : 0x07
Transceiver : 0x00 0x00 0x00 0x02 0x00 0x00 0x00 0x00
Encoding : 0x01
BR_Nominal : 0x0D
Vendor Name : NATEKS
Vendor Part Number : SFP-GE-SM-10KM
Vendor Revision : 0x30 0x30 0x30 0x30
Vendor Serial Number : 063401260
P.S. в некоторых версиях IOS нет service unsupported-transceiver,
поэтому нужно пробовать, в частности в примере всё работает отлично.
Ну и как бы понятно что для промышленного решения это грабли, но для
какого-то бюджетного или SoHo может быть вполне подойдет.
С уважением, ES.