• 路由与交换,cisco路由器配置,基础知识点(二)


    1.进退用户/特权/全局模式

    (1)从用户模式进入特权模式

    enable

    (2)从特权模式进入全局配置模式

    configure terminal 

    (3)从其他模式回到特权模式

    end

    (4)从特权模式退到用户模式

    disable

    2.提醒用户可用命令

    (1)命令补全

    [命令前缀]?

    eg:

    (2)子命令提示

    [命令] ?

    注意:这有空格

    eg:

    3.其余常用命令

    (1)查看当前时间 ===>

    show clock

    (2)查看系统历史命令 ===>

    show history 

    (3)设置缓存历史命令条数

    terminal history size [num]
    
    
    eg:
    terminal history size 200

    (4)开启路由器某个接口的以太网口

    no shutdown 

    eg:

    (5)配置以太网接口的速率

    speed 100

    (6)配置以太网接口模式

    duplex [auto | full | half]
    
    auto  自动
    full  全双工
    half  半双工

    (7)将内存中的配置保存到NVRAM中,让路由器开机时自动读取

    copy running-config startup-config 
    或
    write

    (8)显示路由器各个接口的IP地址和状态等

    show ip interface brief 

    (9)查看IOS版本信息

    show version

    (10)查看路由器正在使用的配置文件

    show running-config

    (11)查看存储在NVRAM中的配置文件

    show startup-config

    (12)查看某个接口的状态

    show interfaces fastEthernet [端口号]
    show interfaces serial [端口号]

    (13)显示各个接口的IPV4详细信息

    show interfaces fastEthernet

    (14)显示flash的详细信息

    show flash: 

    (15)显示某个接口的详细信息

    show controllers fastEthernet [端口号]

    (16)显示路由器缓存中的arp表

    show ip arp

    (17)设置DNS服务器

    ip name-server [地址]

    eg:

    (18)追踪数据包路过的每个网关

    traceroute [IP地址]

    eg:

    (19)删除vlan信息

    delete flash:vlan.dat

    (20)删除路由器启动配置文件

    erase startup-config

    (21)重启路由器

    reload 

    注意:恢复路由器出厂设置命令如下

    delete flash:vlan.data
    erase startup-config 
    reload

    (22)查看路由表

    show ip route

  • 相关阅读:
    初识 Mysql
    Python之协程
    crm 动态一级二级菜单
    admin 后台操作表格
    crm 权限设计
    crm 公户变私户的问题 班级管理 课程管理 学习记录初始化
    crm 添加用户 编辑用户 公户和私户的展示,公户和私户的转化
    crm 数据展示 和分页思想(一)
    python django(forms组件)
    python Django 中间件介绍
  • 原文地址:https://www.cnblogs.com/viplanyue/p/12700473.html
Copyright © 2020-2023  润新知