0% found this document useful (0 votes)
24 views3 pages

Switch Commands

This document provides instructions for resetting a Cisco switch to factory default settings, creating VLANs for different networks, assigning IP addresses to VLAN interfaces, enabling ports for VLANs, and enabling SSH and telnet access.

Uploaded by

mogilisrikanth
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views3 pages

Switch Commands

This document provides instructions for resetting a Cisco switch to factory default settings, creating VLANs for different networks, assigning IP addresses to VLAN interfaces, enabling ports for VLANs, and enabling SSH and telnet access.

Uploaded by

mogilisrikanth
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

Install Hypertem

commands for ciso switch:


-------------------

How to reset a Cisco WS-C3750G-24PS-S switch back to factory default settings.

default password for switch is 'cisco'

to reset switch:

remove power cable and insert it back\


now do the below commands in switch mode:
> flash_init
> dir flash:/
> delete flash:config.txt
> delete flash:<remove all the files from flash_init exclude software file .mz
or .bin and .backupfiles>
>boot

VLAN Creation TechLAN:


---------------
> configure terminal
> vlan <vland id for techLAN> exmp: > vlan 270
> name <vlanname for Tech LAN> exmp:> name VLAN270
> end
> copy running-config startup-config

VLAN Creation for MUX:


---------------
> configure terminal
> vlan <vland id for MUX> exmp: > vlan 271
> name <vlanname for MUX LAN> exmp:> name VLAN271
> end
> copy running-config startup-config

VLAN Creation Management:


---------------
> configure terminal
> vlan <vland id for Management> exmp: > vlan 272
> name <vlanname for Management> exmp:> name VLAN272
> end
> copy running-config startup-config

VLAN Creation Management:


---------------
> configure terminal
> vlan <vland id for Management> exmp: > vlan 272
> name <vlanname for Management> exmp:> name VLAN272
> end
> copy running-config startup-config
vlan ip/switch ip assinment
-----------------------------------
> configure terminal

>interface vlan 270


>ip address 10.102.20.58 255.255.255.0
>end

Port enablement for VLAN /Interface


======================================
> configure terminal
> interface GigabitEthernet1/0/1
> switchport access vlan 270 (if it is a tech LAN swithc, we need to provide the
techlan)
> switchport mode access
> end> copy running-config startup-config

Enabling swithport for OA port/chassis connection port:


---------------------------------------------------------
> configure terminal
> interface GigabitEthernet1/0/4
> switchport access vlan <management VLAN ID>
> switchport mode access
> end> copy running-config startup-config

Telnet enable for switch:


line con 0
line aux 0
line vty 0 15

transport input telnet ssh


transport output telnet ssh

SSH Enable:
Router(config)#hostname <host name>
Router(config)#ip domain-name <Domain Name>
Router(config)#crypto key generate rsa
Router(config)#ip ssh pubkey-chain
Router(conf-ssh-pubkey)#username <user name>
Router(conf-ssh-pubkey-user)#key-string
Router(conf-ssh-pubkey-data)#key-hash ssh-rsa <key ID>
Router(conf-ssh-pubkey-data)#end

Run one of below if you are unable to access


****************************************
ip default-gateway 10.102.20.60
ip classless
ip route 0.0.0.0 0.0.0.0 10.102.20.57
ip route 0.0.0.0 0.0.0.0 10.102.20.60
ip http server

ip forward-protocol nd
ip route 0.0.0.0 0.0.0.0 10.63.64.5
ip route 10.61.0.96 255.255.255.248 10.61.1.186
ip route 10.61.0.96 255.255.255.248 10.61.1.190

You might also like