网站首页  汉语字词  英语词汇  考试资料  写作素材  旧版资料

请输入您要查询的考试资料:

 

标题 CCNA考试实验常用的命令总结
内容
    路由器实验:
    router> enable 从用户模式进入特权模式
    router# disable or exit 从特权模式退出到用户模式
    router# show sessions  查看本机上的TELNET会话
    router# disconnect 关闭所有的TELNET会话
    router# show users 查看本机上的用户
    router# erase startupconfig删除NVRAM中的配置
    router# reload 重启路由器
    router# config terminal 从用户模式进入特权模式
    router(config)# hostname rl 配置用户名为rl
    router(config)# #banner welcome# 配置开机话语
    router# show controllers serial0查看串口0的物理层信息(主要是查看DTE/DCE)
    router# show ip interface  查看端口的IP配置信息
    router# show hosts 查看主机表
    end or ctrl+z  从各种配置模式退到特权模式
    rl(config)# no ip domainlookup 关闭动态域名解析
    rl(config)# ip domainlookup打开动态域名解析
    rl(config)# ip nameserver 202.106.0.20 打开动态域名解析之后便可以指定DNS服务
    rl(config)# interface serial 0 进入serial 0的接口配置模式
    rl(configif)# no shutdown路由器出厂默认所有端口关闭,使用此命令使它们打开
    rl(configif)# encapsulation ppp  封装ppp
    rl(configif)# clockrate 64000  如果是DCE使需要设置时钟速率,如果是DTE使不必
    设置
    rl(configif)# bandwidth 64 设置端口带宽为64K
    rl(configif)# ctrl+c 或者ctrl+z 快捷键退出到特权模式
    rl# show interface serial 0查看s0信息,如果看到serial和 line protocol都显
    示up,说明链路两端都设置成功
    注意:如果出现serial down, line down 可能对方的端口没有打no shutdown或者电缆没有插好;如果出现serial up, line down 可能是DCE端没有设置clock rate, 也可能是封装格式不对
    rl# show cdp neighbors 查看CDP邻居信息
    rl# show cdp entry *
    rl(configif)# ip add 10.0.0.1 255.0.0.0 进入相应的接口,配置相应的IP地址
    rl# ping 10.0.0.2  使用ping命令查看邻居的连通性
    rl# show ip route 查看路由表,可以看到以C打头的路由 信息,这是直连的路由信息;可以看到 R开头的路由信息,是从rip学来的路由 信息;可看到以I开头的路由信息取代 了以R开头的路由信息,这是因为igrp 的管理距离是100,小于rip的120
    rl(configif)# router rip  启动RIP路由协议
    rl(configrouter)# network 10.0.0.0发布网段(注意network后面是接的网络号而不是IP地址)
    rl# show ip protocol查看配置的路由协议
    rl(config)# router igrp 300一定要注意在IGRP后面加自治系统号,考试的时候题目会告诉你AS NUMBER, 照敲就是
    rl(configrouter)# network 10.0.0.0
    rl(config)# line vty0 4 进入虚拟线程配置模式,在此模式可对telnet功能进行配置
    rl(configline)# login
    rl(configline)# password cisco 配置telnet密码,默认的网络设备 telnet的 功能是关闭的,配了密码之后会自动打开
    rl(config)# enable password cisco配置进入enable模式的密码, 区分大小写
    rl(config)# enable secret ciscocisco 配置进入enable模式的密码,是加密的密码,show run是看不见的
    rl(config)# line console 0
    rl(configline)# login
    rl(configline)# password cisco  配置进入用户模式的密码
    rl(configline)# logging synchronous  输入同步
    rl(configline)# exectimeout 0 0禁止因为一段时间没有输入而跳出
    rl# copy runningconfig startupconfig  保存配置,考试的时候注意题目的要求,如果题目里要求你保存配置就一定不能少了这一项
    r1# copy tftp startupconfig
    r1# copy runningconfig tftp
    r1# copy tftp flash
    交换机实验:
    switch(config)# ip address 192.168.0.177 255.255.255.0 与路由器在接口上的配置IP不同,交换机是在全局配置模式配置
    switch(config)# ip defaultgateway 192.158.0.1 给交换机配置一个缺省网关,请注
    意,不用写掩码
    switch(config)# vlan2 name cisco   配置一个vlan2并且指定名字叫CISCO
    switch# show interfaces  查看端口状态
    switch(config)# interface e0/10  进入端口e0/10
    switch(configif)# vlanmembership static 2   将端口放进vlan2里面
    switch(config)# int f0/26  进入快速以太网端口f0/26
    switch(configif)# trunk on 启用trunk,注意:只能在百兆以上端口启用trunk
    switch(configif)# notrunkvlan 51 52 在主干上关闭VLAN51、52的传输
随便看

 

在线学习网考试资料包含高考、自考、专升本考试、人事考试、公务员考试、大学生村官考试、特岗教师招聘考试、事业单位招聘考试、企业人才招聘、银行招聘、教师招聘、农村信用社招聘、各类资格证书考试等各类考试资料。

 

Copyright © 2002-2024 cuapp.net All Rights Reserved
更新时间:2025/5/14 16:05:24