【正文】
written from Copyright (c) Cisco Systems, Inc. 19931998 wg_sw_c uptime is 15day(s) 21hour(s) 53minute(s) 11second(s) cisco Catalyst 1900 (486sxl) processor with 2048K/1024K bytes of memory Hardware board revision is 5 Upgrade Status: No upgrade currently in progress. Config File Status: No configuration upload/download is in progress 27 Fixed Ether/IEEE interface(s) Base Ether Address: 0050BD73E2C0 交換機之 show version 命令 wg_sw_cshow run Building configuration... Current configuration: ! hostname wg_sw_c ! ip address ip defaultgateway ! interface Ether 0/1 text omitted interface Ether 0/24 ! Interface Ether 0/25 ! interface FastEther 0/26 ! interface FastEther 0/27 交換機之 show runningconfiguration 命令 wg_sw_cshow run Building configuration... Current configuration: ! hostname wg_sw_c ! ip address ip defaultgateway ! interface Ether 0/1 text omitted interface Ether 0/12 ! Interface Ether 0/25 ! interface FastEther 0/26 ! interface FastEther 0/27 Catalyst 1924 Catalyst 1912 wg_sw_cshow interfaces ether 0/1 Ether 0/1 is Enabled Hardware is Builtin 10BaseT Address is MTU 1500 bytes, BW 10000 Kbits STP State: Forwarding Forward Transitions: 1 Port monitoring: Disabled Unknown unicast flooding: Enabled Unregistered multicast flooding: Enabled Description: Duplex setting: Half duplex Back pressure: Disabled More 交換機之 show interfaces命令 wg_sw_ashow ip IP Address: Sub Mask: Default Gateway: Management VLAN: 1 Domain name: Name server 1: Name server 2: HTTP server : Enabled HTTP port : 80 RIP : Enabled wg_sw_a 查看交換機的 IP地址 配置模式 : ? 全局配置模式 ? wg_sw_a conf term ? wg_sw_a(config) ? 端口配置模式 ? wg_sw_a(config) interface e0/1 ? wg_sw_a(configif) 配置交換機 配置交換機的各種標(biāo)識 為交換機設(shè)置本地標(biāo)識 交換機名 (config)hostname wg_sw_c wg_sw_c(config) wg_sw_a(config) ip address {ip address} {mask} wg_sw_a(config)ip address 配置交換機 IP地址 ? 系統(tǒng)啟動例程會初始化路由器 ? 如果需要,路由器可以有選擇性地回退啟動 Check hardware Find and load Cisco IOS software image Find and apply router configuration information Load Bootstrap 1. 啟動前確認正確連接線纜和控制線 2. 按下電源開關(guān) 3. 觀察啟動順序 Cisco IOS輸出到控制臺上的內(nèi)容 Cisco路由器的初始啟動 沒有配置文件與有配置文件的路由器啟動對比 System Configuration Dialog Continue with configuration dialog? [yes/no]:yes At any point you may enter a question mark 39。[]39。 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 allocated) 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec (output omitted) 確認參數(shù)修改情況 以太網(wǎng)的 mediatype 命令 Router(config)interface ether 2 Router(configif)mediatype 10baset 為以太網(wǎng)端口選擇適當(dāng)?shù)慕橘|(zhì)類型 開啟或關(guān)閉端口 Routerconfigure term Router(config)interface serial 0 Router(configif)no shutdown %LINK3UPDOWN: Interface Seria0, changed state to up %LINEPROTO5UPDOWN: Line Protocol on Interface Serial0, changed state to up 開啟已經(jīng)關(guān)閉的端口 Routerconfigure term Router(config)interface serial 0 Router(configif)shutdown %LINK5CHANGED: Interface Serial0, changed state to administratively down %LINEPROTO5UPDOWN: Line protocol on Interface Serial0, changed state to down 人工關(guān)閉端口 路由器的 show interfaces 命令 Routershow interfaces Ether0 is up, line protocol is up Hardware is Lance, address is (bia ) Inter address is 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:07, output 00:00:08, output hang never Last clearing of show interface counters never Queueing strategy: fifo Output queue 0/40, 0 drops。undebug39。[ ]39。. Setup模式 wg_ro_c con0 is now available Press RETURN to get started. 用戶模式 提示 wg_ro_c 路由器啟動時在控制臺上的輸出內(nèi)容 控制臺 Setup: 初始配置對話框 Routersetup System Configuration Dialog Continue with configuration dialog? [yes/no]: y