古河電工ネットワーク機器の総合ブランド ファイテルネット
古河電工
FITELnetトップ製品ラインナップイベント&セミナーセールス&サポート
Routing to the Future FITELnet
設定例
プロトコル指定による帯域制御の設定(PPPoEインタフェース利用時)
全機種対応
説明
RouterのPPPoE1から出力されるパケットについて、以下のように帯域を確保します。
WWW通信     : 30Mbps
FTP通信     : 20Mbps
その他の通信: 50Mbps
構成
コマンド設定
ip route 0.0.0.0 0.0.0.0 pppoe 1
access-list 1 permit any
access-list 101 permit tcp any any eq www
access-list 102 permit tcp any any eq ftp
access-list 102 permit tcp any any eq ftp-data
interface lan 1
 ip address 192.168.0.1 255.255.255.0
exit
interface pppoe 1
 qos output bandwidth 100M cbq
 qos-que cbq default-que bandwidth 50 parent root-que borrow default
 qos-que cbq que1 bandwidth 30 parent root-que priority 3 borrow
 qos-que cbq que2 bandwidth 20 parent root-que priority 3 borrow
 qos-que cbq root-que bandwidth 100 parent NULL
 service-policy output high-policy
 ip nat inside source list 1 interface
 pppoe server internet
 pppoe account ********@***.***.ne.jp ******
 pppoe type host
exit
class-map class1
 match ip access-group 101
exit
action-map action1
 set queuing que1
exit
class-map class2
 match ip access-group 102
exit
action-map action2
 set queuing que2
exit
policy-map policy1
 class class1 action action1
 class class2 action action2
exit

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

設定情報の初期化

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










































設定保存



装置再起動
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 pppoe 1
Router(config)#access-list 1 permit any
Router(config)#access-list 101 permit tcp any any eq www
Router(config)#access-list 102 permit tcp any any eq ftp
Router(config)#access-list 102 permit tcp any any eq ftp-data
Router(config)#interface lan 1
Router(config-if lan 1)# ip address 192.168.0.1 255.255.255.0
Router(config-if lan 1)#exit
Router(config)#interface pppoe 1
Router(config-if pppoe 1)# qos output bandwidth 100M cbq
Router(config-if pppoe 1)# qos-que cbq default-que bandwidth 50 parent root-que borrow default
Router(config-if pppoe 1)# qos-que cbq que1 bandwidth 30 parent root-que priority 3 borrow
Router(config-if pppoe 1)# qos-que cbq que2 bandwidth 20 parent root-que priority 3 borrow
Router(config-if pppoe 1)# qos-que cbq root-que bandwidth 100 parent NULL
Router(config-if pppoe 1)# service-policy output high-policy
Router(config-if pppoe 1)# ip nat inside source list 1 interface
Router(config-if pppoe 1)# pppoe server internet
Router(config-if pppoe 1)# pppoe account ********@***.***.ne.jp ******
Router(config-if pppoe 1)# pppoe type host
Router(config-if pppoe 1)#exit
Router(config)#class-map class1
Router(config-class-map)# match ip access-group 101
Router(config-class-map)#exit
Router(config)#action-map action1
Router(config-action-map)# set queuing que1
Router(config-action-map)#exit
Router(config)#class-map class2
Router(config-class-map)# match ip access-group 102
Router(config-class-map)#exit
Router(config)#action-map action2
Router(config-action-map)# set queuing que2
Router(config-action-map)#exit
Router(config)#policy-map policy1
Router(config-policy-map)# class class1 action action1
Router(config-policy-map)# class class2 action action2
Router(config-policy-map)#exit
Router(config)#
Router(config)#end
Router#
Router#save SIDE-A
% saving working-config
% finished saving

Router#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#show access-lists

Standard IP access list 1
  permit any

Extended IP access list 101
  permit tcp any any eq www

Extended IP access list 102
  permit tcp any any eq ftp
  permit tcp any any eq ftp-data
設定状態の確認 2

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

1.HTTP通信のパケットは「que1」にキューイングされ、帯域は30Mbpsまで確保されます。

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

































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

interface : pppoe 1
queuing type : CBQ
queuing-name : root-que (root que)
 priority : 0
 queue length/limit : 0/50
 sent/drop packets:
  packets : 36/0
  bytes : 11305/0
 over count 0
 delay count 0
queuing-name : default-que (default que)
 priority : 0
 queue length/limit : 0/50
 sent/drop packets:
  packets : 0/0
  bytes : 0/0
 over count 0
 delay count 0
 borrow : 0
queuing-name : que2
 priority : 3
 queue length/limit : 0/50
 sent/drop packets:
  packets : 0/0
  bytes : 0/0
 over count 0
 delay count 0
 borrow : 0
queuing-name : que1
 priority : 3
 queue length/limit : 0/50
 sent/drop packets:
  packets : 36/0
  bytes : 11305/0
 over count 0
 delay count 0
 borrow : 0

2.FTP通信のパケットは「que2」にキューイングされ、帯域は20Mbpsまで確保されます。

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
























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

interface : pppoe 1
queuing type : CBQ
queuing-name : root-que (root que)
 priority : 0
 queue length/limit : 0/50
 sent/drop packets:
  packets : 370/0
  bytes : 57337/0
 over count 0
 delay count 0
queuing-name : default-que (default que)
 priority : 0
 queue length/limit : 0/50
 sent/drop packets:
  packets : 310/0
  bytes : 44330/0
 over count 0
 delay count 0
 borrow : 0
queuing-name : que2
 priority : 3
 queue length/limit : 0/50
 sent/drop packets:
  packets : 42/0
  bytes : 1306/0
 over count 0
 delay count 0
 borrow : 0
queuing-name : que1
 priority : 3
 queue length/limit : 0/50
 sent/drop packets:
  packets : 36/0
  bytes : 11701/0
 over count 0
 delay count 0
 borrow : 0

3.TELNET通信のパケットは「default-que」にキューイングされ、帯域は50Mbpsまで確保される。

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















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

interface : pppoe 1
queuing type : CBQ
queuing-name : root-que (root que)
 priority : 0
 queue length/limit : 0/50
 sent/drop packets:
  packets : 421/0
  bytes : 60828/0
 over count 0
 delay count 0
queuing-name : default-que (default que)
 priority : 0
 queue length/limit : 0/50
 sent/drop packets:
  packets : 361/0
  bytes : 47821/0
 over count 0
 delay count 0
 borrow : 0
queuing-name : que2
 priority : 3
 queue length/limit : 0/50
 sent/drop packets:
  packets : 18/0
  bytes : 1306/0
 over count 0
 delay count 0
 borrow : 0
queuing-name : que1
 priority : 3
 queue length/limit : 0/50
 sent/drop packets:
  packets : 42/0
  bytes : 11701/0
 over count 0
 delay count 0
 borrow : 0

ページトップへ

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