본문 바로가기

네트워크/R&S 일반

Cat OS 명령어 모음

Port 트래픽 보기
IDC-BS#1> (enable) sh port mac 8/7
Port     Rcv-Unicast          Rcv-Multicast        Rcv-Broadcast
-------- -------------------- -------------------- --------------------
 8/7                        0                    0                    0

Port     Xmit-Unicast         Xmit-Multicast       Xmit-Broadcast
-------- -------------------- -------------------- --------------------
 8/7              20018565301            149789388            142747452

Vtp 설정
         . SWITCH>(enable) set vtp domain [domain name]
         . SWITCH>(enable) set vtp mode transparent
         . SWITCH>(enable) show vtp domain
         ☞ VTP mode는 Server/Client/Transparent중 Transparent로 지정

Sc0 인터페이스 설정

         . SWITCH>(enable) set interface sc0 12.52.170.4/255.255.255.0 12.52.170.255

Default GATEWAY 설정

         . SWITCH>(enable) set ip route 0.0.0.0/0.0.0.0 12.52.170.1
         . SWITCH>(enable) show ip route

Prompt/System name 설정 

         . SWITCH>(enable) set prompt [hostname]
         . SWITCH>(enable) set system name [hostname]

Boot config 설정

         . SWITCH>(enable) set boot system flash slot0:cat6000-sup2k8.7-2-2.bin
         . SWITCH>(enable) set boot system flash bootflash:cat6000-sup2k8.7-2-2.bin
         . SWITCH>(enable) set boot config-register 0x2102

Tacacs 설정

         . SWITCH>(enable) set tacacs server 12.26.109.225 primary
         . SWITCH>(enable) set authentication login tacacs enable telnet primary

Logging 설정

         . SWITCH>(enable) set logging server 12.52.200.7
         . SWITCH>(enable) set logging buffer 500
         . SWITCH>(enable) set logging server severity 5
          ☞ severity는 level 5(notification)로 지정한다.

Snmp 설정

         . SWITCH>(enable) set snmp community read-only guest
         . SWITCH>(enable) set snmp community read-write master
         . SWITCH>(enable) set ip permit enable snmp
         . SWITCH>(enable) set ip permit [ip address] snmp

NTP 설정

         . SWITCH>(enable) set ntp client enable
         . SWITCH>(enable) set ntp server 12.28.250.10
         . SWITCH>(enable) set timezone kst 9 0
         . SWITCH>(enable) show ntp

Creating an Ethernet VLAN

         . SWITCH>(enable) set vlan [vlan_num]
         . SWITCH>(enable) show vlan [vlan_num]

Deleting an Ethernet VLAN

         . SWITCH>(enable) clear vlan [vlan_num]

Assigning Switch Ports to a VLAN

         . SWITCH>(enable) set vlan [vlan_num] [mod_num/port_num]
         . SWITCH>(enable) show vlan [vlan_num]
         . SWITCH>(enable) show port status [mod_num/port_num]

Port enable/disable

         . SWITCH>(enable) set port enable [mod_num/port_num]
         . SWITCH>(enable) set port disable [mod_num/port_num]
         . SWITCH>(enable) show port state [mod_num/port_num]

Port speed,duplex

         . SWITCH>(enable) set port duplex [mod_num/port_num] [auto|half|full]
         . SWITCH>(enable) set port speed  [mod_num/port_num]  [auto|10|100]
         . SWITCH>(enable) show port status [mod_num/port_num]

Ether-Channel 설정 (필요시)

         . SWITCH>(enable) set port channel [port-list] mode [on/off/auto/desirable]
         . SWITCH>(enable) set port channel all distribution mac [both/single]
         . SWITCH>(enable) show port channel [mod_num/port_num]
          ☞ channel mode는 auto-desirable, or on-on으로 설정한다.

Trunk 설정 (필요시)

         . SWITCH>(enable) set trunk [mod_num/port_num] [on/off/auto/desirable]
                                     [isl/dot1q/dot10/lane/negotiate]
         . SWITCH>(enable) clear trunk [mod_num/port_num] [vlan]
         . SWITCH>(enable) show trunk [mod_num/port_num]
         ☞ trunk-mode는 on으로 설정하고 trunk-type은 isl로 설정한다.
         ☞ trunk vlan을 제한하거나, 제거시킬때 clear command를 사용한다.

Spanning-tree (PortFast)

          . SWITCH>(enable) set spantree portfast [mod_num/port_num] enable
          . SWITCH>(enable) show spantree [mod_num/port_num]
           ☞ forwarding delay (30초)를 생략함으로서 빠른 forwarding stat로 전환가능
           ☞ 일반 단말포트를 대상으로 enable하며, Switch, hub, oncenturator등의 장비와 연결되는 port에는 반드시 disable 시킨다.

Spanning-tree (Uplinkfast)

          . SWITCH>(enable) set spantree uplinkfast enable
          . SWITCH>(enable) show  spantree uplinkfast
          . SWITCH>(enable) set spantree uplinkfast disable
          . SWITCH>(enable) clear spantree uplinkfast
           ☞ blocking port와 root port의 uplink-group를 가진 switch에서 direct-link에
              대해서만 uplinkfast를 적용한다.
           ☞ uplinkfast 삭제시 disable 및 clear를 시켜줌으로써 port-cost에 더해진 3000을 원복할 수 있다. (Default cost, 1Gbps : 4, 100Mbps : 19, 10Mbps : 100)

Spanning-tree (Backbonefast)

          . SWITCH>(enable) set spantree backbonefast enable
          . SWITCH>(enable) show spantree backbonefast
          . SWITCH>(enable) set spantree backbonefast disable
           ☞ loop을 구성한 모든 switch에 enable 시켜야 하며, 설정시 undirect-link fail시에도Max-aging time을 생략함으로써 Link-up 시간을 단축시킬수 있다.
           ☞ backbonefast 해제시에는 disable 시킨다.