第一章_检验路由器的启动过程

发布时间 2023-07-18 11:56:54作者: Evan-whc

第一章_检验路由器的启动过程

Router# show version
show version命令的输出内容包括:

  • IOS版本
  • ROM bootstrap程序
  • IOS位置
  • CPU和内存大小
  • 接口
  • NVRAM大小
  • 闪存大小
  • 配置寄存器信息
基本路由器配置

配置路由器时,需要执行一些基本任务,包括:

  • 命名路由器
  • 设置口令
  • 配置接口
  • 配置标语
  • 保存路由器更改
  • 检验基本配置和路由器操作
进入特权模式:
Router>enable
Router#
进入全局配置模式:

Router# configure terminal

命名路由器:

Router(config)# hostname name

设置口令:
Router(config)#enable secret password
Router(config)# line console 0
Router(config-line)# password password
Router(config-line)# login
Router(config)#line vty 0 4
Router(config-line)# password password
Router(config-line)# login
配置当天消息标识:

Router(config)# banner motd # message #

配置接口:
Router(config)# interface type number
Router(config-if)# ip address address mask
Router(config-if)# description description
Router(config-if)# no shutdown
保存路由器更改:

Router# copy running-config startup-config

检查show命令输出:
Router# show running-config
Router# show ip route
Router# show ip interface brief
Router# show interfaces