古河電工ネットワーク機器の総合ブランド ファイテルネット
古河電工
FITELnetトップ製品ラインナップイベント&セミナーセールス&サポート
Routing to the Future FITELnet
設定例
他のルーティングプロトコル(RIP及びstatic) との境界に設置する設定
F60,F120を除く全機種対応
説明
RIPとOSPFを併用する設定です。
OSPFでは、RIPで学習した経路の再配送とデフォルトルートの通知をおこないます。
RIPでは、OSPFで学習した経路の再配送とデフォルトルートの通知をおこないます。
構成
コマンド設定

Router A

hostname Router_A
interface ewan 1
 ip address 192.0.2.6 255.255.255.252
exit
interface lan 1
 ip address 192.168.1.1 255.255.255.0
exit
router rip
 network 192.0.2.4 255.255.255.252
 redistribute connected
exit
end

Router B

ip route 0.0.0.0 0.0.0.0 pppoe 1
access-list 1 permit any
hostname Router_B
interface ewan 2
 ip address 192.0.2.1 255.255.255.252
exit
interface lan 1
 ip address 192.0.2.5 255.255.255.252
exit
interface pppoe 1
 ip nat inside source list 1 interface
 pppoe server internet
 pppoe account ********@***.***.ne.jp ******
 pppoe type host
exit
router rip
 default-information originate
 network 192.0.2.4 255.255.255.252
 redistribute ospf
exit
router ospf
 default-information originate
 network 192.0.2.0 0.0.0.3 area 0
 redistribute rip
exit
end

Router C

hostname Router_C
interface ewan 1
ip address 192.0.2.2 255.255.255.252
exit
interface lan 1
ip address 192.168.2.1 255.255.255.0
exit
router ospf
network 192.0.2.0 0.0.0.252 area 0
network 192.168.2.0 0.0.0.255 area 0
exit
end
設定手順

Router A

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

設定情報の初期化

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













設定保存



装置再起動
Router>enable
Enter password:
Router#
Router#clear working.cfg
Router#
Router#configure terminal
Router(config)#hostname Router_A
Router_A(config)#interface ewan 1
Router_A(config-if ewan 1)# ip address 192.0.2.6 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.1.1 255.255.255.0
Router_A(config-if lan 1)#exit
Router_A(config)#router rip
Router_A(config-rip)# network 192.0.2.4 255.255.255.252
Router_A(config-rip)# redistribute connected
Router_A(config-rip)#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

Router B

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

設定情報の初期化

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




























設定保存



装置再起動
Router>enable
Enter password:
Router#
Router#clear working.cfg
Router#
Router#configure terminal
Router_B(config)#ip route 0.0.0.0 0.0.0.0 pppoe 1
Router_B(config)#access-list 1 permit any
Router_B(config)#hostname Router_B
Router_B(config)#interface ewan 2
Router_B(config-if ewan 2)# ip address 192.0.2.1 255.255.255.252
Router_B(config-if ewan 2)#exit
Router_B(config)#interface lan 1
Router_B(config-if lan 1)# ip address 192.0.2.5 255.255.255.252
Router_B(config-if lan 1)#exit
Router_B(config)#interface pppoe 1
Router_B(config-if pppoe 1)# ip nat inside source list 1 interface
Router_B(config-if pppoe 1)# pppoe server internet
Router_B(config-if pppoe 1)# pppoe account ********@***.***.ne.jp ******
Router_B(config-if pppoe 1)# pppoe type host
Router_B(config-if pppoe 1)#exit
Router_B(config)#router rip
Router_B(config-rip)# default-information originate
Router_B(config-rip)# network 192.0.2.4 255.255.255.252
Router_B(config-rip)# redistribute ospf
Router_B(config-rip)#exit
Router_B(config)#router ospf
Router_B(config-ospf)# default-information originate
Router_B(config-ospf)# network 192.0.2.0 0.0.0.3 area 0
Router_B(config-ospf)# redistribute rip
Router_B(config-ospf)#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

Router C

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

設定情報の初期化

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













設定保存



装置再起動
Router>enable
Enter password:
Router#
Router#clear working.cfg
Router#
Router#configure terminal
Router(config)#hostname Router_C
Router_C(config)#interface ewan 1
Router_C(config-if ewan 1)# ip address 192.0.2.2 255.255.255.252
Router_C(config-if ewan 1)#exit
Router_C(config)#interface lan 1
Router_C(config-if lan 1)# ip address 192.168.2.1 255.255.255.0
Router_C(config-if lan 1)#exit
Router_C(config)#router ospf
Router_C(config-ospf)# network 192.0.2.0 0.0.0.252 area 0
Router_C(config-ospf)# network 192.168.2.0 0.0.0.255 area 0
Router_C(config-ospf)#exit
Router_C(config-ospf)#
Router_C(config)#end
Router_C#
Router_C#save SIDE-A
% saving working-config
% finished saving

Router_C#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
設定状態の確認 1

1 RIP経路情報を確認します。(Router A)

確認内容 画面表示例
RIP 経路情報を表示





Router_A#show ip route rip
Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF,
       B - BGP, I - IKE, U - SA-UP, D - REDUNDANCY, E - EventAction
       A - AutoConfig, > - selected route, * - FIB route, p - stale info.

R> * 0.0.0.0/0 [120/2] via 192.0.2.5, EWAN1, 00:10:11
R> * 192.168.2.0/24 [120/2] via 192.0.2.5, EWAN1, 00:01:45

※:ネクストホップとしてRouter BのLAN 1のIPアドレスであるデフォルトルートがRIPの経路として表示されていること、Router CのLAN側のネットワーク(192.168.2.0/24)がRIPの経路として表示されていることを確認してください。

2 RIP経路情報を確認します。(Router B)

確認内容 画面表示例
RIP 経路情報を表示





Router_B#show ip route rip
Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF,
       B - BGP, I - IKE, U - SA-UP, D - REDUNDANCY, E - EventAction
       A - AutoConfig, > - selected route, * - FIB route, p - stale info.

R> * 192.168.1.0/24 [120/2] via 192.0.2.6, LAN, 00:10:38

※:Router AのLAN側のネットワーク(192.168.1.0/24)が、RIPの経路として表示されていることを確認してください。

設定状態の確認 2

1 ネイバー状態を確認します。(Router B)

確認内容 画面表示例
OSPF ネイバー情報を表示


Router_B#show ip ospf neighbor

OSPF process 0:
Neighbor ID  Pri  State     Dead Time   Address    Interface        RXmtL RqstL DBsmL
192.168.2.1  1    Full/DR   00:00:31    192.0.2.2  EWAN1:192.0.2.1  0     0     0

※:Neighbor IDにRouter CのルータIDが表示され、StateがFullになっていることを確認してください。

2 ネイバー状態を確認します。(Router C)

確認内容 画面表示例
OSPF ネイバー情報を表示


Router_B#show ip ospf neighbor

OSPF process 0:
Neighbor ID  Pri  State     Dead Time   Address    Interface        RXmtL RqstL DBsmL
192.0.2.5    1    Full/DR   00:00:38    192.0.2.1  EWAN1:192.0.2.2  0     0     0

※:Neighbor IDにRouter BのルータIDが表示され、StateがFullになっていることを確認してください。

設定状態の確認 3

1 経路情報を確認します。(Router A)

確認内容 画面表示例
経路情報を表示









Router_A#show ip route
Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF
       B - BGP, I - IKE, U - SA-UP, D - REDUNDANCY, E - EventAction
       A - AutoConfig, > - selected route, * - FIB route, p - stale info.

R> * 0.0.0.0/0 [120/2] via 192.0.2.5, EWAN1, 00:10:07
C> * 127.0.0.0/8 is directly connected, LOOP0
C> * 192.0.2.4/30 is directly connected, EWAN1
C> * 192.168.1.0/24 is directly connected, LAN
R> * 192.168.2.0/24 [120/2] via 192.0.2.5, EWAN1, 00:01:41

※:ネクストホップとしてRouter BのLAN1のIPアドレスであるデフォルトルートがRIPの経路として表示されていること、Router CのLAN側のネットワーク(192.168.2.0/24)がRIPの経路として表示されていることを確認してください。

2 経路情報を確認します。(Router B)

確認内容 画面表示例
経路情報を表示












Router_A#show ip route
Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF
       B - BGP, I - IKE, U - SA-UP, D - REDUNDANCY, E - EventAction
       A - AutoConfig, > - selected route, * - FIB route, p - stale info.

S> * 0.0.0.0/0 [1/0] is directly connected, PPPoE1
C> * 100.1.1.1/32 is directly connected, PPPoE1
C> * 127.0.0.0/8 is directly connected, LOOP0
O    192.0.2.0/30 [110/1] is directly connected, EWAN2, 06:01:34
C> * 192.0.2.0/30 is directly connected, EWAN2
C> * 192.0.2.4/30 is directly connected, LAN
R> * 192.168.1.0/24 [120/2] via 192.0.2.6, LAN, 00:10:50
O> * 192.168.2.0/24 [110/2] via 192.0.2.2, EWAN2, 00:02:24

※:Router AのLAN側ネットワーク(192.168.1.0/24)が、RIPの経路として表示されていること、Router CのLAN側のネットワーク(192.168.2.0/24)が、OSPFの経路として表示されていることを確認してください。

3 経路情報を確認します。(Router C)

確認内容 画面表示例
経路情報を表示









Router_A#show ip route
Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF
       B - BGP, I - IKE, U - SA-UP, D - REDUNDANCY, E - EventAction
       A - AutoConfig, > - selected route, * - FIB route, p - stale info.

O> * 0.0.0.0/0 [110/10] via 192.0.2.1, EWAN1, 00:04:28
C> * 127.0.0.0/8 is directly connected, LOOP0
O    192.0.2.0/30 [110/1] is directly connected, EWAN1, 00:04:39
C> * 192.0.2.0/30 is directly connected, EWAN1
O> * 192.168.1.0/24 [110/20] via 192.0.2.1, EWAN1, 00:04:28
O    192.168.2.0/24 [110/1] is directly connected, LAN, 00:13:29
C> * 192.168.2.0/24 is directly connected, LAN

※:ネクストホップとしてRouter BのEWAN2のIPアドレスであるデフォルトルートがOSPFの経路として表示されていること、Router AのLAN側ネットワーク(192.168.1.0/24)がOSPFの経路として表示されていることを確認してください。

設定状態の確認 4

1 OSPF経路情報を確認します。(Router B)

確認内容 画面表示例
OSPF ルーティング情報を表示


経路情報が正しいことを確認

経路情報が正しいことを確認
Router_A#show ip ospf route
OSPF process 0:
============ OSPF network routing table ============
N    192.0.2.0/30         [1] area: 0.0.0.0
                          directly connected, EWAN1
N    192.168.2.0/24       [1] area: 0.0.0.0
                          via 192.0.2.2, EWAN2

============ OSPF router routing table =============

============ OSPF external routing table ===========

2 OSPF経路情報を確認します。(Router B)

確認内容 画面表示例
OSPF ルーティング情報を表示


経路情報が正しいことを確認

経路情報が正しいことを確認
Router_A#show ip ospf route
OSPF process 0:
============ OSPF network routing table ============
N    192.0.2.0/30         [1] area: 0.0.0.0
                          directly connected, EWAN1
N    192.168.2.0/24       [1] area: 0.0.0.0
                          directly connected, LAN

============ OSPF router routing table =============

============ OSPF external routing table ===========
設定状態の確認 5

1 OSPFデータベース情報を確認します。(Router B)

確認内容 画面表示例
OSPF データベース情報を表示





情報が正しいことを確認





情報が正しいことを確認




情報が正しいことを確認
Router_B#show ip ospf database

      OSPF Router process 0 with ID (192.0.2.5)

           Router Link States (Area 0.0.0.0)

Link ID      ADV Router   Age   Seq#        CkSum   Link count
192.0.2.5    192.0.2.5    160   0x80000013  0x7cab  1
192.168.2.1  192.168.2.1  161   0x80000004  0x3a38  2

           Net Link States (Area 0.0.0.0)

Link ID      ADV Router   Age   Seq#        CkSum
192.0.2.1    192.0.2.5    161   0x80000001  0x7429

           AS External Link States

Link ID      ADV Router   Age   Seq#        CkSum   Route
0.0.0.0      192.0.2.5   1144   0x8000000c  0x3eb7  E2 0.0.0.0/0 [0x0]
192.168.1.0  192.0.2.5    660   0x80000009  0xeb98  E2 192.168.1.0/24 [0x0]

2 OSPFデータベース情報を確認します。(Router C)

確認内容 画面表示例
OSPF データベース情報を表示





情報が正しいことを確認





情報が正しいことを確認




情報が正しいことを確認
Router_C#show ip ospf database

OSPF Router process 0 with ID (192.168.2.1)

           Router Link States (Area 0.0.0.0)

Link ID      ADV Router   Age   Seq#        CkSum   Link count
192.0.2.5    192.0.2.5    293   0x80000013  0x7cab  1
192.168.2.1  192.168.2.1  292   0x80000004  0x3a38  2

           Net Link States (Area 0.0.0.0)

Link ID      ADV Router   Age   Seq#        CkSum
192.0.2.1    192.0.2.5    294   0x80000001  0x7429

           AS External Link States

Link ID      ADV Router   Age   Seq#        CkSum   Route
0.0.0.0      192.0.2.5   1277   0x8000000c  0x3eb7  E2 0.0.0.0/0 [0x0]
192.168.1.0  192.0.2.5    793   0x80000009  0xeb98  E2 192.168.1.0/24 [0x0]

ページトップへ

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