DOC

catos

By Ricky Jenkins,2014-08-31 19:27
15 views 0
catos

一、CATOS配置命令集

     I. 6509 configuration

     A. 管理交换机

     Console> enable

     进入交换机的CATOS的配置模式

     Console> (enable)

     Console> (enable) set system name Catalyst 6500

     设置交换机的名字

     Console> (enable) set prompt SY_6509_A>

     Catalyst 6000> (enable) set system contact runway@public.bta.net.cn

     设置系统连接

     Catalyst 6000> (enable) set system location Shenyang Huanxiang Buliding, Liaoning,

    China

     系统位置设置

     Catalyst 6000> (enable) show system

     系统查看

     PS1-Status PS2-Status Fan-Status Temp-Alarm Sys-Status Uptime d,h:m:s Logout

     ---------- ---------- ---------- ---------- ---------- -------------- ---------

     ok none ok off ok 0,04:04:07 20 min

     PS1-Type PS2-Type Modem Baud Traffic Peak Peak-Time

     ---------- ---------- ------- ----- ------- ---- -------------------------

     other none disable 9600 0% 0% Tue Jun 23 1998, 16:51:36

     System Name System Location System Contact

     ------------------------ ------------------------ ------------------------

     Catalyst 6000 Sunnyvale CA sysadmin@corp.com

     Catalyst 6000> (enable)

     Console> (enable) set time Mon 06/15/98 12:30:00

     设置系统时间

     Mon Jun 15 1998, 12:30:00

     Console> (enable) show time

     查看系统时间

     Mon Jun 15 1998, 12:30:02

     Console> (enable)

     接入语言设置

     Console> (enable) set banner motd #

     Welcome to the Liaoning Shenyang Catalyst 6509 A Switch!

     #

     MOTD banner set

     ip与实际名字的alias替代设置

     Console> (enable) set ip alias gsra 202.110.59.163

     Console> (enable) set ip alias gsrb 202.110.59.164

     Console> (enable) set ip alias switcha 202.110.59.168

     Console> (enable) set ip alias switchb 202.110.59.169

     IP alias added.

     查看替代设置

     Console> (enable) show ip alias

     default 0.0.0.0

     sparc 172.20.52.3

     cat6509 172.20.52.71

     B. set the ip address and dns

     Console> (enable) set interface sc0 202.110.59.168/28 (202.110.59.169/28 for 6509 B)

     Interface sc0 IP address and netmask set.

     Console> (enable) set interface sc0 10

     Interface sc0 vlan set.

     Console> (enable)

     Console> (enable) show interface

     sl0: flags=51

     slip 0.0.0.0 dest 0.0.0.0

     sc0: flags=63

     vlan 5 inet 172.20.52.124 netmask 255.255.255.248 broadcast 172.20.52.17

     Console> (enable)

     设置DNS

     DNS优先设置

     Console> (enable) set ip dns server 202.96.75.68 primary

     added to DNS server table as primary server.

     DNS备份设置

     Console> (enable) set ip dns server 202.96.64.68

     added to DNS server table as backup server.

     DNS域名设置

     Console> (enable) set ip dns domain sy.ln.cn

     Default DNS domain name set to sy.ln.cn

     打开DNS

     Console> (enable) set ip dns enable

     DNS is enabled

     查看DNS配置

     Console> (enable) show ip dns

     DNS is currently enabled.

     The default DNS domain name is: corp.com

     DNS name server status

     ---------------------------------------- -------

     dns_serv2

     dns_serv1 primary

     C. set the default gateway

     交换的路由设置

     Console> (enable) set ip route default 202.110.59.163 primary

     Route added.

     Console> (enable) set ip route default 202.110.59.164

     Route added.

     查看路由

     Console> (enable) show ip route

     Fragmentation Redirect Unreachable

     ------------- -------- -----------

     enabled enabled enabled

     The primary gateway: 10.1.1.1

     Destination Gateway Flags Use Interface

     ----------------------- ----------------------- ------ ---------- ---------

     default 10.1.1.20 G 0 sc0

     default 10.1.1.10 G 0 sc0

     default 10.1.1.1 UG 12 sc0

     10.0.0.0 10.1.1.100 U 0 sc0

     default default UH 0 sl0

     D. 密码设置

     Console> (enable) set password

     Enter old password:

     Enter new password:

     Retype new password:

     Password changed.

     Console> (enable) set enablepass

     Enter old password:

     Enter new password:

     Retype new password:

     Password changed.

     Console> (enable)

     E.配置端口(Omit)

     Console> (enable) set port name 1/1 Router Connection

     Port 1/1 name set.

     Console> (enable) set port name 1/2 Server Link

     Port 1/2 name set.

     查看端口

     Console> (enable) show port 1

     Port Name Status Vlan Duplex Speed Type

     ----- ------------------ ---------- ---------- ------ ----- ------------

     1/1 Router Connection connected trunk full 1000 1000BaseSX

     1/2 Server Link connected trunk full 1000 1000BaseSX

     <...output truncated...>

     Last-Time-Cleared

     --------------------------

     Wed Jun 16 1999, 16:25:57

     Console> (enable)

     设置端口速率活双工状态

     Console> (enable) set port speed 2/1 auto

     Port 2/1 speed set to auto-sensing mode.

     Console> (enable)

     是设置辨认端口关闭

     Console> (enable) set port negotiation 2/1 disable

     Port 2/1 negotiation enabled

     查看端口2/1

     Console> (enable) show port negotiation 2/1

     Port Link Negotiation

     ----- ----------------

     2/1 enabled

     Console> (enable)

     F. 测试连通性

     ping测试

     Console> (enable) ping somehost

     somehost is alive

     traceroute测试

     Console> (enable) traceroute somehost

     traceroute to somehost.company.com (10.1.2.3), 30 hops max, 40 byte packets

     1 engineering-1.company.com (173.31.192.206) 2 ms 1 ms 1 ms

     2 engineering-2.company.com (173.31.196.204) 2 ms 3 ms 2 ms

     3 gateway_a.company.com (173.16.1.201) 6 ms 3 ms 3 ms

     4 somehost.company.com (10.1.2.3) 3 ms * 2 ms

     G.配置一个链路捆绑

     Console> (enable) set port channel 2/2-8 desirable

     Ports 2/2-8 left admin_group 1.

     Ports 2/2-8 joined admin_group 2.

     Console> (enable)

     H. 培植VTP

     Console> (enable) set vtp domain Shenyang_Internet_Backbone

     VTP domain Lab_Network modified

     Console> (enable) set vtp mode server set vtp mode client on other 6509

     VTP domain Lab_Network modified

     查看VTP

     Console> (enable) show vtp domain

     Domain Name Domain Index VTP Version Local Mode Password

     -------------------------------- ------------ ----------- ----------- ----------

     Lab_Network 1 2 server -

     Vlan-count Max-vlan-storage Config Revision Notifications

     ---------- ---------------- --------------- -------------

     10 1023 4 0 enabled

     Last Updater V2 Mode Pruning PruneEligible on Vlans

     --------------- -------- -------- -------------------------

     172.20.52.70 disabled disabled 2-1000

     Console> (enable)

     查看VTP

     Console> (enable) show vtp statistics

     VTP statistics:

     summary advts received 4690

     subset advts received 7

     request advts received 0

     summary advts transmitted 4397

     subset advts transmitted 8

     request advts transmitted 0

     No of config revision errors 0

     No of config digest errors 0

     VTP pruning statistics:

     Trunk Join Trasmitted Join Received Summary advts received from

     non-pruning-capable device

     -------- --------------- ------------- ---------------------------

     1/1 0 0 0

     1/2 0 0 0

     Console> (enable)

     I. Configuring VLANs

     Console> (enable) set vlan 2 name Access_servers_Vlan

     Console> (enable) set vlan 10 name Routers_Vlan

     Vlan 2 configuration successful

     Console> (enable) show vlan

     VLAN Name Status IfIndex Mod/Ports, Vlans

     ---- -------------------------------- --------- ------- ------------------------

     500 Engineering active 344

     VLAN Type SAID MTU Parent RingNo BrdgNo Stp BrdgMode Trans1 Trans2

     ---- ----- ---------- ----- ------ ------ ------ ---- -------- ------ ------

     500 enet 100500 1500 - - - - - 0 0

     VLAN AREHops STEHops Backup CRF

     ---- ------- ------- ----------

     Console> (enable)

     设置vlan10

     /* gigobit(or 100M) erthernet to gsr to use connect GSR */ 为描述语言

     Console> (enable) set vlan 10 3/1,5/40-48 /* gigobit(or 100M) erthernet to gsr to use

    connect GSR */

     设置vlan2

     Console> (enable) set vlan 2 4/1-30 /*ethernet to as5800 or access server*/

     VLAN 2 modified.

     VLAN 1 modified.

     VLAN Mod/Ports

     ---- -----------------------

     2 4/1-30

     J. 配置vlan trunk

     Console> (enable) set trunk 1/1 auto

     Port(s) 1/1 trunk mode set to on.

     06/16/1998,22:16:39:DTP-5:Port 1/1 has become isl trunk

     06/16/1998,22:16:40:PAGP-5:Port 1/1 left bridge port 1/1.

     06/16/1998,22:16:40:PAGP-5:Port 1/1 joined bridge port 1/1.

     查看trunk

     Console> (enable) show trunk

     Port Mode Encapsulation Status Native vlan

     -------- ----------- ------------- ------------ -----------

     1/1 on isl trunking 1

     Port Vlans allowed on trunk

     -------- ---------------------------------------------------------------------

     1/1 1-1005

     Port Vlans allowed and active in management domain

     -------- ---------------------------------------------------------------------

     1/1 1,521-524

     Port Vlans in spanning tree forwarding state and not pruned

     -------- ---------------------------------------------------------------------

     1/1

     Console> (enable)

     核实连通使用ping命令:

     Switch1> (enable) ping switch2

     switch2 is alive

     Switch1> (enable)

     K. 检查端口状态和连通性?

     Console> (enable) show module

     Console> (enable) show port 1/1

     Console> (enable) show port capabilities 1/1

     L. 检查 flash or tftp

     /*flash is a PCI CARD*/

     Console> (enable) cd slot0:

     Console> (enable) pwd

     slot0

     查看系统

     Console> (enable)dir

     -#- -length- -----date/time------ name

     4 3134688 Mar 15 1999 08:27:01 cat6000-sup.5-2-1-CSX.bin

     5 3231989 Jan 24 1999 12:04:40 cat6000-sup.5-1-1-CSX.bin

     6 135 Feb 17 1999 11:30:05 dns_config.cfg

     1213952 bytes available (6388224 bytes used)

     Console> (enable)

     拷出设置

     Console> (enable) copy slot0:6000_config.cfg tftp

     文件地址

     IP address or name of remote host []? 172.20.52.3

     Name of file to copy to [6000_config.cfg]?

     /

     File has been copied successfully.

     Console> (enable)

     刷新系统

     Console> (enable) copy tftp config

     IP address or name of remote host []? 172.20.52.3

     Name of file to copy from []? dns-config.cfg

     Configure using tftp:dns-config.cfg (y/n) [n]? y

     /

     Finished network download. (134 bytes)

     >>

     >> set ip dns server 172.16.10.70 primary

     172.16.10.70 added to DNS server table as primary server.

     >> set ip dns server 172.16.10.140

     172.16.10.140 added to DNS server table as backup server.

     >> set ip dns enable

     DNS is enabled

     >> set ip dns domain corp.com

     Default DNS domain name set to corp.com

     Console> (enable)

     拷贝配置到tftp服务器

     Console> (enable) copy config tftp

     IP address or name of remote host []? 172.20.52.3

     Name of file to copy to []? cat6000_config.cfg

     Upload configuration to tftp:cat6000_config.cfg, (y/n) [n]? y

     .....

     ..........

     .......

     ..........

     ...........

     ..

     /

     Configuration has been copied successfully.

     Console> (enable)

     清除配置

     Console> (enable) clear config all

     This command will clear all configuration in NVRAM.

     This command will cause ifIndex to be reassigned on the next system startup.

     Do you want to continue (y/n) [n]? y

     ........

     .............................

     System configuration cleared.

     Console> (enable)

     M. 配置ip允许列表

     Console> (enable) set ip permit 172.16.0.0 255.255.0.0

     172.16.0.0 with mask 255.255.0.0 added to IP permit list.

     Console> (enable) set ip permit 172.20.52.32 255.255.255.224

     172.20.52.32 with mask 255.255.255.224 added to IP permit list.

     Console> (enable) set ip permit 172.20.52.3

     172.20.52.3 added to IP permit list.

     Console> (enable) show ip permit

     IP permit list feature disabled.

     Permit List Mask

     ---------------- ----------------

     172.16.0.0 255.255.0.0

     172.20.52.3

     172.20.52.32 255.255.255.224

     Denied IP Address Last Accessed Time Type

     ----------------- ------------------ ------

     Console> (enable) set ip permit enable

     IP permit list enabled.

     Console> (enable) show ip permit

     N. 配置网络管理系统

     Console> (enable) set snmp community read-only Everyone

     SNMP read-only community string set to 'Everyone'.

     Console> (enable) set snmp community read-write Administrators

     SNMP read-write community string set to 'Administrators'.

     Console> (enable) set snmp community read-write-all Root

     SNMP read-write-all community string set to 'Root'.

     Console> (enable) set snmp trap 172.16.10.10 read-write

     SNMP trap receiver added.

     Console> (enable) set snmp trap 172.16.10.20 read-write-all

     SNMP trap receiver added.

     Console> (enable) set snmp trap enable all

     All SNMP traps enabled.

     查看网络管理协议

     Console> (enable) show snmp

     RMON: Disabled

     Extended RMON: Extended RMON module is not present

     Traps Enabled:

     Port,Module,Chassis,Bridge,Repeater,Vtp,Auth,ippermit,Vmps,config,entity,stpx

     Port Traps Enabled: 1/1-2,4/1-48,5/1

     Community-Access Community-String

     ---------------- --------------------

     read-only Everyone

     read-write Administrators

     read-write-all Root

     Trap-Rec-Address Trap-Rec-Community

     ---------------------------------------- --------------------

     172.16.10.10 read-write

     172.16.10.20 read-write-all

     Console> (enable)

     O. InterVLAN 配置路由

     Console> (enable) switch console

     Router> exit

     Console> (enable)

     1.Catalyst 2900XL/3500XL/2950系列交换机端口监听配置以下命令配置端口监听?

     port monitor

     例如;F0/1F0/2F0/2同属VLAN1F0/1监听F0/2F0/2端口?

     interface FastEthernet0/1

     port monitor FastEthernet0/2

     port monitor FastEthernet0/5

     port monitor VLAN1

     2. Catalyst 40005000and 6000系列交换机端口监听配置

     以下命令配置端口监听?

     set span

     例如;模块6中端口1和端口2同属VLAN1;端口3VLAN2;端口45VLAN2端口2监听端口134 5

     set span 6/1,6/3-5 6/2

     以下命令禁止端口监听?

     set span disable [dest_mod/dest_port all]

     +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

     Console> (enable) session 15

     Router> exit

     Console> (enable)

     Router# configure terminal

     Enter configuration commands, one per line. End with CNTL/Z.

     Router(config)# ip routing

     Router(config)# interface vlan 2

     Router(config-if)# ip address 202.96.64.1 255.255.255.240 (2 for B)

     Router(config)# interface vlan 10

     Router(config-if)# ip address 202.110.59.161 255.255.255.240 (162 for B)

     Router(config-if)# ^Z

     Router#

    二、Native IOS命令集?

     通过控制台或者远程登陆的6500系列交换机配置交换部分和路由部分如下?

     1、交换部分?

     router>en

     router#conf t

     router(config)#host sw6500_1

     sw6500_1(config)#

     a 创建vlan

Report this document

For any questions or suggestions please email
cust-service@docsford.com