ImageVerifierCode 换一换
格式:DOCX , 页数:14 ,大小:192.88KB ,
资源ID:7246238      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/7246238.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(思科模拟器命令.docx)为本站会员(b****6)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

思科模拟器命令.docx

1、思科模拟器命令1.计算机命令:;使用root用户;口令是 linux;同init 0关机PCA logi n: root password: linux#shutdow n -h now#logout#logi n#ifconfig ;显示IP地址#ifconfig eth0 netmask ; 设置 IP 地址#ifconfig eht0 netmask down ; 删除 IP 地址#route add 0.0.0.0 gw #route del 0.0.0.0 gw #;设置网关;删除网关显示网关route add default gw #route del default gw #ro

2、ute#pi ng #telnet #3.路由器支持的命令: 路由器显示命令:router#show run router#show in terface router#show ip route router#show cdp nei router#reload路由器口令设置:routere nablerouter#c onfig termi nal router(co nfig)#host name router(c on fig)#e nable secret xxx router(co nfig)#e nable password xxb router(co nfig)#li ne c

3、on sole 0 router(config-line)#line vty 0 4 router(co nfig-li ne)#log in显示配置信息;显示接口信息 显示路由信息 显示邻居信息 重新起动进入特权模式;进入全局配置模式 设置交换机的主机名;设置特权加密口令;设置特权非密口令;进入控制台口进入虚拟终端;要求口令验证设置登录口令xxrouter(config-line)#password xxrouter(config)#(Ctrl+z)router#exit; 返回特权模式;返回命令路由器配置:router(config)#int s0/0router(config-if)#n

4、o shutdown router(config-if)#clock rate 64000 router(config-if)#ip address ;进入 Serail 接口;激活当前接口 ;设置时钟频率 ;设置 IP 地址router(config-if)#ip address second ;设置第二个 IProuter(config-if)#int f0/0.1;进入子接口router(config-subif.1)#ip address ;设置子接口 IProuter(config-subif.1)#encapsulation dot1q router(config)#config-

5、register 0x2142 router(config)#config-register 0x2102 router#reload;绑定 vlan 中继协议;跳过配置文件;正常使用配置文件;重新引导路由器文件操作:router#copy running-config startup-configrouter#copy running-config tftprouter#copy startup-config tftp router#copy tftp flash:;保存配置;保存配置到 tftp ;开机配置存到 tftp;下传文件到 flashrouter#copy tftp startu

6、p-config;下载配置文件ROM 状态:Ctrl+Break rommonconfreg 0x2142 rommonconfreg 0x2102 rommonreset;进入 ROM 监控状态;跳过配置文件 ;恢复配置文件 ;重新引导rommon copy xmodem: flash: ; 从 con sole 传输文件rommonIP_ADDRESS=10.65.1.2 ;设置路由器 IPrommonIP_SUBNET_MASK=255.255.0.0 ;设置路由器掩码rommonTFTP_SERVER=10.65.1.1 ;指定 TFTP 服务器IPrommonTFTP_FILE=c2

7、600.binrommontftpdnldrommondir flash:;指定下载的文件;从 tftp 下载;查看闪存内容rommonboot;引导 IOS静态路由:ip route ;命令格式router(config)#ip route 2.0.0.0 255.0.0.0 1.1.1.2;静态路由举例router(config)#ip route 0.0.0.0 0.0.0.0 1.1.1.2 ;默认路由举例动态路由:router(config)#ip routing router(config)#router rip router(config-router)#network rout

8、er(config-router)#negihbor 帧中继命令: router(config)#frame-relay switching router(config-s0)#encapsulation frame-relay router(config-s0)#fram-relay lmi-type cisco router(config-s0)#frame-relay intf-type DCE router(config-s0)#frame-relay dlci 16 router(config-s0)#frame-relay local-dlci 20 router(config-s

9、0)#frame-relay interface-dlci 16 ; router(config)#log-adjacency-changes router(config)#int s0/0.1 point-to-point router#show frame pvc router#show frame map;启动路由转发;启动 RIP 路由协议。;设置发布路由;点对点帧中继用。;使能帧中继交换;使能帧中继;设置管理类型;设置为 DCE;设置虚电路号;记录邻接变化;设置子接口点对点;显示永久虚电路;显示映射基本访问控制列表:router(config)#access-list permit|

10、deny router(config)#interface ;default:deny anyrouter(config-if)#ip access-group in|out ;defaultut例 1 : router(config)#access-list 1 deny host 10.65.1.1 router(config)#access-list 1 permit any router(config)#int f0/0 router(config-if)#ip access-group 4 in例 2 : router(config)#access-list 4 permit 10.

11、8.1.1 router(config)#access-list 4 deny 10.8.1.0 0.0.0.255 router(config)#access-list 4 permit 10.8.0.0 0.0.255.255 router(config)#access-list 4 deny 10.0.0.0 0.255.255.255 router(config)#access-list 4 permit any router(config)#int f0/1 router(config-if)#ip access-group 4 in扩展访问控制列表: access-list per

12、mit|deny icmp type access-list permit|deny tcp port router(config)#access-list 101 deny icmp any 10.64.0.2 0.0.0.0 echo router(config)#access-list 101 permit ip any any router(config)#int s0/0router(config-if)#ip access-group 101 in例 2 : router(config)#access-list 102 deny tcp any 10.65.0.2 0.0.0.0

13、eq 80 router(config)#access-list 102 permit ip any any router(config)#interface s0/1 router(config-if)#ip access-group 102 out删除访问控制例表 : router(config)#no access-list 102 router(config-if)#no ip access-group 101 in路由器的 nat 配置Router(config-if)#ip nat inside ;当前接口指定为内部接口 Router(config-if)#ip nat outsi

14、de ;当前接口指定为外部接口 Router(c on fig)#ip nat in side source static p port Router(config)#ip nat inside source static 10.65.1.2 60.1.1.1 Router(config)#ip nat inside source static tcp 10.65.1.3 80 60.1.1.1 80 Router(config)#ip nat pool p1 60.1.1.1 60.1.1.20 255.255.255.0 Router(config)#ip nat inside sourc

15、e list 1 pool p1Router(config)#ip nat inside destination list 2 pool p2Router(config)#ip nat inside source list 2 interface s0/0 overloadRouter(config)#ip nat pool p2 10.65.1.2 10.65.1.4 255.255.255.0 type rotary Router#show ip nat translationrotary参数是轮流的意思,地址池中的IP轮流与NAT分配的地址匹配。 overload参数用于PAT将内部IP

16、映射到一个公网IP不同的端口上。外部网关协议配置routerA(config)#router bgp 100 routerA(config-router)#network 19.0.0.0 routerA(config-router)#neighbor 8.1.1.2 remote-as 200配置PPP验证:RouterA(config)#username password RouterA(config)#int s0RouterA(config-if)#ppp authentication chap|pap 4PIX 防火墙命令Pix525(config)#nameif ethernet0

17、 outside security0 ;命名接口和级别Pix525(config)#interface ethernet0 auto ;设置接口方式;设置接口方式Pix525(config)#interface ethernet1 100fullPix525(config)#interface ethernet1 100full shutdownPix525(config)#ip address inside 192.168.0.1 255.255.255.0Pix525(config)#ip address outside 133.0.0.1 255.255.255.252;定义公网 IP

18、区间;例句;例句;去掉设置Pix525(config)#global (if_name) natid ip-ipPix525(config)#global (outside) 1 7.0.0.1-7.0.0.15Pix525(config)#global (outside) 1 133.0.0.1Pix525(config)#no global (outside) 1 133.0.0.1Pix525(config)#nat (if_name) nat_id local_ip netmarkPix525(config)#nat (inside) 1 0 0 内网所有主机 (0 代表 0.0.0.

19、0)可以访问 global 1 指定的外网。Pix525(config)#nat (inside) 1 172.16.5.0 255.255.0.0 内网 172.16.5.0/16 网段的主机可以访问 global 1 指定的外网。Pix525(config)#route if_name 0 0 gateway_ip metric ;命令格式Pix525(config)#route outside 0 0 133.0.0.1 1 ;例句Pix525(config)#route inside 10.1.0.0 255.255.0.0 10.8.0.1 1;例句Pix525(config)#st

20、atic (inside, outside) 133.0.0.1 192.168.0.8 表示内部 ip 地址 192.168.0.8,访问外部时被翻译成 133.0.0.1 全局地址Pix525(config)#static (dmz, outside) 133.0.0.1 172.16.0.8 中间区域 ip 地址 172.16.0.8,访问外部时被翻译成 133.0.0.1 全局地址1.switch 配置命令(1)模式转换命令用户模式 特权模式 ,使用命令 enable特权模式 全局配置模式 ,使用命令 config t全局配置模式 接口模式 ,使用命令 interface+ 接口类型

21、+接口号 全局配置模式一线控模式,使用命令line+接口类型+接口号 注:用户模式 :查看初始化的信息 .特权模式 :查看所有信息、调试、保存配置信息 全局模式:配置所有信息、针对整个路由器或交换机的所有接口 接口模式:针对某一个接口的配置 线控模式:对路由器进行控制的接口配置(2)配置命令show running config 显示所有的配置show versin 显示版本号和寄存器值shut down 关闭接口 no shutdown 打开接口ip add +ip 地址 配置 IP 地址sec on dary+IP地址为接口配置第二个IP地址 show interface+接 口类型+接口

22、号 查看接口管理性 show controllers interface 查看接口是否有 DCE 电缆 show history 查看历史记录 show terminal 查看终端记录大小hostname+主机名配置路由器或交换机的标识 config memory 修改保存在 NVRAM 中的启动配置 exec timeout 0 0 设置控制台会话超时为 0 service password-encryptin 手工加密所有密码 enable password +密码 配置明文密码 ena sec +密码 配置密文密码 line vty 0 4/15 进入 telnet 接口 passwor

23、d +密码配置tel net密码 line aux 0 进入 AUX 接口 password +密码 配置密码 line con 0 进入 CON 接口 password +密码 配置密码bandwidth+数字配置带宽 no ip address 删除已配置的 IP 地址 show startup config 查看 NVRAM 中的配置信息 copy run-config startup config 保存信息到 NVRAM write 保存信息到 NVRAM erase startup-config 清除 NVRAM 中的配置信息 show ip interface brief 查看接口

24、的谪要信息 banner motd # +信息 + # 配置路由器或交换机的描素信息 description+信息配置接口听描素信息 vlan database 进入 VLAN 数据库模式 vlan +vlan 号+ 名称 创建 VLAN switchport access vian +vlan号 为 VLAN 为配接口 interface vlan +vlan 号 进入 VLAN 接口模式 ip add +ip 地址 为 VLAN 配置管理 IP 地址 vtp+service/tracsparent/client 配置 SW 的 VTP 工作模式 vtp +domain+域名 配置SW的VT

25、P域名 vtp +password +密码 配置 SW 的密码 switchport mode trunk 启用中继 no vlan +vlan 号 删除 VLAN show spamming-tree vlan +vlan号 查看 VLA 怕生成树议2.路由器配置命令 ip route+非直连网段+子网掩码+下一跳地址配置静态/默认路由 show ip route 查看路由表 show protocols 显示出所有的被动路由协议和接口上哪些协议被设置 show ip protocols 显示了被配置在路由器上的路由选择协议 ,同时给出了在路由选择协议中使用的定时器等信息 router ri

26、p 激活 RIP 协议 network +直连网段 发布直连网段 interface lookback 0 激活逻辑接口 passive-interface +接口类型 +接口号 配置接口为被动模式 debug ip +协议 动态查看路由更新信息 undebug all 关闭所有 DEBUG 信息 router eigrp +as号 激活EIGRP路由协议 network +网段+子网掩码 发布直连网段 show ip eigrp neighbors 查看邻居表 show ip eigrp topology 查看拓扑表 show ip eigrp traffic 查看发送包数量 router

27、ospf+process-ID 激活 OSPF 协议 network+直连网段+area+区域号发布直连网段 show ip ospf 显示 OSPF 的进程号和 ROUTER-ID encapsulation+封装格式更改圭寸装格式 no ip admain-lookup 关闭路由器的域名查找 ip routing 在三层交换机上启用路由功能 show user 查看 SW 的在线用户 clear line +线路号 清除线路3.三层交换机配置命令 配置一组二层端口 configure terminal 进入配置状态 nterface range port-range 进入组配置状态 配置三

28、层端口 configure terminal 进入配置状态 interface fastethernet | gigabitethernet interface-id | vlan vlan-id | portchannel port-channel-number 进入端口配置状态 no switchport 把物理端口变成三层口ip address ip_address subnet_mas配置 IP 地址和掩码 no shutdown 激活端口例:Switch(config)# interface gigabitethernet0/2 Switch(config-if)# no switc

29、hportSwitch(config-if)# ip address 192.20.135.21 255.255.255.0 Switch(config-if)# no shutdown配置 VLAN configure terminal 进入配置状态 vlan vlan-id 输入一个 VLAN 号, 然后进入 vlan 配态,可以输入一个新的 VLAN 号或旧的来进行修改。name vlan-name 可选)输入一个 VLAN 名,如果没有配置 VLAN 名,缺省的名字 是 VLAN 号前面用 0 填满的 4 位数,如 VLAN0004 是 VLAN4 的缺省名字 mtu mtu-size

30、 (可选 ) 改变 MTU 大小例Switch# configure terminal Switch(config)# vlan 20 Switch(config-vlan)# name test20 Switch(config-vlan)# end 或Switch# vlan databaseSwitch(vlan)# vlan 20 name test20Switch(vlan)# exit 将端口分配给一个 VLAN configure terminal 进入配置状态 interface interface-id 进入要分配的端口 switchport mode access 定义二层口 switchport access vlan vlan-id 把端口分配给某一 VLAN例Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface fastethernet0/1 Switch(config-if)#

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1