Uma porçãooooo de batatas fritas! SEMPRE!!!!!
Aqui você vai se sentir à vonté... FREE de fato!
Vou expressar muita coisa que penso... e até as que eu nem vou pensar antes de postar...
Como uma conversa de bar...
Como uma conversa não vai?! COMO PAPAS FRITAS!!!!!!!!
PAPAS?!?! Hummmm eu não tenho PAPAS na língua......
So... BEWARE OF THE BLOG!!!

Sunday, February 13, 2011

-:- SWITCHING BASICS -:-

Switching Password Recovery
1. Take the power cable off the switch
2. Plug the power cable back on the switch
3. Hold down the power button till it blinks the amber light twice
4. Release the power button


Select the command flash_init
SW_3>
Boot Sector Filesystem (bs) installed, fsid: 2
Base ethernet MAC Address: 18:ef:63:8b:54:80
Xmodem file system is available.
The password-recovery mechanism is enabled.

The system has been interrupted prior to initializing the
flash filesystem. The following commands will initialize
the flash filesystem, and finish loading the operating
system software:

flash_init
boot


switch: flash_init
Initializing Flash...
flashfs[0]: 528 files, 19 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 32514048
flashfs[0]: Bytes used: 10418688
flashfs[0]: Bytes available: 22095360
flashfs[0]: flashfs fsck took 11 seconds.
...done Initializing Flash.


Rename the config.text file
switch: rename flash:config.text flash:config.old


Check the files you have on the flash memory
switch: dir flash: OR sh flash:
Directory of flash:/

3 -rwx 2536 config.old
4 -rwx 1902 config.txt
5 -rwx 1915 private-config.text
6 drwx 192 c2960-lanbasek9-mz.122-44.SE6
548 -rwx 3096 multiple-fs

22095360 bytes available (10418688 bytes used)


Reboot your switch
boot command


Check your flash memory
Switch#dir flash:
OR sh flash:
Directory of flash:/

3 -rwx 2536 Mar 1 1993 00:31:53 +00:00 config.text
4 -rwx 1902 Mar 1 1993 00:00:52 +00:00 config.txt
5 -rwx 1915 Mar 1 1993 00:31:53 +00:00 private-config.text
6 drwx 192 Mar 1 1993 00:12:23 +00:00 c2960-lanbasek9-mz.122-44.
SE6
548 -rwx 3096 Mar 1 1993 00:31:53 +00:00 multiple-fs

32514048 bytes total (22095360 bytes free)


Copy the config file
Switch#copy flash:config.text running-config
Destination filename [running-config]?
% Generating 1024 bit RSA keys, keys will be non-exportable...[OK]

*Mar 1 00:03:23.910: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan10, ch
anged state to down
*Mar 1 00:03:23.910: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan100, c
hanged state to down
*Mar 1 00:03:25.520: %SSH-5-ENABLED: SSH 1.99 has been enabled
2536 bytes copied in 4.916 secs (516 bytes/sec)
SW_3#
*Mar 1 00:03:26.586: %PKI-6-AUTOSAVE: Running configuration saved to NVRAM

Delete the pre-existing system configuration
SW_3#erase startup-config
Erasing the nvram filesystem will remove all configuration files! Continue? [con
firm]
[OK]
Erase of nvram: complete

Delete the pre-existing VLAN configuration
SW_3#delete flash:vlan.dat
Delete filename [vlan.dat]?
Delete flash:vlan.dat? [confirm]

Start biulding your configurations
SW3(config)#hostname SW_3
SW_3(config)#username SW3 password cisco OR username SW3 privilege 15 secret cisco
SW_3(config)#line con 0
SW_3(config-line)#login local
SW_3(config-line)#loggin synchronous
SW_3(config)#enable secret class
SW_3(config)#line vty 0 15
SW_3(config-line)#password cisco
SW_3(config-line)#login local
SW_3(config-line)#transport input ssh
SW_3(config-line)#no domain-lookup
SW_3(config-line)#exit

Setting Banners
SW_3(config)#banner login "WARNING:PRIVATE NETWORK - AUTHORIZED ACCESS ONLY"
SW_3(config)#banner motd "TODAY IS GONNA BE THE DAY!"

Setting Interfaces
SW_3(config)#interface vlan 1
SW_3(config-if)#ip address 10.0.0.1 255.255.255.0
SW_3(config-if)#no shutdown

Setting Default Gateway
SW_3(config)#ip default-gateway 10.0.0.254

Restart the Swtich
SW_3#copy running-config startup-config OR wr
Destination filename [startup-config]?
Building configuration...
[OK]

SW_3#reload
Proceed with reload? [confirm]

*Mar 1 00:57:01.855: %SYS-5-RELOAD: Reload requested by console. Reload Reason:
Reload command.
Boot Sector Filesystem (bs) installed, fsid: 2
Base ethernet MAC Address: 18:ef:63:8b:54:80
Xmodem file system is available.
The password-recovery mechanism is enabled.
Initializing Flash...

...

Checking your Switch Configuration
Switch#dir flash: OR
Switch#sh flash:

Setting the connection to the hhtp protocol
SW_3(config)#ip http auth enable
SW_3(config)#ip http port 80

Create an Administrative VLAN
SW_3#vlan database
% Warning: It is recommended to configure VLAN from config mode,
as VLAN database mode is being deprecated. Please consult user
documentation for configuring VTP/VLAN in config mode.

SW_3(vlan)#vlan 199 name Engineering
VLAN 199 modified:
Name: Engineering
SW_3(vlan)#exit
APPLY completed.
Exiting....

Check the VLAN you have created
SW_3#sh vlan

VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/11, Fa0/12
Fa0/13, Fa0/14, Fa0/15, Fa0/16
Fa0/17, Fa0/18, Fa0/19, Fa0/20
Fa0/21, Fa0/22, Fa0/23, Fa0/24
Gi0/1, Gi0/2
199 Engineering active
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup

VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet 100001 1500 - - - - - 0 0
199 enet 100199 1500 - - - - - 0 0
1002 fddi 101002 1500 - - - - - 0 0
1003 tr 101003 1500 - - - - - 0 0
1004 fdnet 101004 1500 - - - ieee - 0 0

VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1005 trnet 101005 1500 - - - ibm - 0 0

Remote SPAN VLANs
------------------------------------------------------------------------------


Primary Secondary Type Ports
------- --------- ----------------- ------------------------------------------






No comments:

Post a Comment