R1#erase startup-config
R1#reload
R1#copy running_config startup-config
show running-config | section/incloud/excloud/begin
erase startup-config 删除baiNVRAM中的配置 好象du是这个
>enable
#config terminal
#hostname Router-A
#line console 0
#password cisco
#login
#line vty 0 15
#password cisco
#login
#enable secret cisco
#service password-encryption
#banner motd "Welcome,haha!"
>enable
#show ip interface brief
#interface gigabitEthernet 0/0
#ip address 192.168.1.1 255.255.255.0
#no shut
DCE
#show controllers
#clock rate 56000
#bandwidth 64
R1#show ip interface brief
R1#show ip route
R1#show ip protocols
R1#terminal history size 300
R1#show history
R1(config)# interface loopback 0
R1(config-if)# ip address 10.0.0.1 255.255.255.0
R1(config-if)# exit
serial
show controllers serial 0/0/0 #查看DTE/DCE,DCE设备,需要配置时钟频率
interface serial 0/0/0
clock rate 64000
show running-config
Rip
route rip
version 2
network 172.16.1.0
network 192.168.1.0
hostname R1
enable secret class
service password-encryption
security passwords min-length 5
login block-for 180 attempts 3 within 60
banner motd "Unauthorized access to this device is prohibited!"
line console 0
password cisco
exec-timeout 3
login
exit
line vty 0 4
password cisco
exec-timeout 3
login
exit
interface gigabitethernet 0/0/0
description Link to LAN1
ip address 192.168.1.1 255.255.255.0
no shutdown
exit
interface serial 0/0/0
description Link to R2
ip address 192.168.2.1 255.255.255.0
clock rate 128000
no shutdown
exit