VLANコマンド
show vlan
VLAN
情報を表示します。【コマンドの構文】
show vlan <vlanID>
【パラメータ】
<vlanID> VLAN ID
を指定します。(例:1、2、all)
【デフォルト設定】
なし
【コマンドモード】
Privileged EXEC
【コマンドの例】
BS000D0B1D0270# show vlan all
VLAN Name Type Mgmt Ports
---- --- 1 Default VLAN Permanent UP Fa1, Fa2, Fa3, Fa4, Fa6
Fa7, Fa8, Fa9, Fa10, Fa11 Fa12, Fa13, Fa14, Fa15, Fa16 Fa17, Fa18, Fa19, Fa20, Fa21 Fa22, Fa23, Fa24, Fa25, Fa26
2 Vlan-2 Static DOWN Fa5
3 VLAN-3 Static DOWN Fa1, Fa2, Fa3, Fa4, Fa5 Fa10, Fa15, Fa16, Fa17, Fa18 Fa19
BS000D0B1D0270#
VLANコマンド
gvrp
システムに実装された
GVRP
プロトコルを有効または無効に設定します。【コマンドの構文】
gvrp no gvrp
【パラメータ】
なし
【デフォルト設定】
無効
【コマンドモード】
Global configuration
【コマンドの例】
show vlan-gvrp
GVRP
の設定情報を表示します。【コマンドの構文】
show vlan-gvrp
【パラメータ】
なし
! Enable GVRP
BS000D0B1D0270(config)# gvrp BS000D0B1D0270(config)#
! Disable GVRP
BS000D0B1D0270(config)# no gvrp BS000D0B1D0270(config)#
show vlan port
ポートの
VLAN
情報を表示します。【コマンドの構文】
show vlan port
【パラメータ】
なし
【デフォルト設定】
なし
【コマンドモード】
Privileged EXEC
【コマンドの例】
BS000D0B1D0270# show vlan port
Port PVID Acceptable Frame Type GVRP ---- ---- --- 1 1 Admit All Enabled 2 1 Admit All Enabled 3 1 Admit All Enabled 4 1 Admit All Enabled 5 2 Admit All Enabled 6 1 Admit All Enabled 7 1 Admit All Enabled 8 1 Admit All Enabled 9 1 Admit All Enabled 10 1 Admit All Enabled 11 1 Admit All Enabled 12 1 Admit All Enabled BS000D0B1D0270#
QoSコマンド
QoS コマンド
mls qos
システムに実装された
QoS
を有効または無効に設定します。【コマンドの構文】
mls qos no mls qos
【パラメータ】
なし
【デフォルト設定】
無効
【コマンドモード】
Global configuration
【コマンドの例】
!Disable Quality of Service BS000D0B1D0270(config)# no mls qos BS000D0B1D0270(config)#
!Enable Quality of Service BS000D0B1D0270(config)# mls qos BS000D0B1D0270(config)#
priority-queue cos-map
ポート伝送キューに
802.1p
トラフィッククラスをマッピングします。【コマンドの構文】
priority-queue cos-map <traffic class> <priority>
【パラメータ】
<traffic class>
トラフィッククラスを指定します(0~3)。
0:
最小、3:最大<priority>
優先度を指定します(0
~7)。
【デフォルト設定】
traffic class priority
0 1
1 0
2 0
3 1
4 2
5 2
6 3
7 3
【コマンドモード】
Global configuration
【コマンドの例】
! Queue 1 mapping to Traffic Class 5
BS000D0B1D0270(config)# priority-queue cos-map 1 5 BS000D0B1D0270(config)#
QoSコマンド
show mls qos
QoS
情報を表示します。【コマンドの構文】
show mls qos
【パラメータ】
なし
【デフォルト設定】
なし
【コマンドモード】
Privileged EXEC
【コマンドの例】
BS000D0B1D0270# show mls qos
Quality of Service Status: Disabled BS000D0B1D0270#
show priority-queue cos-map
Traffic Class
とQueue
の対応情報を表示します。【コマンドの構文】
show priority-queue cos-map
【パラメータ】
なし
【デフォルト設定】
なし
【コマンドモード】
Privileged EXEC
【コマンドの例】
BS000D0B1D0270# show priority-queue cos-map Traffic Class Queue
--- 0 0 1 0 2 2 3 1 4 2 5 2 6 3 7 3 BS000D0B1D0270#
Diffservコマンド
Diffserv コマンド diffserv classifier
DiffServ
のClassifier
を設定します。【コマンドの構文】
diffserv classifier <index> [src-mac <mac>] [dst-mac <mac>] [vlan-id <vid>] [dscp
<ds>] [protocol <pro>] [src-ip <ip>] ip <ip>] [src-l4-port <interface_port>] [dst-l4-port <interface_port>]
no diffserv classifier <index>
【パラメータ】
<index> DiffServ
のClassifier
インデックスを指定します。<mac> MAC
アドレスを指定します。<vid> VLAN ID
を指定します。<ds> IP
ヘッダの6
ビットDSCP
値を指定します。<pro> IP
ヘッダの8
ビットプロトコル値を指定します。TCP 6 UDP 17 ICMP 1 IGMP 2 RSVP 46
<ip> IP
アドレスを指定します。<interface_port>
ポート番号を指定します。例:
fastethernet0/4 . . . .ポート 4
を指定fastethernet0/8 . . . .ポート 8
を指定fa0/16 . . . .ポート 16
を指定【デフォルト設定】
なし
【コマンドモード】
diffserv inprofile
DiffServ
のin-profile
アクションを設定します。【コマンドの構文】
diffserv inprofile <index> [drop | policed-dscp <ds> | policed-precedence
<precedence> | cos <cos>]
【パラメータ】
<index> DiffServ
のin-profile
インデックスを指定します。<ds> IP
ヘッダの6
ビットDSCP
値を指定します。<precedence> IP
ヘッダの3
ビットTOS
値を指定します。<cos>
プライオリティTAG
の3
ビット優先度を指定します。
【デフォルト設定】
なし
【コマンドモード】
Global configuration command
【コマンドの例】
! Create a In-profile Index:23 , replace DSCP value to 42 BS000D0B1D0270(config)# diffserv inprofile 23 dscp 42 BS000D0B1D0270(config)#
! delete a in-profile Index 23
BS000D0B1D0270(config)# no diffserv inprofile 23 BS000D0B1D0270(config)#
Diffservコマンド
diffserv nomatch
DiffServ
のno-match
アクションを設定します。【コマンドの構文】
diffserv nomatch <index> [drop | policed-dscp <ds> | policed-precedence
<precedence> | cos <cos>]
【パラメータ】
<index> DiffServ
のno-match
インデックスを指定します。<ds> IP
ヘッダの6
ビットDSCP
値を指定します。<precedence> IP
ヘッダの3
ビットTOS
値を指定します。<cos>
プライオリティ TAGの3
ビット優先度を指定します。
【デフォルト設定】
なし
【コマンドモード】
Global configuration command
【コマンドの例】
! Create a no-match Index:2 , replace COS value to 3 BS000D0B1D0270(config)# diffserv nomatch 2 cos 3 BS000D0B1D0270(config)#
! delete a no-match Index 2
BS000D0B1D0270(config)# no diffserv nomatch 2 BS000D0B1D0270(config)#
diffserv outprofile
DiffServ
のout-profile
を設定します。【コマンドの構文】
diffserv outprofile <index> committed-rate <unit> burst-size <volume> [drop | policed-dscp <ds>]
【パラメータ】
<index> DiffServ
のout-profile
インデックスを指定します。<unit>
フレームの転送レートを指定します(0
~1023)。
<volume>
最大バーストサイズを指定します。<ds> IP
ヘッダの6
ビットDSCP
値を指定します。【デフォルト設定】
なし
【コマンドモード】
Global configuration command
【コマンドの例】
! Create a out-profile Index 4, set committed-rate to 23, burst-size 4 and out-profile action drop.
BS000D0B1D0270(config)# diffserv outprofile 4 committed-rate 23 burst-size 4 drop
BS000D0B1D0270(config)#
! delete a out-profile 4
BS000D0B1D0270(config)# no diffserv outprofile 4 BS000D0B1D0270(config)#
Diffservコマンド
diffserv portlist
DiffServ
のポートリストを設定します。【コマンドの構文】
diffserv portlist <index> <portlist>
【パラメータ】
<index> DiffServ
のポートリストインデックスを指定します。<portlist>
ポート番号を指定します。【デフォルト設定】
なし
【コマンドモード】
Global configuration command
【コマンドの例】
! Create a portlist Index 5, set port 3-7 . BS000D0B1D0270(config)# diffserv portlist 5 3-7 BS000D0B1D0270(config)#
! delete a port-list 5
BS000D0B1D0270(config)# no diffserv portlist 5 BS000D0B1D0270(config)#
diffserv policy
DiffServ
のポリシーを設定します。【コマンドの構文】
diffserv policy <index> portlist <portlist-index> classifier <classifier-index>
policy-recedence<value> [ inprofile <inprofile--index> nomatch <nomatch-index> outprofile <outprofile-<nomatch-index> ]
【パラメータ】
<index> DiffServ
のポリシーインデックスを指定します。<portlist-index>
ポリシーのポートリストインデックスを指定します。<classifier-index>
ポリシーのClassifier
インデックスを指定します。<value>
ポリシーのポリシー優先度を指定します(1
~65535)。
<inprofile-index>
ポリシーのin-profile
インデックスを指定します。<nomatch-index>
ポリシーのno-match
インデックスを指定します。<outprofile-index>
ポリシーのout-profile
インデックスを指定します。【デフォルト設定】
なし
【コマンドモード】
Global configuration command
【コマンドの例】
! Create a policy Index 5, precedence 100, classifier Index 4, in-profile Index 5, Portlist Index 3
BS000D0B1D0270(config)# diffserv policy 5 policy-precedence 100 classifier 4 inprofile 5 portlist 3
BS000D0B1D0270(config)#
! delete a policy Index 5
BS000D0B1D0270(config)# no diffserv policy 5 BS000D0B1D0270(config)#
Diffservコマンド
show diffserv classifier
DiffServ
の設定条件を表示します。【コマンドの構文】
show diffserv classifier
【パラメータ】
なし
【デフォルト設定】
なし
【コマンドモード】
Privileged EXEC
【コマンドの例】
BS000D0B1D0270# show diffserv classifier all Classifier Index : 23
Source IP Addr : Ignore Dest IP Addr : Ignore Source MAC Addr : 00:00:01:02:03:04 Dest MAC Addr : Ignore Source L4 Port : Ignore Dest L4 Port : Ignore DSCP : Ignore Protocol : Ignore VLAN ID : 40
BS000D0B1D0270#
show diffserv inprofile
DiffServ
のin-profile
情報を表示します。【コマンドの構文】
show diffserv inprofile
【パラメータ】
なし
【デフォルト設定】
なし
【コマンドモード】
Privileged EXEC
【コマンドの例】
BS000D0B1D0270# show diffserv inprofile In-Profile Action:
Index Action Value --- 23 policed-dscp 42 BS000D0B1D0270#
Diffservコマンド
show diffserv nomatch
DiffServ
のno-match
情報を表示します。【コマンドの構文】
show diffserv nomatch
【パラメータ】
なし
【デフォルト設定】
なし
【コマンドモード】
Privileged EXEC
【コマンドの例】
BS000D0B1D0270# show diffserv nomatch No-Match Action:
Index Action Value --- 2 policed-cos 3 BS000D0B1D0270#
show diffserv outprofile
DiffServ
のout-profile
情報を表示します。【コマンドの構文】
show diffserv outprofile
【パラメータ】
なし
【デフォルト設定】
なし
【コマンドモード】
Privileged EXEC
【コマンドの例】
BS000D0B1D0270# show diffserv outprofile Out-Profile Action:
Index Committed Rate Burst Size(KB) Action Value --- - - --- 3 3 4 drop ---BS000D0B1D0270#
Diffservコマンド
show diffserv portlist
DiffServ
のポートリスト情報を表示します。【コマンドの構文】
show diffserv portlist
【パラメータ】
なし
【デフォルト設定】
なし
【コマンドモード】
Privileged EXEC
【コマンドの例】
BS000D0B1D0270# show diffserv portlist Portlist:
Index Portlist
--- 5 3-7
BS000D0B1D0270#
show diffserv policy
DiffServ
のポリシー情報を表示します。【コマンドの構文】
show diffserv policy [<index>]
【パラメータ】
なし
【デフォルト設定】
なし
【コマンドモード】
Privileged EXEC
【コマンドの例】
BS000D0B1D0270# show diffserv policy all Policy :
Index Classifier Precedence In-Profile No-Match Out-Profile PortList Status --- --- --- --- --- --- --- 22 23 100 23 2 3 5 Enable BS000D0B1D0270#
BS000D0B1D0270# show diffserv policy 22 Policy Index : 22
Classifier Index : 23
Source IP Addr : Ignore Dest IP Addr : Ignore Source MAC Addr : 00:00:01:02:03:04 Dest MAC Addr : Ignore Source L4 Port : Ignore Dest L4 Port : Ignore DSCP : Ignore Protocol : Ignore VLAN ID : 40
Policy Precedence: 100
In-Profile Index : 23 In-Profile Action : policed-dscp-42 No-Match Index : 2 No-Match Action : policed-cos-3 Out-Profile Index: 3 Out-Profile Action : drop Committed Rate : 3 Burst Size : 4 KB PortList Index : 5 PortList : 3-7 BS000D0B1D0270#
Diffservコマンド
show diffserv policy precedence port
ポート情報別に
DiffServ
のポリシー優先順位を表示します。【コマンドの構文】
show diffserv policy-precedence port <port num> [sort index/precedence]
【パラメータ】
<port num>
ポート番号を指定します。sort index
インデックスを指定します。precedence
優先順位を指定します。【デフォルト設定】
なし
【コマンドモード】
Privileged EXEC
【コマンドの例】
BS000D0B1D0270# show diffserv policy-precedence port 5 sort precedence Selected Port Number: 5
Precedence Policy Index 100 22
BS000D0B1D0270# show diffserv policy-precedence port 5 sort policy-index Selected Port Number: 5
Policy Index Precedence 22 100 BS000D0B1D0270#
ARP コマンド arp timeout
ARP
テーブルのタイムアウト時間を設定します。【コマンドの構文】
arp timeout <value>
【パラメータ】
<value>
タイムアウト時間を秒単位で設定します。(30~86400)
【デフォルト設定】