思科模拟器命令(二)

上传人:摩西的****12 文档编号:131967717 上传时间:2020-05-11 格式:PPTX 页数:12 大小:50.60KB
返回 下载 相关 举报
思科模拟器命令(二)_第1页
第1页 / 共12页
思科模拟器命令(二)_第2页
第2页 / 共12页
思科模拟器命令(二)_第3页
第3页 / 共12页
思科模拟器命令(二)_第4页
第4页 / 共12页
思科模拟器命令(二)_第5页
第5页 / 共12页
点击查看更多>>
资源描述

《思科模拟器命令(二)》由会员分享,可在线阅读,更多相关《思科模拟器命令(二)(12页珍藏版)》请在金锄头文库上搜索。

1、学海无涯 1 计算机命令 使用root用户 口令是linux 同init0关机 PCAlogin rootpassword linux shutdown hnow logout login ifconfig ifconfigeth0netmask 显示IP地址 设置IP地址 ifconfigeht0netmaskdown 删除IP地址 routeadd0 0 0 0gw routedel0 0 0 0gw 设置网关 删除网关 显示网关 routeadddefaultgw routedeldefaultgw route ping telnet 2 交换机支持的命令 交换机的ROM状态 路由器的R

2、OM状 交换机基本状态 switch rommon 态hostname hostname hostname config hostname config if 用户模式 特权模式 全局配置模式 接口状态 交换机口令设置 switch enableswitch configterminalswitch config hostnameswitch config enablesecretxxxswitch config enablepasswordxxaswitch config lineconsole0switch config line linevty04switch config line l

3、oginswitch config line passwordxxswitch exit 进入特权模式 进入全局配置模式 设置交换机的主机名 设置特权加密口令 设置特权非密口令 进入控制台口 进入虚拟终端 允许登录 设置登录口令xx 返回命令 交换机VLAN设置 switch vlandatabaseswitch vlan vlan2 进入VLAN设置 建VLAN2 学海无涯 switch vlan novlan2switch config intf0 1switch config if switchportaccessvlan2switch config if switchportmodet

4、runk 删vlan2 进入端口1 当前端口加入vlan2 设置为干线 switch config if switchporttrunkallowedvlan1 2 设置允许的vlan switch config if switchporttrunkencapdot1qswitch config vtpdomainswitch config vtppasswordswitch config vtpmodeserverswitch config vtpmodeclient 设置vlan中继 设置发vtp域名 设置发vtp密码 设置发vtp模式 设置发vtp模式 交换机设置IP地址 switch

5、config interfacevlan1switch config if ipaddress 进入vlan1 设置IP地址 switch config ipdefault gateway 设置默认网关 switch dirflash 查看闪存 交换机显示命令 switch writeswitch showvtpswitch showrunswitch showvlanswitch showinterfaceswitch showintf0 0 保存配置信息 查看vtp配置信息 查看当前配置信息 查看vlan配置信息 查看端口信息 查看指定端口信息 3 路由器支持的命令 路由器显示命令 rou

6、ter showrunrouter showinterfacerouter showiprouterouter showcdpneirouter reload 显示配置信息 显示接口信息 显示路由信息 显示邻居信息 重新起动 路由器口令设置 router enablerouter configterminalrouter config hostnamerouter config enablesecretxxxrouter config enablepasswordxxbrouter config lineconsole0router config line linevty04router co

7、nfig line loginrouter config line passwordxx 进入特权模式 进入全局配置模式 设置交换机的主机名 设置特权加密口令 设置特权非密口令 进入控制台口 进入虚拟终端 要求口令验证 设置登录口令xx 学海无涯 router config Ctrl z router exit 返回特权模式 返回命令 路由器配置 router config ints0 0router config if noshutdownrouter config if clockrate64000router config if ipaddressrouter config if ipa

8、ddresssecondrouter config if intf0 0 1 进入Serail接口 激活当前接口 设置时钟频率 设置IP地址 设置第二个IP 进入子接口 router config subif 1 ipaddress 设置子接口IP router config subif 1 encapsulationdot1qrouter config config register0 x2142router config config register0 x2102router reload 绑定vlan中继协议 跳过配置文件 正常使用配置文件 重新引导 路由器文件操作 router co

9、pyrunning configstartup configrouter copyrunning configtftprouter copystartup configtftprouter copytftpflash router copytftpstartup config 保存配置 保存配置到tftp 开机配置存到tftp 下传文件到flash 下载配置文件 ROM状态 Ctrl Breakrommon confreg0 x2142rommon confreg0 x2102rommon resetrommon copyxmodem flash 进入ROM监控状态 跳过配置文件 恢复配置文件

10、 重新引导 从console传输文件 设置路由器IP 设置路由器掩码 指定TFTP服务器 rommon IP ADDRESS 10 65 1 2rommon IP SUBNET MASK 255 255 0 0rommon TFTP SERVER 10 65 1 1IPrommon TFTP FILE c2600 binrommon tftpdnldrommon dirflash rommon boot 指定下载的文件 从tftp下载 查看闪存内容 引导IOS 静态路由 iprouterouter config iproute2 0 0 0255 0 0 01 1 1 2 命令格式 静态路由举

11、例 router config iproute0 0 0 00 0 0 01 1 1 2 默认路由举例 学海无涯 动态路由 router config iproutingrouter config routerriprouter config router networkrouter config router negihbor 启动路由转发 启动RIP路由协议 设置发布路由 点对点帧中继用 使能帧中继交换 使能帧中继 设置管理类型 设置为DCE 设置虚电路号 帧中继命令 router config frame relayswitchingrouter config s0 encapsulat

12、ionframe relayrouter config s0 fram relaylmi typeciscorouter config s0 frame relayintf typeDCErouter config s0 frame relaydlci16router config s0 frame relaylocal dlci20router config s0 frame relayinterface dlci16 router config log adjacency changesrouter config ints0 0 1point to pointrouter showfram

13、epvcrouter showframemap 记录邻接变化 设置子接口点对点 显示永久虚电路 显示映射 基本访问控制列表 router config access listpermit deny router config interfacerouter config if ipaccess groupin out default denyany defaultut 例1 router config access list1denyhost10 65 1 1router config access list1permitanyrouter config intf0 0router confi

14、g if ipaccess group4in例2 router config access list4permit10 8 1 1router config access list4deny10 8 1 00 0 0 255router config access list4permit10 8 0 00 0 255 255router config access list4deny10 0 0 00 255 255 255router config access list4permitanyrouter config intf0 1router config if ipaccess grou

15、p4in扩展访问控制列表 access listpermit denyicmp type access listpermit denytcp port 例1 学海无涯router config access list101denyicmpany10 64 0 20 0 0 0echorouter config access list101permitipanyanyrouter config ints0 0router config if ipaccess group101in例2 router config access list102denytcpany10 65 0 20 0 0 0eq

16、80router config access list102permitipanyanyrouter config interfaces0 1router config if ipaccess group102out删除访问控制例表 router config noaccess list102router config if noipaccess group101in 路由器的nat配置Router config if ipnatinsideRouter config if ipnatoutside 当前接口指定为内部接口 当前接口指定为外部接口 Router config ipnatinsidesourcestatic p port Router config ipnatinsidesourcestatic10 65 1 260 1 1 1Router config ipnatinsidesourcestatictcp10 65 1 38060 1 1 180Router config ipnatpoolp160 1 1 160 1 1 20255 255 255 0Router c

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 中学教育 > 试题/考题 > 初中试题/考题

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号