古河電工ネットワーク機器の総合ブランド ファイテルネット
古河電工
FITELnetトップ製品ラインナップイベント&セミナーセールス&サポート
Routing to the Future FITELnet
設定例
IPアドレス指定による帯域制御の設定
全機種対応
説明
Router AでPC-Aから送信されEWAN1から出力するパケットに80Mbpsの帯域を確保します。
Router BでEWAN1から出力されPC-A宛に送信されるパケットに80Mbpsの帯域を確保します。
構成
コマンド設定

Router A

ip route 0.0.0.0 0.0.0.0 192.0.2.2
access-list 100 permit ip host 192.168.0.2 any
hostname Router_A
interface ewan 1
 qos output bandwidth 100M cbq
 qos-que cbq default-que bandwidth 20 parent root-que borrow default
 qos-que cbq high-que bandwidth 80 parent rootque priority 3 borrow
 qos-que cbq root-que bandwidth 100 parent NULL
 service-policy output high-policy
 ip address 192.0.2.1 255.255.255.252
exit
interface lan 1
 ip address 192.168.0.1 255.255.255.0
exit
class-map high-class
 match ip access-group 100
exit
action-map high-action
 set queuing high-que
exit
policy-map high-policy
 class high-class action high-action
exit
end

Router B

ip route 0.0.0.0 0.0.0.0 192.0.2.1
access-list 100 permit ip any host 192.168.0.2
hostname Router_B
interface ewan 1
 qos output bandwidth 100M cbq
 qos-que cbq default-que bandwidth 20 parent root-que borrow default
 qos-que cbq high-que bandwidth 80 parent rootque priority 3 borrow
 qos-que cbq root-que bandwidth 100 parent NULL
 service-policy output high-policy
 ip address 192.0.2.2 255.255.255.252
exit
interface lan 1
 ip address 192.168.10.1 255.255.255.0
exit
class-map high-class
 match ip access-group 100
exit
action-map high-action
 set queuing high-que
exit
policy-map high-policy
 class high-class action high-action
exit
end
設定手順

Router A

設定内容 画面表示例
特権ユーザモードへの移行
パスワードの入力

設定情報の初期化

設定モードの変更
設定入力




























設定保存



装置再起動
Router>enable
Enter password:
Router#
Router#clear working.cfg
Router#
Router#configure terminal
Router(config)#ip route 0.0.0.0 0.0.0.0 192.0.2.2
Router(config)#access-list 100 permit ip host 192.168.0.2 any
Router(config)#hostname Router_A
Router_A(config)#interface ewan 1
Router_A(config-if ewan 1)# qos output bandwidth 100M cbq
Router_A(config-if ewan 1)# qos-que cbq default-que bandwidth 20 parent root-que borrow default
Router_A(config-if ewan 1)# qos-que cbq high-que bandwidth 80 parent root-que priority 3 borrow
Router_A(config-if ewan 1)# qos-que cbq root-que bandwidth 100 parent NULL
Router_A(config-if ewan 1)# service-policy output high-policy
Router_A(config-if ewan 1)# ip address 192.0.2.1 255.255.255.252
Router_A(config-if ewan 1)#exit
Router_A(config)#interface lan 1
Router_A(config-if lan 1)# ip address 192.168.0.1 255.255.255.0
Router_A(config-if lan 1)#exit
Router_A(config)#class-map high-class
Router_A(config-class-map)# match ip access-group 100
Router_A(config-class-map)#exit
Router_A(config)#action-map high-action
Router_A(config-action-map)# set queuing high-que
Router_A(config-action-map)#exit
Router_A(config)#policy-map high-policy
Router_A(config-policy-map)# class high-class action high-action
Router_A(config-policy-map)#exit
Router_A(config)#
Router_A(config)#end
Router_A#
Router_A#save SIDE-A
% saving working-config
% finished saving

Router_A#reset
Going to reset with SIDE-A.frm and SIDE-A
Boot-back not scheduled for next boot.
Next rebooting firmware SIDE-A.frm is fine.
Are you OK to cold start?(y/n)y

※borrow設定について
親クラスに空きがあればその帯域を利用する設定です。設定帯域に抑制する場合はborrow設定を外してください。

Router B

設定内容 画面表示例
特権ユーザモードへの移行
パスワードの入力

設定情報の初期化

設定モードの変更
設定入力




























設定保存



装置再起動
Router>enable
Enter password:
Router#
Router#clear working.cfg
Router#
Router#configure terminal
Router(config)#ip route 0.0.0.0 0.0.0.0 192.0.2.1
Router(config)#access-list 100 permit ip any host 192.168.0.2
Router(config)#hostname Router_B
Router_B(config)#interface ewan 1
Router_B(config-if ewan 1)# qos output bandwidth 100M cbq
Router_B(config-if ewan 1)# qos-que cbq default-que bandwidth 20 parent root-que borrow default
Router_B(config-if ewan 1)# qos-que cbq high-que bandwidth 80 parent root-que priority 3 borrow
Router_B(config-if ewan 1)# qos-que cbq root-que bandwidth 100 parent NULL
Router_B(config-if ewan 1)# service-policy output high-policy
Router_B(config-if ewan 1)# ip address 192.0.2.2 255.255.255.252
Router_B(config-if ewan 1)#exit
Router_B(config)#interface lan 1
Router_B(config-if lan 1)# ip address 192.168.10.1 255.255.255.0
Router_B(config-if lan 1)#exit
Router_B(config)#class-map high-class
Router_B(config-class-map)# match ip access-group 100
Router_B(config-class-map)#exit
Router_B(config)#action-map high-action
Router_B(config-action-map)# set queuing high-que
Router_B(config-action-map)#exit
Router_B(config)#policy-map high-policy
Router_B(config-policy-map)# class high-class action high-action
Router_B(config-policy-map)#exit
Router_B(config)#
Router_B(config)#end
Router_B#
Router_B#save SIDE-A
% saving working-config
% finished saving

Router_B#reset
Going to reset with SIDE-A.frm and SIDE-A
Boot-back not scheduled for next boot.
Next rebooting firmware SIDE-A.frm is fine.
Are you OK to cold start?(y/n)y

※borrow設定について
親クラスに空きがあればその帯域を利用する設定です。設定帯域に抑制する場合はborrow設定を外してください。

設定状態の確認 1

アクセスリストを確認します。

確認内容 画面表示例
アクセスリスト情報を表示

設定が正しいことを確認
Router_A#show access-lists

Extended IP access list 100
  permit ip host 192.168.0.2 any
設定状態の確認 2

キューイング状況を確認します。

1.PC-Bが送信するパケットは「default-que」にキューイングされ、帯域は20Mbpsまで確保されます。

確認内容 画面表示例
キューの統計情報を表示















default-que のパケット数がカウントされていることを確認
Router_A#show qos queuing

interface : ewan 1
queuing type : CBQ
queuing-name : root-que (root que)
 priority : 0
 queue length/limit : 0/50
 sent/drop packets:
  packets : 3/0
  bytes : 234/0
 over count 0
 idelay count 0
queuing-name : default-que (default que)
 priority : 0
 queue length/limit : 0/50
 sent/drop packets:
  packets : 3/0
  bytes : 234/0
 over count 0
 delay count 0
 borrow : 0
queuing-name : high-que
 priority : 3
 queue length/limit : 0/50
 sent/drop packets:
  packets : 0/0
  bytes : 0/0
 over count 0
 delay count 0
 borrow : 0

2.PC-Aが送信するパケットは「high-que」にキューイングされ、帯域は80Mbpsまで確保されます。

確認内容 画面表示例
キューの統計情報を表示
























default-que のパケット数がカウントされていることを確認
Router_A#show qos queuing

interface : ewan 1
queuing type : CBQ
queuing-name : root-que (root que)
 priority : 0
 queue length/limit : 0/50
 sent/drop packets:
  packets : 7/0
  bytes : 546/0
 over count 0
 idelay count 0
queuing-name : default-que (default que)
 priority : 0
 queue length/limit : 0/50
 sent/drop packets:
  packets : 3/0
  bytes : 234/0
 over count 0
 delay count 0
 borrow : 0
queuing-name : high-que
 priority : 3
 queue length/limit : 0/50
 sent/drop packets:
  packets : 4/0
  bytes : 312/0
 over count 0
 delay count 0
 borrow : 0

ページトップへ

All Rights Reserved, Copyright(C) FURUKAWA ELECTRIC CO., LTD. 2011