思科路由器的基本配置

不说废话,直接上命令行。

1.配置路由器的主机名

Router>
  Router>enable//进入特权模式
  Router#conf t//进入全局配置模式
  Router(config)#hostname R1//配置路由器的主机名为R1
  R1(config)#

2.配置路由器的密码

  路由器的密码有加密和不加密两种,密文密码优先于明文密码

  R1(config)#enable password hyq666     //配置明文密码为hyq666
  R1(config)#enable secret hyq6666      //配置密文密码为hyq6666
  R1(config)#service password-encryption //加密明文密码
  R1(config)#

3.配置以太网接口IP地址

  R1(config)#interface fa 0/0                    //进入fa 0/0接口
  R1(config-if)#no shutdown                    //开启接口
  R1(config-if)#ip address 192.168.1.1 255.255.255.0//配置接口IP地址

4.设置登录提示信息

  R1(config)#banner motd*   //定义标语结束字符为*
  Authorized access only!     //输入标语
  *                       //输入结束字符*,退出标语编辑

5.对串口进行描述

  R1(config)#int s0/0/0                    //进入串口s0/0/0
  R1(config-if)#no shutdown                //开启接口
  R1(config-if)#description This is a serial por   //对接口进行描述
  R1(config-if)#

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
THE END
分享
二维码
< <上一篇

)">
下一篇>>