cisco设备基础操作 - 思科技术

来源:百度文库 编辑:神马文学网 时间:2024/04/26 11:30:10

cisco设备基础操作

1、基本操作
进入终端,清线,进入路由器R1
terminal-server>clear line 1
[confirm]
[OK]
terminal-server>r1
Translating "r1"
Trying r1 (1.1.1.1, 2001)... Open
% Please answer 'yes' or 'no'.
Would you like to enter the initial configuration dialog? [yes/no]: n
Press RETURN to get started!
进入特权模式以及查看版本号:
Router>enable
Router#show version
结果为
Cisco Internetwork Operating System Software
IOS (tm) 2500 Software (C2500-IS-L), Version 12.0(25), RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2002 by cisco Systems, Inc.
Compiled Tue 31-Dec-02 13:42 by srani
Image text-base: 0x0303E2A8, data-base: 0x00001000
ROM: System Bootstrap, Version 5.2(8a), RELEASE SOFTWARE
BOOTFLASH: 3000 Bootstrap Software (IGS-RXBOOT), Version 10.2(8a), RELEASE SOFTWARE (fc1)
Router uptime is 8 minutes
System restarted by power-on
System image file is "flash:c2500-is-l.120-25.bin"
cisco 2500 (68030) processor (revision N) with 14336K/2048K bytes of memory.
Processor board ID 21581721, with hardware revision 00000001
Bridging software.
X.25 software, Version 3.0.0.
Basic Rate ISDN software, Version 1.1.
1 Ethernet/IEEE 802.3 interface(s)
2 Serial network interface(s)
1 ISDN Basic Rate interface(s)
32K bytes of non-volatile configuration memory.
16384K bytes of processor board System flash (Read ONLY)
         
Configuration register is 0x2142
查看接口数据:
Router#show ip int brief
Interface              IP-Address      OK? Method Status                Protocol
BRI0                   unassigned      YES unset  administratively down down   
BRI0:1                 unassigned      YES unset  administratively down down   
BRI0:2                 unassigned      YES unset  administratively down down   
Ethernet0              unassigned      YES manual administratively down down   
Serial0                unassigned      YES unset  administratively down down   
Serial1                unassigned      YES unset  administratively down down   
Router#
进入全局模式:
Router#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
进入以太网接口模式,配上接口IP:
Router(config)#int e0
Router(config-if)#ip add 192.168.1.1 255.255.255.0 //配IP
Router(config-if)#no shutdown    //激活端口
Router(config-if)#exit
Router(config)#exit
Router#show ip int brief
Interface              IP-Address      OK? Method Status                Protocol
BRI0                   unassigned      YES unset  administratively down down   
BRI0:1                 unassigned      YES unset  administratively down down   
BRI0:2                 unassigned      YES unset  administratively down down   
Ethernet0             192.168.1.1     YES manual up                    down    //以太接口已激活
Serial0                unassigned      YES unset  administratively down down   
Serial1                unassigned      YES unset  administratively down down   
R1#
进入控制台以及相关配置
Router#config terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#no ip domain-lookup  //关闭域名查询
Router(config)#line console 0    //进入控制台线路模式
Router(config-line)#no exec-timeout    //设置永不超时
Router(config-line)#logging  synchronous //关闭显示同步
Router(config-line)#password 123   //设置console密码
Router(config-line)#login   //使密码生效
Router(config-line)#exit
Router(config)#hostname R1 //改路由器名