• Cisco基本命令配置


    实验一 路由器的基本命令操作

    1 实验目标

    ü 熟悉路由器的命令行操作

    ü 能够使用命令行帮助

    ü 能够查看路由器接口信息

    ü 能够产看路由器配置信息

    ü 能够配置以太网接口

    ü 能够配置广域网接口

    ü 能够设置路由器安全

    ü 能够远程telnet到路由器

    ü 能够将配置存储在NVRAM

    2 试验要求

    1. 能够使用帮助

    2. 路由器名:将Router0的hostname设置自己的名字拼音

    3. 设置enable password为cisco1,secret为cisco2,vty为cisco3,并要求所有密码都加密。

    4. 设置控制台口令 line console 0

    5. 配置以太网口的IP为192.168.0.1

    6. 设置计算机的地址 192.168.0.2

    7. 按照下图设置Router0和Router的串口Ip地址,时钟频率为64000

    8. 查看串口是否是DCE

    9. 保存配置

    10. 测试Router0到PC0的连通性。

    11. 测试到路由器的Telnet

    12. 将配置好的拓扑保存,以自己的名字命名文件 比如 yangwj-路由器基本命令操作

    2.1 试验拓扑

    3 实验过程:

    3.1 在PC0上

    3.2 在Router0上

    Router>? 输入?,可以看到所有在该提示符下可用的命令

    Exec commands:

    <1-99> Session number to resume

    connect Open a terminal connection

    disconnect Disconnect an existing network connection

    enable Turn on privileged commands

    exit Exit from the EXEC

    ipv6 ipv6

    logout Exit from the EXEC

    ping Send echo messages

    resume Resume an active network connection

    show Show running system information

    ssh Open a secure shell client connection

    telnet Open a telnet connection

    terminal Set terminal line parameters

    traceroute Trace route to destination

    Router>

    Router>e? 输入命令的一部分,在输入?可以看到可用的命令

    enable exit

    Router>e

    Router>

    Router>en 输入en 按tab键自动补全命令

    Router>enable

    Router>enable 进入特权模式

    Router#show interfaces ? 使用?查看命令后面可用参数

    Ethernet IEEE 802.3

    FastEthernet FastEthernet IEEE 802.3

    GigabitEthernet GigabitEthernet IEEE 802.3z

    Loopback Loopback interface

    Serial Serial

    <cr> <cr>代表后面不用参数

    Router#show interfaces 查看路由器的所有接口

    Router#show interfaces fastEthernet 0/0 查看第0个模块的第0个快速以太网接口

    Router#show flash:  查看路由的操作系统

    Router#show version 查看操作系统版本

    Router#config terminal  进入全局配置模式

    Enter configuration commands, one per line. End with CNTL/Z.

    Router(config)#hostname yangwj 更改路由器名称

    yangwj(config)#line vty 0 4

    yangwj(config-line)#password cisco3 设置Telnet密码

    yangwj(config-line)#exit

    yangwj(config)#line console 0 配置控制台连接密码

    yangwj(config-line)#password aaa

    yangwj(config-line)#exit

    yangwj(config)#enable password cisco1 设置特权密码

    yangwj(config)#enable secret cisco2 设置加密的特权密码,不加密的特权密码失效

    yangwj(config)#interface fastEthernet 0/0

    yangwj(config-if)#ip address 192.168.0.1 255.255.255.0 配置接口Ip地址和子网掩码

    yangwj(config-if)#no shutdown 启用接口

    yangwj(config-if)#exit

    yangwj#show controllers serial 2/0 查看串口是否是DCE

    yangwj(config)#int serial 2/0

    yangwj(config-if)#clock rate 64000 配置DCE的时钟频率

    yangwj(config-if)#ip address 192.168.1.1 255.255.255.0

    yangwj(config-if)#no shutdown

    yangwj#copy running-config startup-config  保存当前配置到NVRAM

    Destination filename [startup-config]?

    Building configuration...

    [OK]

    yangwj#show running-config 查看当前配置

    yangwj#show startup-config 查看当前配置

    3.3 在Route1上

    Continue with configuration dialog? [yes/no]: n 提示是否进入配置模式

    Press RETURN to get started!

    Router>en

    Router#configure t

    Router(config)#interface serial 2/0

    Router(config-if)#ip address 192.168.1.2 255.255.255.0

    Router(config-if)#no shutdown 你会看到串口两端同时启用才能同时处于UP状态

    Router(config-if)#exit

    Router#ping 192.168.1.1 测试到Router0的连接

    3.4 在PC0上Telnet到Router0

    PC>telnet 192.168.0.1 在PC上远程配置Router0

    Password: 输入VTY密码

    yangwj>en 输入特权密码

    Password:

    yangwj# 进入特权模式

    查看路由器的路由

    试验说明

    做此实验目的之一在于帮助同学开始对工具的使用和对基本命令的配置,其二是为了以此来提高对学习的兴趣,当然如果说要做更多实验有些不妥,以后多数实验配置我都会在个人博客上更新,一是比较方便。再是已经习惯,形成了一种个人生活笔记。最后还是希望大家多多努力认真的学习,在这里我将这个实验构架打包,可以直接使用packet打开继续用,但有点需要注明:低版本的软件不能打开这个6.0版本所搭建出来的网络图。个人博客http://www.cnblogs.com/ywj2013/

    [attach]763[/attach]

  • 相关阅读:
    洛谷 P2969 [USACO09DEC]音符Music Notes
    洛谷 P2646 数数zzy
    洛谷 P1605 迷宫
    洛谷 P1157 组合的输出
    洛谷 P1449 后缀表达式
    洛谷 P1205 [USACO1.2]方块转换 Transformations
    洛谷 P1599 结算日
    洛谷 P2909 [USACO08OPEN]牛的车Cow Cars
    洛谷 P2118 比例简化
    3.2、spark集群运行应用之第三方jar的处理方式
  • 原文地址:https://www.cnblogs.com/ywj2013/p/3369151.html
Copyright © 2020-2023  润新知