2路由器交换机配置基础课件.ppt

上传人:醉**** 文档编号:13185689 上传时间:2022-04-28 格式:PPT 页数:35 大小:529.50KB
返回 下载 相关 举报
2路由器交换机配置基础课件.ppt_第1页
第1页 / 共35页
2路由器交换机配置基础课件.ppt_第2页
第2页 / 共35页
点击查看更多>>
资源描述

《2路由器交换机配置基础课件.ppt》由会员分享,可在线阅读,更多相关《2路由器交换机配置基础课件.ppt(35页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。

1、创业创新,合作共赢启动界面 - System Configuration Dialog - At any point you may enter a question mark ? for help.Use ctrl-c to abort configuration dialog at any prompt.Default settings are in square brackets .Continue with configuration dialog? yes/no: yesEnter IP address: ip_addressEnter IP netmask: ip_netmaskW

2、ould you like to enter a default gateway address? yes: yesIP address of the default gateway: ip_addressEnter a host name: host_nameEnter enable secret: secret_passwordWould you like to configure a Telnet password? yes yesEnter Telnet password: telnet_passwordWould you like to enable as a cluster com

3、mand switch? noEnter cluster name: cls_name路由器对话模式n任何时候可以按任何时候可以按ctrl+c键退出对话模式键退出对话模式出厂缺省配置 - System Configuration Dialog -Continue with configuration dialog? yes/no: yesAt any point you may enter a question mark ? for help.Use ctrl-c to abort configuration dialog at any prompt.Default settings are

4、in square brackets .Basic management setup configures only enough connectivityfor management of the system, extended setup will ask youto configure each interface on the systemWould you like to enter basic management setup? yes/no: no缺省端口状态First, would you like to see the current interface summary?

5、yes:InterfaceIP-AddressOK?Method Status ProtocolBRI0unassignedYES unset administratively down downBRI0:1unassignedYES unset administratively down downBRI0:2unassignedYES unset administratively down downEthernet0unassignedYES unset administratively down downSerial0unassignedYES unset administratively

6、 down down缺省全局配置Configuring global parameters: Enter host name Router:wg_ro_c The enable secret is a password used to protect access to privileged EXEC and configuration modes. This password, after entered, becomes encrypted in the configuration. Enter enable secret: cisco The enable password is use

7、d when you do not specify an enable secret password, with some older software versions, and some boot images. Enter enable password: sanfran The virtual terminal password is used to protect access to the router over a network interface. Enter virtual terminal password: sanjose Configure SNMP Network

8、 Management? no:缺省协议配置 Configure LAT? yes: no Configure AppleTalk? no: Configure DECnet? no: Configure IP? yes: Configure IGRP routing? yes: no Configure RIP routing? no: Configure CLNS? no: Configure IPX? no: Configure Vines? no: Configure XNS? no: Configure Apollo? no:缺省端口配置BRI interface needs isd

9、n switch-type to be configured Valid switch types are : 0 none.Only if you dont want to configure BRI. 1 basic-1tr6.1TR6 switch type for Germany2 basic-5ess.AT&T 5ESS switch type for the US/Canada3 basic-dms100.Northern DMS-100 switch type for US/Canada 4 basic-net3.NET3 switch type for UK and Europ

10、e5 basic-ni.National ISDN switch type6 basic-ts013.TS013 switch type for Australia7 ntt.NTT switch type for Japan8 vn3.VN3 and VN4 switch types for France Choose ISDN BRI Switch Type 2:Configuring interface parameters:Do you want to configure BRI0 (BRI d-channel) interface? no:Do you want to configu

11、re Ethernet0 interface? no: yes Configure IP on this interface? no: yes IP address for this interface: 10.1.1.33 Subnet mask for this interface 255.0.0.0 : 255.255.255.0 Class A network is 10.0.0.0, 24 subnet bits; mask is /24Do you want to configure Serial0 interface? no:配置模式Exec用户模式用户模式用户模式 对交换机和路

12、由器的有限操作对交换机和路由器的有限操作 命令提示符为命令提示符为 hostname模式一模式一:用户模式wg_ro_c?Exec commands: access-enable Create a temporary Access-List entry atmsig Execute Atm Signalling Commands cd Change current device clear Reset functions connect Open a terminal connection dir List files on given device disable Turn off priv

13、ileged commands disconnect Disconnect an existing network connection enable Turn on privileged commands exit Exit from the EXEC help Description of the interactive help system lat Open a lat connection lock Lock the terminal login Log in as a particular user logout Exit from the EXEC- More -Exec特权模式

14、特权特权(或或enabled)模式模式 对交换机和路由器更深入的操作对交换机和路由器更深入的操作 有配置和监视权力有配置和监视权力 是进入其它配置模式的前提是进入其它配置模式的前提 命令提示符为命令提示符为 hostname#模式二模式二 (也是最常用的模式也是最常用的模式):特权模式wg_ro_c#?Exec commands: access-enable Create a temporary Access-List entry access-profile Apply user-profile to interface access-template Create a temporary

15、Access-List entry bfe For manual 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

16、 a file dir List files on a filesystem 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 -模式切换模式切换(续)Configuration Modes:

17、Global configuration mode wg_sw_a#configure terminal wg_sw_a(config)# Interface configuration mode wg_sw_a(config)#interface e0/1 wg_sw_a(config-if)#帮助机制上下文关联帮助上下文关联帮助错误信息提示错误信息提示指出所输入交换机命令的错误所指出所输入交换机命令的错误所在,以便于修改或纠正在,以便于修改或纠正.可以重新调出以前运行过的命令可以重新调出以前运行过的命令,用来再次运行、查看或修改,用来再次运行、查看或修改. 之前命令保存区之前命令保存区提供

18、命令清单和与特定命令提供命令清单和与特定命令相关联的参数相关联的参数. 上下文帮助信息Router# clock set 19:56:00% Incomplete command.Router# clock set 19:56:00 ? Day of the monthMONTH Month of the yearRouter# clock set 19:56:00 04 8 % Invalid input detected at the markerRouter# clock set 19:56:00 04 August% Incomplete command.Router# clock s

19、et 19:56:00 04 August ? Year 命令提示命令提示 格式检查格式检查 命令提示命令提示增强行编辑命令(一行中长字串会自动滚卷一行中长字串会自动滚卷).光标移动到命令行的开始位置光标移动到命令行的开始位置.光标移动到命令行的结束位置光标移动到命令行的结束位置.回移一个单词回移一个单词下移一个字符下移一个字符.回移一个字符回移一个字符.下移一个单词下移一个单词删除当前字符删除当前字符Router$ value for customers, employees, and partners.查看历史命令Ctrl-P or Up arrow调出最近调出最近(前一前一)使用过的命令

20、使用过的命令Ctrl-N or Down arrow调出更近使用过的命令调出更近使用过的命令Router show history显示命令保存区内容显示命令保存区内容Router terminal history size lines 设置命令缓冲区大小设置命令缓冲区大小标记信息n为路由器设置基本的标记信息为路由器设置基本的标记信息密码配置Password和和secret的密码区别是的密码区别是secret会自会自动对密码进行加密,动对密码进行加密,而而password仍保持明文显示仍保持明文显示控制口配置Router(config)#line console 0Router(config-l

21、ine)#exec-timeout 0 0 Router(config)#line console 0Router(config-line)#logging synchronous 阻止会话退出阻止会话退出 使光标还原到原来的位置,重新显示被覆盖的命里使光标还原到原来的位置,重新显示被覆盖的命里端口配置Router(config)# interface type portRouter(config)# interface type slot/portRouter(config-if)# shutdown关闭该接口而不影响该接口的其它配置项关闭该接口而不影响该接口的其它配置项Router(con

22、fig-if)# no shutdown 启动被关闭的接口启动被关闭的接口Router(config-if)# exit 从当前配置模式中退出从当前配置模式中退出Router(config)# interface type number.subinterface 在指定一个基本接口后在指定一个基本接口后,使用这个命令在这个接口上建立一个虚拟接口使用这个命令在这个接口上建立一个虚拟接口 接口类型接口类型: serial, ethernet, tokenring, fddi, hssi, loopback,dialer, null, async, atm, bri, and tunnel配置举例w

23、g_ro_c#configure terminalwg_ro_c(config)#interface ethernet 0/1wg_ro_c(config-if)#ip address 192.168.1.1 255.255.255.0wg_ro_c(config-if)#no shutdownwg_ro_c(config-if)#exitShow interfacewg_sw_a#show interfaces ethernet 0/1Ethernet 0/1 is Enabled Hardware is Built-in 10Base-TAddress is 0050.BD73.E2C1M

24、TU 1500 bytes, BW 10000 Kbits802.1d STP State: Forwarding Forward Transitions: 1Port monitoring: DisabledUnknown unicast flooding: Enabled Unregistered multicast flooding: Enabled Description: Duplex setting: Half duplex Back pressure: Disabled-More-查看端口信息Router#show interfacesEthernet0 is up, line

25、protocol is up Hardware is Lance, address is 00e0.1e5d.ae2f (bia 00e0.1e5d.ae2f) Internet address is 10.1.1.11/24 MTU 1500 bytes, BW 10000 Kbit, DLY 1000 usec, rely 255/255, load 1/255 Encapsulation ARPA, loopback not set, keepalive set (10 sec) ARP type: ARPA, ARP Timeout 04:00:00 Last input 00:00:

26、07, output 00:00:08, output hang never Last clearing of show interface counters never Queueing strategy: fifo Output queue 0/40, 0 drops; input queue 0/75, 0 drops 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec 81833 packets input, 27556491 bytes, 0 no b

27、uffer Received 42308 broadcasts, 0 runts, 0 giants, 0 throttles 1 input errors, 0 CRC, 0 frame, 0 overrun, 1 ignored, 0 abort 0 input packets with dribble condition detected 55794 packets output, 3929696 bytes, 0 underruns 0 output errors, 0 collisions, 1 interface resets 0 babbles, 0 late collision

28、, 4 deferred 0 lost carrier, 0 no carrier 0 output buffer failures, 0 output buffers swapped out端口状态串口状态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 Encapsul

29、ation HDLC, loopback not set, keepalive set (10 sec) Last input 00:00:09, output 00:00:04, output hang 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

30、/drops) Conversations 0/1/256 (active/max active/max total) Reserved Conversations 0/0 (allocated/max allocated) 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec(output omitted) BW 64 Kbit,配置串口进入配置模式进入配置模式Router(config-if)#clock rate 64000Router(config-if)

31、#Router(config)#interface serial 0 Router(config-if)#Router#configure terminalRouter(config)#Router(config-if)#bandwidth 64Router(config-if)#exitRouter(config)#exitRouter#特定端口特定端口设置时钟设置时钟 (仅在仅在DCE端配置端配置)设置带宽设置带宽(推荐设置推荐设置)串口线检查Router#show controller serial 0HD unit 0, idb = 0 x121C04, driver structur

32、e at 0 x127078buffer size 1524 HD unit 0, V.35 DTE cable.配置缺省网关wg_sw_a(config)#ip default-gateway ip addressExample:wg_sw_a(config)#ip default-gateway 172.20.137.1查看初始配置wg_sw_a#show version 查看设备的软硬件信息、启动文件等信息查看设备的软硬件信息、启动文件等信息 wg_sw_a#show running-configuration 查看设备的现行配置查看设备的现行配置wg_sw_a#show interfa

33、ces 查看端口的配置和状态查看端口的配置和状态Show versionwg_sw_a#show versionCisco Catalyst 1900/2820 Enterprise Edition SoftwareVersion V8.01.01 written from 171.068.229.225Copyright (c) Cisco Systems, Inc. 1993-2001wg_sw_c uptime is 15day(s) 21hour(s) 53minute(s) 11second(s) cisco Catalyst 1900 (486sxl) processor with

34、 2048K/1024K bytes of memoryHardware board revision is 5Upgrade Status: No upgrade currently in progress. Config File Status: No configuration upload/download is in progress 27 Fixed Ethernet/IEEE 802.3 interface(s)Base Ethernet Address: 00-50-BD-73-E2-C0Show running-configwg_sw_a#show running-confi

35、gurationBuilding configuration.Current configuration:!hostname wg_sw_c!ip address 10.1.1.33 255.255.255.0ip default-gateway 10.3.3.3!interface Ethernet 0/1interface Ethernet 0/24!Interface Ethernet 0/25!interface FastEthernet 0/26!interface FastEthernet 0/27wg_sw_a#show running-configurationBuilding configuration.Current configuration:!hostname wg_sw_c!ip address 10.1.1.33 255.255.255.0ip default-gateway 10.3.3.3!interface Ethernet 0/1interface Ethernet 0/12!Interface Ethernet 0/25!interface FastEthernet 0/26!interface FastEthernet 0/27Catalyst 1924 SwitchCatalyst 1912 Switch(本章结束)

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

当前位置:首页 > 技术资料 > 其他杂项

本站为文档C TO C交易模式,本站只提供存储空间、用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。本站仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知淘文阁网,我们立即给予删除!客服QQ:136780468 微信:18945177775 电话:18904686070

工信部备案号:黑ICP备15003705号© 2020-2023 www.taowenge.com 淘文阁