当前位置:首页 » 《随便一记》 » 正文

思科路由器的基本配置_永强君的博客

2 人参与  2022年04月05日 09:44  分类 : 《随便一记》  评论

点击全文阅读


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

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)#


点击全文阅读


本文链接:http://zhangshiyu.com/post/37348.html

配置  接口  路由器  
<< 上一篇 下一篇 >>

  • 评论(0)
  • 赞助本站

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

关于我们 | 我要投稿 | 免责申明

Copyright © 2020-2022 ZhangShiYu.com Rights Reserved.豫ICP备2022013469号-1