实验交换机和路由器基本配置_第1页
实验交换机和路由器基本配置_第2页
实验交换机和路由器基本配置_第3页
实验交换机和路由器基本配置_第4页
实验交换机和路由器基本配置_第5页
已阅读5页,还剩22页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、Computer NetworksComputer Networks计算机网络实验计算机网络实验试验:交换机路由器基本配置试验:交换机路由器基本配置美国会对中兴、华为调查事件美国会对中兴、华为调查事件22012年年2季度交换机路由器市场份额季度交换机路由器市场份额2012年10月,美国众议院认定华为和中兴危害其国家安全,而华为在其后的反驳中指出,华为、中兴被认定威胁美国国家安全,正是思科在背后推波助澜。3交换机路由器基本配置交换机路由器基本配置交换机和路由器的主要接口Cisco命令行配置模式常用命令交换机的主要接口交换机的主要接口RJ-45接口:俗称水晶头,属于双绞线以太网接口类型。SC光纤接

2、口:在100Base-TX以太网时代就已经得到了应用。FDDI接口:在光缆上发送数字信号的一组协议,使用双环令牌Console接口:用于配置和管理。AUI接口BNC接口45路由器的主要接口路由器的主要接口局域网接口RJ-45接接口口、SC接接口口、AUI接接口口、广域网接口RJ-45接接口口、AUI接接口口、高速同步串口高速同步串口、异步串口异步串口、ISDN BRI接接口口、路由器配置接口Console接接口口、AUX接接口口7Cisco IOS命令行配置模式命令行配置模式一般用户模式一般用户模式特权模式特权模式全局配置模式全局配置模式其它配置模式其它配置模式 -端口配置模式端口配置模式 -

3、SETUP模式模式 -RXBOOT模式模式不同模式下可以进行的操作命令不一样不同模式下可以进行的操作命令不一样l 对交换机路由器的有限操作对交换机路由器的有限操作l 命令提示符:命令提示符: hostname主要有两个命令模式提供命令键入主要有两个命令模式提供命令键入第一种模式第一种模式:用户模式用户模式Cisco IOS Software EXECl 对交换机路由器更深入的操作对交换机路由器更深入的操作l 有配置和监视的权利有配置和监视的权利l 是进入其他模式的前提是进入其他模式的前提l 命令提示符:命令提示符: hostname#第二种模式第二种模式:特权模式(特权模式(Enable)9C

4、onsolewg_ro_cwg_ro_cenablewg_ro_c#wg_ro_c#disablewg_ro_cwg_ro_clogoutwg_ro_c con0 is now availablePress RETURN to get started.Logging into the Router用户模式用户模式特权模式特权模式10Router User Mode Command Listwg_ro_c?Exec commands: access-enable Create a temporary Access-List entry atmsig Execute Atm Signalling

5、Commands cd Change current device clear Reset functions connect Open a terminal connection dir List files on given device disable Turn off privileged commands disconnect Disconnect an existing network connection enable Turn on privileged commands exit Exit from the EXEC help Description of the inter

6、active help system lat Open a lat connection lock Lock the terminal login Log in as a particular user - More -11wg_ro_c#?Exec commands: access-enable Create a temporary Access-List entry access-profile Apply user-profile to interface access-template Create a temporary Access-List entry bfe For manua

7、l emergency modes setting cd Change current directory clear Reset functions clock Manage the system clock configure Enter configuration mode connect Open a terminal connection copy Copy from one file to another debug Debugging functions (see also undebug) delete Delete a file dir List files on a fil

8、esystem disable Turn off privileged commands disconnect Disconnect an existing network connection enable Turn on privileged commands erase Erase a filesystem exit Exit from the EXEC help Description of the interactive help system- More -Router Privileged Mode Command List12配置模式的转换配置模式的转换13配置模式命令配置模式

9、命令Router 一般用户模式RouterenableRouter# 特权模式Router#config terminalRouter (config)# 全局配置模式Router (config)#int serial 0Router (config-if)# 端口配置模式Router(config)#interface type numberRouter(config-if)#Configuring an Interface type includes serial, ethernet, token ring, fddi, hssi, loopback, dialer, null, asy

10、nc, atm, bri, and tunnel number is used to identify individual interfacesRouter(config-if)#exit Quit from current interface configuration modeRouter(config)#interface type slot/portRouter(config-if)# For modular routersConfiguring a Serial InterfaceEnter global configuration modeRouter(config)#inter

11、face serial 0 Router(config-if)#Router#configure termRouter(config)# Specify interface16Disabling or Enabling an InterfaceRouter#configure termRouter(config)#interface serial 0 Router(config-if)#no shutdown打开接口打开接口Router#configure termRouter(config)#interface serial 0 Router(config-if)#shutdown关闭接口关

12、闭接口Router#show interface serial 0Serial0 is up, line protocol is up Hardware is HD64570 Internet address is 10.140.4.2/24 MTU 1500 bytes, BW 64 Kbit, DLY 20000 usec, rely 255/255, load 1/255 Encapsulation HDLC, loopback not set, keepalive set (10 sec) Last input 00:00:09, output 00:00:04, output han

13、g never Last clearing of show interface counters never Input queue: 0/75/0 (size/max/drops); Total output drops: 0 Queueing strategy: weighted fair Output queue: 0/1000/64/0 (size/max total/threshold/drops) Conversations 0/1/256 (active/max active/max total) Reserved Conversations 0/0 (allocated/max

14、 allocated) 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec(output omitted) Verifying Your ChangesRouter#show interfaces serial 1Serial1 is up, line protocol is up Hardware is HD64570 Description: 64Kb Line to San Jose : : : : : : : : :Operational. Serial

15、1 is up, line protocol is upConnection problem. Serial1 is up, line protocol is downInterface problem. Serial1 is down, line protocol is downDisabled . Serial1 is administratively down, line protocol is down Carrier DetectKeepalivesInterpreting Interface Status19查阅信息查阅信息Show 参数参数:version、processes、p

16、rotocols、mem、ip route、startup-config、running-config、flash、interfaces Switch IP Address ConfigurationAssigns an address and subnet maskStarts IP processing on a switchSwitch(config)#ip address ip-address subnet-maskSwitch(config)#ip default-gateway ip-addressSpecifies a default gatewayRouter IP Addre

17、ss ConfigurationAssigns an address and subnet maskStarts IP processing on a router interfaceRouter(config-if)#ip address ip-address subnet-mask22172.16.2.1SOStatic Routes172.16.1.0B172.16.2.2NetworkA管理员手工添加路由条目管理员手工添加路由条目BStub NetworkRouter(config)#ip route network mask address | interfacedistance p

18、ermanent Static Route Configuration24Stub Networkip route 172.16.1.0 255.255.255.0 172.16.2.1172.16.2.1SOStatic Route Example172.16.1.0B172.16.2.2NetworkAB 路由是单向的,反方向也必须配置路由是单向的,反方向也必须配置10.0.0.025Stub Networkip route 0.0.0.0 0.0.0.0 172.16.2.2Default Routes172.16.2.1SO172.16.1.0B172.16.2.2NetworkAB10.0.0.026Cisco设备型号编码设备型号编码1. CISCO 开头的产品都是路由器;开头的产品都是路由器;2. RSP 开头的都是开头的都是CISCO7500系列产品的引擎;系列产品的引擎;3. VIP 开头的产品都是开头的产品都是CISCO 7500系列产品的多功能接口处系列产品的多功能接口处理器模块;理器模块;4. PA 开头的产品都是开头的产品都是CISCO 7500/7200系列产品的模块;系列产品的模块;5. NPE 开头的都是开头的都是CISCO7200系列产品的引擎;系列产品的引擎;6. NM 开头的都是开头的都是CISCO低端路由器模块;低端路由器模块;

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论