Lab 1: Basic commands.
-----
| R1 |
-----
f0/0 │ .254
│
│
│ 192.168.10.0/24
│
.1 │
__ _
[__]|=|
/++/|_|
PC 1
! Privilege mode
Router> enable
Router#
! Go back user mode
Router#disable
Router>
! Config mode
Router#conf ter
Router(config)#exit
Router#
! Interface mode
Router(config)# interface f0/0
Router(config-if)#exit
Router#(config)#exit
Router#
! Show all interface
show ip interface brief
! Go to interface f0/0
Router(config)# interface f0/0
! Enable interface
Router(config-if)# no shutdown
! Disable interface
Router(config-if)# shutdown
! Assign ip
Router(config-if)#ip add 192.168.10.254 255.255.255.0
Router#(config)#exit
Router#
! Change ip
Router(config-if)#ip add 192.168.10.253 255.255.255.0
Router#(config)#exit
Router#
! Delete ip
Router(config-if)#no ip add 192.168.10.253 255.255.255.0
Router#(config)#exit
Router#
! Another way to delete ip
Router(config-if)#no ip add
Router#(config)#exit
Router#
! Test Connection
Router#ping 192.168.10.1
! Hostname
Router(config)#hostname R1
R1(config)#
! Show Version
R1# show version
! Logging Synchronous
R1(config)# line console 0
R1(config-line)# logging synchronous
R1(config-line)#
! Exec-timeout of sessions
R1(config)# line console 0
R1(config-line)# exec-timeout 0 10 ! 0: minute , 10 : second
R1(config-line)# exec-timeout 0 0 ! --> disable exec-timeout
! Set description on interface
R1(config)#inter f0/0
R1(config-if)#description Connect to PCA
R1(config-if)#end
! Show description
R1#show interfaces description
! Show mac of interface
R1#show inter f0/0 | inc bia
! Show running-config
R1# show run
! Show startup-config
R1# show startup
! Save Config
R1# copy run start
! Save Config
R1# wr
! Erase Config
R1# erase startup-config