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
No comments:
Post a Comment