conf t
wr
show ip interface brief
no switchport : L3스우치에서 L2모드가 아닌 L3모드로 사용하겠다
ip routing : L3스위치에서 vlan으로 대역을 나누거나 할때 routing 모드를 사용하겠다
no ip add : 뒤에 IP를 적으면 설정된 아이피를 빼는거죠
스위치 환경설정 삭제
switch#erase startup-config
Erasing the nvram filesystem will remove all configuration files! Continue? [confirm]
[OK]
Erase of nvram: complete
Erasing the nvram filesystem will remove all configuration files! Continue? [confirm]
[OK]
Erase of nvram: complete
Switch#copy flash: tftp:
Source filename [Switch#conf]? c2950-i6q4l2-mz.121-22.EA9.bin
Address or name of remote host []? 172.16.0.2
Destination filename [c2950-i6q4l2-mz.121-22.EA9.bin]? 엔터
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!
3121383 bytes copied in 19.744 secs (158093 bytes/sec)
Source filename [Switch#conf]? c2950-i6q4l2-mz.121-22.EA9.bin
Address or name of remote host []? 172.16.0.2
Destination filename [c2950-i6q4l2-mz.121-22.EA9.bin]? 엔터
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!
3121383 bytes copied in 19.744 secs (158093 bytes/sec)
기존 파일이 다음과 같이 디렉토리 하위에 있는 경우에는 디렉토리명도 함께 지정해 줍니다.
Switch#show flash:
Directory of flash:/
7 drwx 192 Mar 1 1993 00:07:30 +00:00 c3560-ipbase-mz.122-35.SE5
Source filename []? /c3560-ipbase-mz.122-35.SE5/c3560-ipbase-mz.122-35.SE5.bin
Flash Memory의 용량을 확인합니다.Switch#show flash:
Directory of flash:/
Directory of flash:/
2 -rwx 269 Jan 01 1970 00:01:27 +00:00 env_vars
5 -rwx 109 Mar 01 1993 00:01:15 +00:00 info
7 -rwx 3121383 Mar 01 1993 00:02:39 +00:00 c2950-i6q4l2-mz.121-22.EA9.bin
8 drwx 4096 Mar 01 1993 00:03:13 +00:00 html
414 -rwx 109 Mar 01 1993 00:03:49 +00:00 info.ver
5 -rwx 109 Mar 01 1993 00:01:15 +00:00 info
7 -rwx 3121383 Mar 01 1993 00:02:39 +00:00 c2950-i6q4l2-mz.121-22.EA9.bin
8 drwx 4096 Mar 01 1993 00:03:13 +00:00 html
414 -rwx 109 Mar 01 1993 00:03:49 +00:00 info.ver
7741440 bytes total (2822144 bytes free)
만약에 용량이 부족하다면 기존 IOS를 삭제합니다. (삭제 후 IOS를 업로드하기 전까지 전원이 꺼지거나 reload하면 안됩니다.)Switch#delete flash:c2950-i6q4l2-mz.121-19.EA1a.bin
Delete filename [c2950-i6q4l2-mz.121-22.EA8.bin]? 엔터
Delete flash:c2950-i6q4l2-mz.121-22.EA8.bin? [confirm] 엔터
Delete flash:c2950-i6q4l2-mz.121-22.EA8.bin? [confirm] 엔터
디렉토리를 삭제할 경우 다음과 같이 입력한다.
Switch#delete /r /f flash:c2970-lanbase-mz.122-25.SEB1
참고 : 셋팅을 다시 하려면 전부 삭제 합니다.
파일 전부 삭제 후 ISO 업로드 하고 다음과 같이 vlan정보 삭제하고 리로드
Switch#del vlan.dat
Delete filename [vlan.dat]? 엔터
Delete flash:vlan.dat? [confirm] 엔터
Delete flash:vlan.dat? [confirm] 엔터
Switch#clear startup-config
Erasing the nvram filesystem will remove all configuration files! Continue? [confirm] 엔터
Erasing the nvram filesystem will remove all configuration files! Continue? [confirm] 엔터
Switch#reload
System configuration has been modified. Save? [yes/no]: no
Proceed with reload? [confirm] 엔터
처리후..
Proceed with reload? [confirm] 엔터
처리후..
Would you like to enter the initial configuration dialog? [yes/no]: no
새로운 IOS를 업로드 합니다.
Switch#copy tftp: flash:
Address or name of remote host []? 172.16.0.2
Source filename []? c2950-i6q4l2-mz.121-22.EA10a.bin
Destination filename [c2950-i6q4l2-mz.121-22.EA10a.bin]? 엔터
Accessing tftp://192.168.0.2/c2950-i6q4l2-mz.121-22.EA10a.bin...
Loading c2950-i6q4l2-mz.121-22.EA10a.bin from 192.168.0.2 (via Vlan1): !!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!
[OK - 3129931 bytes]
Address or name of remote host []? 172.16.0.2
Source filename []? c2950-i6q4l2-mz.121-22.EA10a.bin
Destination filename [c2950-i6q4l2-mz.121-22.EA10a.bin]? 엔터
Accessing tftp://192.168.0.2/c2950-i6q4l2-mz.121-22.EA10a.bin...
Loading c2950-i6q4l2-mz.121-22.EA10a.bin from 192.168.0.2 (via Vlan1): !!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!
[OK - 3129931 bytes]
3129931 bytes copied in 59.356 secs (52732 bytes/sec)
boot IOS이미지를 지정Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#boot system flash:/c2950-i6q4l2-mz.121-22.EA11.bin
Switch(config)#end
Switch#
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#boot system flash:/c2950-i6q4l2-mz.121-22.EA11.bin
Switch(config)#end
Switch#
※ asdm 이미지 지정은 다음과 같이 합니다.
ciscoasa# conf t
ciscoasa(config)# asdm image flash:/asdm-714.bin
ciscoasa(config)# asdm image flash:/asdm-714.bin
ciscoasa(config)# end
ciscoasa# show asdm image //asdm 이미지 지정 확인 명령어
1저장 후 재부팅 합니다.Switch#wr
Building configuration...
[OK]
Switch#reload
Proceed with reload? [confirm] 엔터
Version을 확인합니다.Switch#sh version
Cisco Internetwork Operating System Software
IOS (tm) C2950 Software (C2950-I6Q4L2-M), Version 12.1(22)EA10a, RELEASE SOFTWARE (fc
2)
Copyright (c) 1986-2007 by cisco Systems, Inc.
Compiled Tue 24-Jul-07 17:13 by antonino
Image text-base: 0x80010000, data-base: 0x80570000
Cisco Internetwork Operating System Software
IOS (tm) C2950 Software (C2950-I6Q4L2-M), Version 12.1(22)EA10a, RELEASE SOFTWARE (fc
2)
Copyright (c) 1986-2007 by cisco Systems, Inc.
Compiled Tue 24-Jul-07 17:13 by antonino
Image text-base: 0x80010000, data-base: 0x80570000
ROM: Bootstrap program is C2950 boot loader
Switch uptime is 0 minutes
System returned to ROM by power-on
System image file is "flash:/c2950-i6q4l2-mz.121-22.EA10a.bin"
System returned to ROM by power-on
System image file is "flash:/c2950-i6q4l2-mz.121-22.EA10a.bin"
cisco WS-C2950-24 (RC32300) processor (revision S0) with 20957K bytes of memory.
Processor board ID FOC1125Z00N
Last reset from system-reset
Running Standard Image
24 FastEthernet/IEEE 802.3 interface(s)
Processor board ID FOC1125Z00N
Last reset from system-reset
Running Standard Image
24 FastEthernet/IEEE 802.3 interface(s)
32K bytes of flash-simulated non-volatile configuration memory.
Base ethernet MAC Address: 00:1B:0D:79:E9:C0
Motherboard assembly number: 73-5781-14
Power supply part number: 34-0965-01
--More--
00:00:53: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed sMotherboard
serial number: FOC11241QLW
Power supply serial number: PHI1021C1BU
Model revision number: S0
Motherboard revision number: A0
Model number: WS-C2950-24
System serial number: FOC1125Z00N
Configuration register is 0xF
Base ethernet MAC Address: 00:1B:0D:79:E9:C0
Motherboard assembly number: 73-5781-14
Power supply part number: 34-0965-01
--More--
00:00:53: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed sMotherboard
serial number: FOC11241QLW
Power supply serial number: PHI1021C1BU
Model revision number: S0
Motherboard revision number: A0
Model number: WS-C2950-24
System serial number: FOC1125Z00N
Configuration register is 0xF
[출처] 시스코장비 IOS 업그레이드|작성자 smilemoon
댓글 없음:
댓글 쓰기