zoukankan      html  css  js  c++  java
  • 常见的思科命令

    路由器实验:
    router>enable 从用户模式进入特权模式
    router#disable or exit 从特权模式退出到用户模式
    router#show sessions 查看本机上的TELNET会话
    router#disconnect 关闭所有的TELNET会话
    router#show users查看本机上的用户
    router#erase startup-config删除NVRAM中的配置
    router#reload 重启路由器
    router#config terminal从用户模式进入特权模式
    router(config)#hostname r1 配置用户名为r1
    router(config)banner welcome#配置开机话语
    router#show controllers serial0 查看串口0的物理层信息,主要是查看DTE/DCE
    router#show ip interface查看端口的IP配置信息
    router#show hosts查看主机表
    end or ctrl+z 从各种配置模式退出到特权模式

    r1(config)#no ip domain-lookup
    r1(config)#ip domain-lookup
    r1(config)#ip name-server 202.106.0.20打开动态域名解析之后指定DNS服务
    r1(config)#interface serial 0 进入serial 0 的接口配置模式
    r1(config)# no shutdown路由器出厂默认所有端口关闭,使用此命令打开
    r1(config-if)#encapsulation ppp 封装PPP
    r1(config-if)#clockrate 64000如果是DCE使需要设置时钟速率,如果是DTE不必设置
    r1(config-if)#bandwidth 64 设置端口带宽为64K
    r1(config-if)#ctrl+c 或者ctrl+z快捷键退出特权模式
    r1#show interface serial 0 查看s0信息,如果考到serial和line protocol 都显示up,说明链路两端设置成功
    r1#show cdp neighbors查看CDP邻居信息
    r1(config-if)#ip add 10.0.0.1 255.0.0.0 进入相应的接口,配置相应的IP地址
    r1#ping 10.0.0.2 使用ping命令查看邻居的连通性
    r1#show ip route查看路由表
    r1(config-if)#route rip启动RIP路由协议
    r1(config-router)#network 10.0.0.0发布网段。
    r1#show ip protocol查看配置的路由协议
    r1(config)#router igrp 300 要注意在IGRP后面加自治系统号
    r1(config)#line vty0 4 进入虚拟线程配置模式,在这个模式里可对telnet功能进行配置
    r1(config-line)#password cisco 配置telnet密码,默认的网络设备telnet的功能是关闭的,配置密码后自动打开
    r1(config)#enable password cisco 配置进入enable模式的密码,区分大小写
    r1(config)#enable serect ciscocisco配置进入enable模式的密码,加密,show run 看不见
    r1(config)#line console 0
    r1(config-line)#login
    r1(config-line)#password cisco配置进入用户模式的密码
    r1(config-line)#logging sysnchronous输入同步
    r1(config-line)#exec-timeout 0 0 禁止因为一段时间没有输入而跳出
    r1#copy running-config startup-config 保存配置

  • 相关阅读:
    Android 颜色配置表-颜色类
    Android模拟器——Genymotion
    Android-adb shell 读取手机系统文件
    android webview js交互 第一节 (java和js交互)
    Android源码目录结构详解(转载)
    BlockingQueue深入分析(转)
    RUDP之三 —— Virtual Connection over UDP
    RUDP之二 —— Sending and Receiving Packets
    OSS层基础:平台区分
    RUDP之一 —— UDP VS TCP
  • 原文地址:https://www.cnblogs.com/fenlinji/p/11934916.html
Copyright © 2011-2022 走看看