免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1331 | 回复: 0
打印 上一主题 下一主题

65xx系列交换机配置(Native IOS)(2) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-06-04 20:10 |只看该作者 |倒序浏览

2.2. 远程telnet连接  
当完成交换机配置,并起给交换机配置了管理地址,就可以直接采用远程telnet登陆进入交换机了,但是必须先配置line vty的密码和enable密码才能允许远程登陆。
配置telnet登陆命令如下:
#conf t  
#line vty 0 4  
#login ;控制vty接口是否能够telnet  
#password switch
3. 基本信息配置  
3.1. 交换机软件版本  
Cisco的65xx交换机支持两种版本的系统软件,分别称为Natvie IOS版本和Cat OS版本的系统软件,CatOS版本的软件是为了兼容之前的65xx系列交换机的命令而沿袭下来的。Native IOS版本软件是Cisco公司为了统一其交换机及路由器的软件风格而研发出来的新一代IOS系统软件,Cisco所有的交换机版本都在整体向Native IOS版本过渡,目前来说,Native IOS版本的软件功能和CatOS版本的软件功能相差不多,但是今后都会向Native IOS版本软件。  
本项目中所使用的6509交换机采用的是Native IOS版本。  
3.2. 查看交换机基本配置
show version ;查看系统版本,内存配置,寄存器等基本信息  
show module all ;查看交换机配置模块  
show catalyst6000 chassis-mac-address ;查看交换机MAC地址
#show version输出信息如下:  
Cisco Internetwork Operating System Software   
IOS (tm) s72033_rp Software (s72033_rp-PK9S-M), Version 12.2(17a)SX1, EARLY
DEPLOYMENT RELEASE SOFTWARE (fc1)  
TAC Support:
http://www.cisco.com/tac
  
Copyright (c) 1986-2003 by cisco Systems, Inc.  
Compiled Wed 29-Oct-03 08:16 by cmong  
Image text-base: 0x40008FBC, data-base: 0x41E50000  
ROM: System Bootstrap, Version 12.2(14r)S9, RELEASE SOFTWARE (fc1)  
BOOTLDR: s72033_rp Software (s72033_rp-PK9S-M), Version 12.2(17a)SX1, EARLY
DEPLOYMENT RELEASE SOFTWARE (fc1)  
Router uptime is 29 minutes  
Time since Router switched to active is 29 minutes  
System returned to ROM by power-on (SP by power-on)  
System restarted at 12:57:08 PST Sat Jan 31 2004  
System image file is "sup-bootflash:s72033-pk9s-mz.122-17a.SX1.bin"  
This product contains cryptographic features and is subject to United  
States and local country laws governing import, export, transfer and  
use. Delivery of Cisco cryptographic products does not imply  
third-party authority to import, export, distribute or use encryption.  
Importers, exporters, distributors and users are responsible for  
compliance with U.S. and local country laws. By using this product you  
agree to comply with applicable laws and regulations. If you are unable  
to comply with U.S. and local laws, return this product immediately.  
A summary of U.S. laws governing Cisco cryptographic products may be found
at:  
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html
  
If you require further assistance please contact us by sending email to  
export@cisco.com
.  
cisco WS-C6509 (R7000) processor (revision 3.0) with 458752K/65536K bytes of
memory.  
Processor board ID SAL0743NKW8  
SR71000 CPU at 600Mhz, Implementation 0x504, Rev 1.2, 512KB L2 Cache  
Last reset from power-on  
X.25 software, Version 3.0.0.  
Bridging software.  
1 Virtual Ethernet/IEEE 802.3  interface(s)  
48 FastEthernet/IEEE 802.3 interface(s)  
36 Gigabit Ethernet/IEEE 802.3 interface(s)  
1917K bytes of non-volatile configuration memory.  
8192K bytes of packet buffer memory.  
65536K bytes of Flash internal SIMM (Sector size 512K).  
Standby is up  
Standby has 458752K/65536K bytes of memory.  
Configuration register is 0x2102  
Router#sho module all  
Mod Ports Card Type                              Model              Serial
No.   
2   16  16 port 1000mb GBIC
ethernet           WS-X6416-GBIC      SAL0750QNJP  
3   16  16 port 1000mb GBIC
ethernet           WS-X6416-GBIC      SAL0750QNFV  
5    2  Supervisor Engine 720
(Active)         WS-SUP720-BASE     SAD075000YF  
6    2  Supervisor Engine 720
(Warm)           WS-SUP720-BASE     SAD075109SZ  
7   48  48 port 10/100 mb
RJ45                 WS-X6348-RJ-45     SAL0752R3E6  
Mod MAC
addresses                       Hw    Fw           Sw           Status   
2  000e.8442.4850 to 000e.8442.485f   2.5   5.4(2)       8.2(0.56)TET Ok  
3  000e.8442.48f0 to 000e.8442.48ff   2.5   5.4(2)       8.2(0.56)TET Ok  
5  000d.290f.fd08 to 000d.290f.fd0b   3.0   7.7(1)       12.2(17a)SX1 Ok  
6  000e.3838.1a8c to 000e.3838.1a8f   3.0   7.7(1)       12.2(17a)SX1 Ok  
7  000e.84c8.54f0 to 000e.84c8.551f   6.8   5.4(2)       8.2(0.56)TET Ok  
Mod
Sub-Module                  Model              Serial        Hw  Statu
s   
5 Policy Feature Card 3       WS-F6K-PFC3A       SAD0752009D   2.0    Ok  
5 MSFC3 Daughterboard         WS-SUP720          SAD075109HX   2.0    Ok  
6 Policy Feature Card 3       WS-F6K-PFC3A       SAD0751085J   2.0    Ok  
6 MSFC3 Daughterboard         WS-SUP720          SAD0751077C   2.0    Ok  
7 Inline Power Module         WS-F6K-PWR                       0.0    Ok  
Mod Online Diag Status   
2 Pass
3 Pass  
5 Pass  
6 Pass  
7 Pass  
3.3. 配置机器名、telnet、密码  
在全局模式下,用conf t,进入配置模式,进行以下配置:
#conf t  
#clock timezone GMT 8 ;配置时区  
#clock set 13:30:21 31 JAN 2004 ;配置交换机时间  
#clock calendar-valid ;使能硬件时钟同步  
#service timestamps debug datetime localtime ;配置系统debug记录时间格式  
#service timestamps log datetime localtime ;配置系统日志记录时间格式  
#service password-encryption ;配置使用加密服务,主要针对口令加密  
#hostname xxxx ;配置交换机名称  
#enable secret  0 xxxxx ;配置enable口令  
#copy run start ;将配置信息保存到NVRAM中,重启动不会丢失  
#line vty 0 4 ;配置telnet  
#exec-timeout 30 0  
#password 0  xxxx  
#login  
3.4. 配置snmp  
#conf t  
#snmp-server community cisco ro(只读) ;配置只读通信字符串  
#snmp-server community secret rw(读写) ;配置读写通信字符串  
#snmp-server enable traps  ;配置网关SNMP TRAP  
#snmp-server host 10.254.190.1 rw ;配置网关工作站地址
3.5. 启动三层功能  
#ip routing ;启动路由功能  
3.6. 查看和配置系统环境变量  
使用show bootvar命令查看系统启动环境变量,包括BOOT, BOOTLDR, and
CONFIG_FILE参数:
Router# show bootvar  
BOOT variable = slot0:c6sup22-jsv-mz.121-5c.EX.bin,1;  
CONFIG_FILE variable does not exist  
BOOTLDR variable = bootflash:c6msfc2-boot-mz.121-3a.E4  
Configuration register is 0x2  
Router#  
改变BOOT,、BOOTLDR、CONFIG_FILE 这三个环境变量使用命令:
BOOT  #boot system  
BOOTLDR  #boot bootldr  
CONFIG_FILE #boot config


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/70632/showart_726225.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP