DOC

catos

By Ricky Jenkins,2014-08-31 19:27
16 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

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