顯示具有 2960 標籤的文章。 顯示所有文章
顯示具有 2960 標籤的文章。 顯示所有文章

2019年12月30日 星期一

cisco 2960 ios upgrade

https://blog.downager.com/2018/11/25/%E9%9A%A8%E7%AD%86-Cisco-2960X-IOS-%E7%89%88%E6%9C%AC%E6%8C%91%E9%81%B8-%E6%9B%B4%E6%96%B0/

c2960-lanbasek9-tar.122-55.SE12.tar

archive tar /xtract tftp://191.1.1.219/c2960-lanbasek9-tar.122-55.SE12.tar flash:


c2960-lanbasek9-mz.122-50.SE4

c2960-lanbasek9-mz.122-55.SE12/c2960-lanbasek9-mz.122-55.SE12.bin

 c2960-lanbasek9-mz.122-55.SE12/c2960-lanbasek9-mz.122-55.SE12.bin



Directory of flash:/

    2  -rwx         916   Mar 1 1993 00:03:55 +00:00  vlan.dat
    3  drwx         192   Mar 1 1993 01:00:34 +00:00  c2960-lanbasek9-mz.122-55.SE12
    4  -rwx        2229   Mar 1 1993 00:00:58 +00:00  config.text
    5  -rwx        1913   Mar 1 1993 00:00:58 +00:00  private-config.text
    6  -rwx        2072   Mar 1 1993 00:00:58 +00:00  multiple-fs
    7  drwx         192   Mar 1 1993 00:07:34 +00:00  c2960-lanbasek9-mz.122-50.SE4
 1117  -rwx         108   Mar 1 1993 01:02:05 +00:00  info

32514048 bytes total (7432704 bytes free)
Switch#
Switch#delete /f
Switch#delete /re
Switch#delete /recursive /for
Switch#delete /re
Switch#delete /recursive for
Switch#delete /recursive force
Switch#delete /recursive /force
Switch#delete /recursive /force c2960-lanbasek9-mz.122-50.SE4
Switch#dir
Directory of flash:/

    2  -rwx         916   Mar 1 1993 00:03:55 +00:00  vlan.dat
    3  drwx         192   Mar 1 1993 01:00:34 +00:00  c2960-lanbasek9-mz.122-55.SE12
    4  -rwx        2229   Mar 1 1993 00:00:58 +00:00  config.text
    5  -rwx        1913   Mar 1 1993 00:00:58 +00:00  private-config.text
    6  -rwx        2072   Mar 1 1993 00:00:58 +00:00  multiple-fs
 1117  -rwx         108   Mar 1 1993 01:02:05 +00:00  info

32514048 bytes total (18982912 bytes free)
Switch#show boot
BOOT path-list      : flash:/c2960-lanbasek9-mz.122-50.SE4/c2960-lanbasek9-mz.122-50.SE4.bin
Config file         : flash:/config.text
Private Config file : flash:/private-config.text
Enable Break        : no
Manual Boot         : no
HELPER path-list    :
Auto upgrade        : yes
Auto upgrade path   :
NVRAM/Config file
      buffer size:   65536
Timeout for Config
          Download:    0 seconds
Config Download
       via DHCP:       disabled (next boot: disabled)
Switch#dir
Directory of flash:/

    2  -rwx         916   Mar 1 1993 00:03:55 +00:00  vlan.dat
    3  drwx         192   Mar 1 1993 01:00:34 +00:00  c2960-lanbasek9-mz.122-55.SE12
    4  -rwx        2229   Mar 1 1993 00:00:58 +00:00  config.text
    5  -rwx        1913   Mar 1 1993 00:00:58 +00:00  private-config.text
    6  -rwx        2072   Mar 1 1993 00:00:58 +00:00  multiple-fs
 1117  -rwx         108   Mar 1 1993 01:02:05 +00:00  info

32514048 bytes total (18982912 bytes free)
Switch#cd c2960-lanbasek9-mz.122-55.SE12
Switch#dir
Directory of flash:/c2960-lanbasek9-mz.122-55.SE12/

  562  -rwx         539   Mar 1 1993 00:56:30 +00:00  info
  563  -rwx     9827106   Mar 1 1993 01:00:34 +00:00  c2960-lanbasek9-mz.122-55.SE12.bin
  564  drwx        4928   Mar 1 1993 01:02:05 +00:00  html

32514048 bytes total (18982912 bytes free)
Switch#
Switch#
Switch#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#$sek9-mz.122-55.SE12/c2960-lanbasek9-mz.122-55.SE12.bin
boot system flash:/ c2960-lanbasek9-mz.122-55.SE12/c2960-lanbasek9-mz.122-55.SE1                    ^2.bin

% Invalid input detected at '^' marker.

Switch(config)#boot system flash:/c2960-lanbasek9-mz.122-55.SE12/c2960-lanbase$
Switch(config)#exit
Switch#sho w
*Mar  1 01:17:01.183: %SYS-5-CONFIG_I: Configured from console by conso
% Type "show ?" for a list of subcommands
Switch#show boot
BOOT path-list      : flash:/c2960-lanbasek9-mz.122-55.SE12/c2960-lanbasek9-mz.122-55.SE12.bin
Config file         : flash:/config.text
Private Config file : flash:/private-config.text
Enable Break        : no
Manual Boot         : no
HELPER path-list    :
Auto upgrade        : yes
Auto upgrade path   :
NVRAM/Config file
      buffer size:   65536
Timeout for Config
          Download:    0 seconds
Config Download
       via DHCP:       disabled (next boot: disabled)

2018年12月20日 星期四

upgrade c2960-lanbasek9-mz.122-58.SE2.bin to WS-C2960-8TC-L

There is difference procedure to upload .bin and .tar extension file in switch flash:

Like for .bin

it just simple steps type
"copy tftp flash:" and then just hit enter button, it will ask you for tftp server ip and Image detail.make sure you use .bin extension

Here is document available on cisco.com for

Switch#
1.

Switch#copy tftp flash:
Address or name of remote host []? 191.1.1.219
Source filename []? c2960-lanbasek9-mz.122-58.SE2.bin
Destination filename [c2960-lanbasek9-mz.122-58.SE2.bin]?
Accessing tftp://191.1.1.219/c2960-lanbasek9-mz.122-58.SE2.bin...
Loading c2960-lanbasek9-mz.122-58.SE2.bin from 191.1.1.219 (via Vlan1): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 11660773 bytes]

11660773 bytes copied in 167.445 secs (69639 bytes/sec)

2.
Switch#dir flash:
Directory of flash:/

  621  -rwx    11660773   Mar 1 1993 01:28:16 +00:00  c2960-lanbasek9-mz.122-58.SE2.bin
    2  drwx         512   Mar 1 1993 00:07:36 +00:00  c2960-lanbase-mz.122-35.SE5

27998208 bytes total (7546880 bytes free)

!--- After you delete the old Cisco IOS image file, there is now !--- over 5 MB of free memory. There is enough room for the upgrade.

3.
Switch#verify flash:c2960-lanbasek9-mz.122-58.SE2.bin
Verified flash:c2960-lanbasek9-mz.122-58.SE2.bin

4.
Switch#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#boot system flash:c2960-lanbasek9-mz.122-58.SE2.bin

Switch(config)#exit
Switch#sho
01:35:18: %SYS-5-CONFIG_I: Configured from console by consol
% Type "show ?" for a list of subcommands

5.
Switch#show boot
BOOT path-list      : flash:c2960-lanbasek9-mz.122-58.SE2.bin
Config file         : flash:/config.text
Private Config file : flash:/private-config.text
Enable Break        : no
Manual Boot         : no
HELPER path-list    :
Auto upgrade        : yes
Auto upgrade path   :
NVRAM/Config file
      buffer size:   65536

6.
Switch#wr
Building configuration...
[OK]
Switch#wr mem
Building configuration...
[OK]

7.

Switch#reload
Proceed with reload? [confirm]


https://www.cisco.com/c/en/us/support/docs/switches/catalyst-3550-series-switches/41541-190.html#concept9

2018年10月28日 星期日

etherchannel and spanning-tree

1. Etherchannel

EtherChannel considerations
info http://packetlife.net/blog/2010/jan/18/etherchannel-considerations/

Hi

I was doing a bit of searching on PAgP & LACP and found this, thought it might come in handy for some. I never realised the commands did what is stated below, must have missed this in the book or had one too many wines at that point 




channel-group [#] mode on (disables PAgP en LACP)
channel-group [#] mode off (disables PAgP en LACP and prevent the ports to form a port-channel)
channel-group [#] mode auto (use PAgP in a passive mode, it will wait until a PAgP packet will be send)
channel-group [#] mode passive (use LACP in a passive mode, it will wait until a PAgP packet will be send)
channel-group [#] mode desirable (use PAgP in an active mode, it will start to send  PAgP packets)
channel-group [#] mode active (use LACP in an active mode, it will start to send  LACP packets)

https://www.jannet.hk/zh-Hant/post/etherchannel-pagp-lacp/#lacp

假設現時有 16 個 Port 在同一個 EtherChannel,由於所有 Port Priority 預設都是 32768,因此系統選擇 Port ID 最小的 8 個 Port 成為 Active Port,其他則成為 Hot Standby。

2. Spanning-tree
info (https://www.jannet.hk/zh-Hant/post/spanning-tree-protocol-stp/

sh spanning-tree