giovedì 21 novembre 2013

Upgrade IOS 3750 stack

Upgrade IOS  3750 stack 
from old ios c3750-ipbase-mz.122-35.SE5  to new IOS c3750-ipbasek9-mz.122-55.SE5.bin

Copy new IOS from my laptop 10.0.0.1

RxxxBBBSEC01#copy tftp flash
Address or name of remote host []? 10.0.0.1
Source filename []? c3750-ipbasek9-mz.122-55.SE5.bin
Destination filename [c3750-ipbasek9-mz.122-55.SE5.bin]?
Accessing tftp://10.0.0.1/c3750-ipbasek9-mz.122-55.SE5.bin...
Loading c3750-ipbasek9-mz.122-55.SE5.bin from 10.0.0.1 (via GigabitEthernet1/0/6): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!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!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!
[OK - 12098310 bytes]
12098310 bytes copied in 247.287 secs (48924 bytes/sec)

l'IOS è stato copiato sullo switch 1


RxxxBBBSEC01#show flash
Directory of flash:/
    2  -rwx       80395  Oct 29 2013 15:57:56 +01:00  config.text
    3  -rwx        1996  Jun 23 2013 17:16:29 +02:00  vlan.dat
    4  -rwx        5144  Oct 29 2013 15:57:56 +01:00  multiple-fs
    5  -rwx           5  Oct 29 2013 15:57:56 +01:00  private-config.text
    6  -rwx    12098310  Nov 12 2013 11:31:01 +01:00  c3750-ipbasek9-mz.122-55.SE5.bin
    7  drwx         192   Mar 1 1993 01:09:25 +01:00  c3750-ipbase-mz.122-35.SE5

ora deve essere copiato sullo switch 2


RxxxBBBSEC01#dir flash2:
Directory of flash2:/
    2  -rwx       80395  Oct 29 2013 15:58:02 +01:00  config.text
    3  -rwx           5  Oct 29 2013 15:58:02 +01:00  private-config.text
    4  -rwx        1996  Jun 23 2013 17:16:33 +02:00  vlan.dat
    5  -rwx        5144  May 17 2013 01:38:52 +02:00  multiple-fs
    7  drwx         192   Mar 1 1993 01:10:15 +01:00  c3750-ipbase-mz.122-35.SE5


queste sono le attuali BOOT VAR DEVONO ESSERE CAMBIATE


RxxxBBBSEC01#sh boot
BOOT path-list      : flash:c3750-ipbase-mz.122-35.SE5/c3750-ipbase-mz.122-35.SE5.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   :
-------------------
Switch 2
-------------------
BOOT path-list      : flash:c3750-ipbase-mz.122-35.SE5/c3750-ipbase-mz.122-35.SE5.bin
Config file         : flash:/config.text
Private Config file : flash:/private-config.text
Enable Break        : no
Manual Boot         : no
HELPER path-list    :
Auto upgrade        : no
Auto upgrade path   :



RxxxBBBSEC01#dir flash:
Directory of flash:/
    2  -rwx       80395  Oct 29 2013 15:57:56 +01:00  config.text
    3  -rwx        1996  Jun 23 2013 17:16:29 +02:00  vlan.dat
    4  -rwx        5144  Oct 29 2013 15:57:56 +01:00  multiple-fs
    5  -rwx           5  Oct 29 2013 15:57:56 +01:00  private-config.text
    6  -rwx    12098310  Nov 12 2013 11:31:01 +01:00  c3750-ipbasek9-mz.122-55.SE5.bin
    7  drwx         192   Mar 1 1993 01:09:25 +01:00  c3750-ipbase-mz.122-35.SE5
32514048 bytes total (10698752 bytes free)



RxxxBBBSEC01#dir flash2:                    
Directory of flash2:/
    2  -rwx       80395  Oct 29 2013 15:58:02 +01:00  config.text
    3  -rwx           5  Oct 29 2013 15:58:02 +01:00  private-config.text
    4  -rwx        1996  Jun 23 2013 17:16:33 +02:00  vlan.dat
    5  -rwx        5144  May 17 2013 01:38:52 +02:00  multiple-fs
    6  -rwx    12098310  Nov 12 2013 14:52:37 +01:00  c3750-ipbasek9-mz.122-55.SE5.bin
    7  drwx         192   Mar 1 1993 01:10:15 +01:00  c3750-ipbase-mz.122-35.SE5



RxxxBBBSEC01(config)#boot system flash:/c3750-ipbasek9-mz.122-55.SE5.bin



RxxxBBBSEC01#show boot
BOOT path-list      : flash:/c3750-ipbasek9-mz.122-55.SE5.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   :
-------------------
Switch 2
-------------------
BOOT path-list      : flash:/c3750-ipbasek9-mz.122-55.SE5.bin
Config file         : flash:/config.text
Private Config file : flash:/private-config.text
Enable Break        : no
Manual Boot         : no
HELPER path-list    :
Auto upgrade        : no
Auto upgrade path   :

RxxxBBBSEC01#dir flash:
Directory of flash:/
    2  -rwx       80395  Oct 29 2013 15:57:56 +01:00  config.text
    3  -rwx        1996  Jun 23 2013 17:16:29 +02:00  vlan.dat
    4  -rwx        5144  Oct 29 2013 15:57:56 +01:00  multiple-fs
    5  -rwx           5  Oct 29 2013 15:57:56 +01:00  private-config.text
    6  -rwx    12098310  Nov 12 2013 11:31:01 +01:00  c3750-ipbasek9-mz.122-55.SE5.bin
    7  drwx         192   Mar 1 1993 01:09:25 +01:00  c3750-ipbase-mz.122-35.SE5
32514048 bytes total (10698752 bytes free)

RxxxBBBSEC01#dir flash2:
Directory of flash2:/
    2  -rwx       80395  Oct 29 2013 15:58:02 +01:00  config.text
    3  -rwx           5  Oct 29 2013 15:58:02 +01:00  private-config.text
    4  -rwx        1996  Jun 23 2013 17:16:33 +02:00  vlan.dat
    5  -rwx        5144  May 17 2013 01:38:52 +02:00  multiple-fs
    6  -rwx    12098310  Nov 12 2013 14:52:37 +01:00  c3750-ipbasek9-mz.122-55.SE5.bin
    7  drwx         192   Mar 1 1993 01:10:15 +01:00  c3750-ipbase-mz.122-35.SE5
32514048 bytes total (10698752 bytes free)


ip local policy route-map" vs "ip policy route-map"


one is in global configuration mode, another is in interface configuration mode.

ip local policy route-map

The "ip local policy route-map" command is used to policy-route traffic generated locally on the router. For example, if you are logged into the router itself executing a ping, the local policy would apply. The same would apply for GRE / IPSec / Telnet traffic etc. coming from the router itself.

ip policy route-map

The "ip policy route-map" looks at traffic entering an interface and policy-routes accordingly. This traffic would be external, transiting the router. Hope that clears your first question.