Wednesday, October 1, 2014

Cisco Switch Configuration

Unknown | 10:04 AM

Basic Configuration on cisco Switch Series

### Set hostname on switch###

SW(config)#hostname SW

### show IP and interface###

SW#show ip int brief

### Set IP on switch###

(IP on switch is set on interface VLAN 1)

SW(config)#int vlan 1
Switch(config-if)#ip address 10.10.10.1 255.255.255.0
Switch(config-if)#description IT Dep
Switch(config-if)#no sh


#### Enable password to telnet on switch#####

(Mean that we enable to login to switch by telnet)

Switch(config)#line vty 0 15
Switch(config-line)#password cisco
Switch(config-line)#login
Switch(config-line)#privilege level 15

#### Enable password to console####

(Mean that we enable to login to switch by console)
R1(config)#line console 0
R1(config-line)#password cisco 
R1(config-line)#login
R1(config-line)#privilege level 15

#### Save configuration####
R1(config)#copy running-config startup-config
Or
R1(config)#write memory
Or
R1(config)#wr


Cisco Router Configuration

Unknown | 9:59 AM

Basic configuration on cisco router

#### Show IP and Interface####
R1#show ip interface brief

#### Set Router Hostname####

R1(Config)#hostname R1

####Set Password for Privilege mode####
R1(config)#enable password Your_Pass ##(Clear text password so anyone can see.)

or

R1(config)#enable secret Your_Pass (Encrypt your password)

### To encrypt all your password###

R1(config)# service password-encryption

###Enable password to telnet####

(Mean that we enable to login to router by telnet)

R1(config)#line vty 0 15  #(max users access 16)

R1(config)#password 123

R1(config)#exec-timeout 5 0
R1(config)#privilege level 15  #(Set level for user have right to do sth)
R1(config)#login

#### Enable password to console####

(Mean that we enable to login to router by console)
R1(config)#line console 0
R1(config-line)#password cisco
R1(config-line)#login
R1(config-line)#privilege level 15

##### set IP address on Ethernet interface#####
R1(config)#int f0/1
R1(config-if)#ip address 1.1.1.1 255.255.255.0
R1(config-if)#description LAN
R1(config-if)#no shutdown

##### set IP address on Gigabit interface#####
R1(config)#int gigabitEthernet 0/1
R1(config-if)#ip address 1.1.1.1 255.255.255.0
R1(config-if)#description LAN
R1(config-if)#no shutdown

#### Save configuration####
R1(config)#copy running-config startup-config
Or
R1(config)#write memory
Or
R1(config)#wr

Back to top

networkingandsystem © 2014

Published By Nget Phanny | Designed By IT4444