atwiki-logo
  • 新規作成
    • 新規ページ作成
    • 新規ページ作成(その他)
      • このページをコピーして新規ページ作成
      • このウィキ内の別ページをコピーして新規ページ作成
      • このページの子ページを作成
    • 新規ウィキ作成
  • 編集
    • ページ編集
    • ページ編集(簡易版)
    • ページ名変更
    • メニュー非表示でページ編集
    • ページの閲覧/編集権限変更
    • ページの編集モード変更
    • このページにファイルをアップロード
    • メニューを編集
    • 右メニューを編集
  • バージョン管理
    • 最新版変更点(差分)
    • 編集履歴(バックアップ)
    • アップロードファイル履歴
    • ページ操作履歴
  • ページ一覧
    • ページ一覧
    • このウィキのタグ一覧
    • このウィキのタグ(更新順)
    • おまかせページ移動
  • RSS
    • このウィキの更新情報RSS
    • このウィキ新着ページRSS
  • ヘルプ
    • ご利用ガイド
    • Wiki初心者向けガイド(基本操作)
    • このウィキの管理者に連絡
    • 運営会社に連絡(不具合、障害など)
ページ検索 メニュー
DynagenでCCIEを目指す
  • ウィキ募集バナー
  • 目安箱バナー
  • 操作ガイド
  • 新規作成
  • 編集する
  • 全ページ一覧
  • 登録/ログイン
ページ一覧
DynagenでCCIEを目指す
  • ウィキ募集バナー
  • 目安箱バナー
  • 操作ガイド
  • 新規作成
  • 編集する
  • 全ページ一覧
  • 登録/ログイン
ページ一覧
DynagenでCCIEを目指す
ページ検索 メニュー
  • 新規作成
  • 編集する
  • 登録/ログイン
  • 管理メニュー
管理メニュー
  • 新規作成
    • 新規ページ作成
    • 新規ページ作成(その他)
      • このページをコピーして新規ページ作成
      • このウィキ内の別ページをコピーして新規ページ作成
      • このページの子ページを作成
    • 新規ウィキ作成
  • 編集
    • ページ編集
    • ページ編集(簡易版)
    • ページ名変更
    • メニュー非表示でページ編集
    • ページの閲覧/編集権限変更
    • ページの編集モード変更
    • このページにファイルをアップロード
    • メニューを編集
    • 右メニューを編集
  • バージョン管理
    • 最新版変更点(差分)
    • 編集履歴(バックアップ)
    • アップロードファイル履歴
    • ページ操作履歴
  • ページ一覧
    • このウィキの全ページ一覧
    • このウィキのタグ一覧
    • このウィキのタグ一覧(更新順)
    • このページの全コメント一覧
    • このウィキの全コメント一覧
    • おまかせページ移動
  • RSS
    • このwikiの更新情報RSS
    • このwikiの新着ページRSS
  • ヘルプ
    • ご利用ガイド
    • Wiki初心者向けガイド(基本操作)
    • このウィキの管理者に連絡
    • 運営会社に連絡する(不具合、障害など)
  • atwiki
  • DynagenでCCIEを目指す
  • トップページ
  • 動作検証 ネットワーク系
  • 20100605 BGP トランジットAS フルメッシュ構成

DynagenでCCIEを目指す

20100605 BGP トランジットAS フルメッシュ構成

最終更新:2010年06月12日 19:19

it_certification

- view
管理者のみ編集可
  • 目的
  • 構成
  • 検証1 フルメッシュ構成
  • 検証2 peer-groupによる設定

目的

  • トランジットASであるAS 1の設定方法を確認します。
  • AS 1内をフルメッシュでneighborを確立する事で、AS 2, AS 3間の経路交換を実現します。

構成

  • 設定概要
    • AS 1内はOSPFによってルーティングします。
    • 検証環境のスペック不足のため、ISP30は起動させません。
    • R2, ISP20間でeBGP neighborを確立します。
    • AS 1内はフルメッシュでiBGP neighborを確立します。
    • 初期設定は、トップページ/動作検証 ネットワーク系/20100604 BGP トランジットAS IGPによるルーティングと全く同じです。
  • 構成図
  • netファイル
model = 3620
[localhost]
	
	[[3620]]
		image = C:\Program Files\Dynamips\images\c3620-j1s3-mz.123-18.bin
		ram = 128
	
	[[ROUTER R1]]
		f0/0 = R2 f0/0
		f1/0 = R3 f1/0
	
	[[ROUTER R2]]
		f1/0 = ISP20 f1/0
		
	[[ROUTER R3]]

	[[ROUTER ISP20]]
  • 初期設定 R1
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip subnet-zero
!
!
!
ip cef
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
 ip address 1.1.1.1 255.255.255.255
!
interface FastEthernet0/0
 ip address 192.168.12.1 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 192.168.13.1 255.255.255.0
 duplex auto
 speed auto
!
router ospf 1
 log-adjacency-changes
 network 1.1.1.1 0.0.0.0 area 0
 network 192.168.12.1 0.0.0.0 area 0
 network 192.168.13.1 0.0.0.0 area 0
!
ip http server
ip classless
!
!
!
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
!
!
end
  • 初期設定 R2
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R2
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip subnet-zero
!
!
!
ip cef
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
 ip address 2.2.2.2 255.255.255.255
!
interface FastEthernet0/0
 ip address 192.168.12.2 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 192.168.122.2 255.255.255.0
 duplex auto
 speed auto
!
router ospf 1
 log-adjacency-changes
 network 2.2.2.2 0.0.0.0 area 0
 network 192.168.12.2 0.0.0.0 area 0
!
ip http server
ip classless
!
!
!
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
!
!
end
  • 初期設定 R3
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R3
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip subnet-zero
!
!
!
ip cef
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
 ip address 3.3.3.3 255.255.255.255
!
interface FastEthernet1/0
 ip address 192.168.13.3 255.255.255.0
 duplex auto
 speed auto
!
router ospf 1
 log-adjacency-changes
 network 3.3.3.3 0.0.0.0 area 0
 network 192.168.13.3 0.0.0.0 area 0
!
ip http server
ip classless
!
!
!
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
!
!
end
  • 初期設定 ISP20
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname ISP20
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip subnet-zero
!
!
!
ip cef
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
 ip address 20.20.20.20 255.255.255.255
!
interface FastEthernet1/0
 ip address 192.168.122.20 255.255.255.0
 duplex auto
 speed auto
!
ip http server
ip classless
!
!
!
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
!
!
end

検証1 フルメッシュ構成

  • BGPの設定
R2, ISP20間のeBGP neighborおよびAS 1内フルメッシュのiBGP neighborを設定します。
R1(config)#router bgp 1
R1(config-router)#neighbor 2.2.2.2 remote-as 1
R1(config-router)#neighbor 2.2.2.2 update-source Loopback 0
R1(config-router)#neighbor 3.3.3.3 remote-as 1
R1(config-router)#neighbor 3.3.3.3 update-source Loopback 0

R2(config)#ip route 20.20.20.20 255.255.255.255 192.168.122.20 240
R2(config)#
R2(config)#
R2(config)#router bgp 1
R2(config-router)#neigh
R2(config-router)#neighbor 20.20.20.20 remote-as 2
R2(config-router)#neighbor 20.20.20.20 update-source Loopback 0
R2(config-router)#neighbor 20.20.20.20 ebgp-multihop 2
R2(config-router)#
R2(config-router)#
R2(config-router)#neighbor 1.1.1.1 remote-as 1
R2(config-router)#neighbor 1.1.1.1 update-source Loopback 0
R2(config-router)#neighbor 1.1.1.1 next-hop-self
R2(config-router)#neighbor 3.3.3.3 remote-as 1
R2(config-router)#neighbor 3.3.3.3 update-source Loopback 0
R2(config-router)#neighbor 3.3.3.3 next-hop-self

R3(config)#router bgp 1
R3(config-router)#neigh
R3(config-router)#neighbor 1.1.1.1 remote-as 1
R3(config-router)#neighbor 1.1.1.1 update-source Loopback 0
R3(config-router)#neighbor 2.2.2.2 remote-as 1
R3(config-router)#neighbor 2.2.2.2 update-source Loopback 0

ISP20(config)#ip route 0.0.0.0 0.0.0.0 192.168.122.2
ISP20(config)#
ISP20(config)#
ISP20(config)#router bgp 2
ISP20(config-router)#neig
ISP20(config-router)#neighbor 2.2.2.2 remote-as 1
ISP20(config-router)#neighbor 2.2.2.2 update-source Loopback 0
ISP20(config-router)#neighbor 2.2.2.2 ebgp-multihop 2
ISP20(config-router)#
ISP20(config-router)#network 20.20.20.20 mask 255.255.255.255
ISP20(config-router)#network 192.168.122.0 mask 255.255.255.0
  • ルーティングテーブルの確認
AS 1内の全ルータにルートが伝わっている事を確認します。フルメッシュでiBGP neighborを構成する場合は、トップページ/動作検証 ネットワーク系/20100604 BGP トランジットAS IGPによるルーティングと異なりBGP同期を意識する必要はなさそうです。
R1#show ip route bgp
B    192.168.122.0/24 [200/0] via 2.2.2.2, 00:00:10
     20.0.0.0/32 is subnetted, 1 subnets
B       20.20.20.20 [200/0] via 2.2.2.2, 00:00:10
R1#

R2#show ip route bgp
     20.0.0.0/32 is subnetted, 1 subnets
B       20.20.20.20 [20/0] via 20.20.20.20, 00:00:19
R2#

R3#show ip route bgp
B    192.168.122.0/24 [200/0] via 2.2.2.2, 00:00:32
     20.0.0.0/32 is subnetted, 1 subnets
B       20.20.20.20 [200/0] via 2.2.2.2, 00:00:32
R3#
  • 設定削除
R1, R2, R3の設定を削除します。
R1(config)#no router bgp 1

R2(config)#no router bgp 1

R3(config)#no router bgp 1

検証2 peer-groupによる設定

  • BGPの設定
検証1と同様のBGP neighborを設定します。今回はルータ3台なので検証1のような設定方法でもneighborを確立できますが、ルータが増えると設定量が多くなり、とても保守できません。そこで、以下のようにpeer-groupを定義すると若干設定が簡素になります。
R1(config)#router bgp 1
R1(config-router)#neighbor GRP_IBGP peer-group
R1(config-router)#neighbor GRP_IBGP remote-as 1
R1(config-router)#neighbor GRP_IBGP update-source Loopback 0
R1(config-router)#
R1(config-router)#neighbor 2.2.2.2 peer-group GRP_IBGP
R1(config-router)#neighbor 3.3.3.3 peer-group GRP_IBGP

R2(config)#router bgp 1
R2(config-router)#neigh
R2(config-router)#neighbor 20.20.20.20 remote-as 2
R2(config-router)#neighbor 20.20.20.20 update-source Loopback 0
R2(config-router)#neighbor 20.20.20.20 ebgp-multihop 2
R2(config-router)#
R2(config-router)#neighbor GRP_IBGP peer-group
R2(config-router)#neighbor GRP_IBGP remote-as 1
R2(config-router)#neighbor GRP_IBGP update-source Loopback 0
R2(config-router)#neighbor GRP_IBGP next-hop-self
R2(config-router)#
R2(config-router)#neighbor 1.1.1.1 peer-group GRP_IBGP
R2(config-router)#neighbor 3.3.3.3 peer-group GRP_IBGP

R3(config)#router bgp 1
R3(config-router)#neighbor GRP_IBGP peer-group
R3(config-router)#neighbor GRP_IBGP remote-as 1
R3(config-router)#neighbor GRP_IBGP update-source Loopback 0
R3(config-router)#
R3(config-router)#neighbor 1.1.1.1 peer-group GRP_IBGP
R3(config-router)#neighbor 2.2.2.2 peer-group GRP_IBGP
  • ルーティングテーブルの確認
AS 1内の全ルータにルートが伝わっている事を確認します。
R1#show ip route bgp
B    192.168.122.0/24 [200/0] via 2.2.2.2, 00:00:34
     20.0.0.0/32 is subnetted, 1 subnets
B       20.20.20.20 [200/0] via 2.2.2.2, 00:00:34
R1#

R2#show ip route bgp
     20.0.0.0/32 is subnetted, 1 subnets
B       20.20.20.20 [20/0] via 20.20.20.20, 00:00:50
R2#

R3#show ip route bgp
B    192.168.122.0/24 [200/0] via 2.2.2.2, 00:00:47
     20.0.0.0/32 is subnetted, 1 subnets
B       20.20.20.20 [200/0] via 2.2.2.2, 00:00:47
R3#
「20100605 BGP トランジットAS フルメッシュ構成」をウィキ内検索
LINE
シェア
Tweet
添付ファイル
  • topology.jpg
DynagenでCCIEを目指す
記事メニュー

メインコンテンツ

  • トップページ
  • トップページ/動作検証 ネットワーク系

更新履歴

取得中です。

@Wiki

  • @wiki
  • @wikiご利用ガイド
  • プラグイン紹介
  • まとめサイト作成支援ツール




ここを編集
記事メニュー2
人気記事ランキング
  1. トップページ/動作検証 ネットワーク系/20100804 NTP
  2. トップページ/手順書 ネットワーク系/VLC media player (Windows版) 操作手順
  3. トップページ/動作検証 ネットワーク系/CBAC 基本設定
  4. トップページ/動作検証 ネットワーク系/20100428 OSPFv3 基本設定
  5. トップページ/動作検証 ネットワーク系/Frame Relay Dynagenを使用した設定例
  6. トップページ/動作検証 ネットワーク系/20100621 BGP タイマーの調節
  7. トップページ/動作検証 ネットワーク系/20100818 EEM applet
  8. トップページ/動作検証 ネットワーク系/ミラーポートの設定
もっと見る
最近更新されたページ
  • 2987日前

    トップページ
  • 4186日前

    トップページ/手順書 ネットワーク系/Loopbackインターフェースとの接続
  • 4186日前

    トップページ/手順書 ネットワーク系
  • 4186日前

    トップページ/手順書 開発系
  • 4186日前

    トップページ/手順書 サーバ系
  • 4186日前

    トップページ/動作検証 ネットワーク系
  • 4899日前

    トップページ/動作検証 ネットワーク系/INE Workbook Volume II lab 15
  • 4920日前

    トップページ/動作検証 ネットワーク系/INE Workbook Volume II lab 14
  • 4933日前

    メニュー
  • 4943日前

    トップページ/動作検証 ネットワーク系/INE Workbook Volume II lab 13
もっと見る
人気記事ランキング
  1. トップページ/動作検証 ネットワーク系/20100804 NTP
  2. トップページ/手順書 ネットワーク系/VLC media player (Windows版) 操作手順
  3. トップページ/動作検証 ネットワーク系/CBAC 基本設定
  4. トップページ/動作検証 ネットワーク系/20100428 OSPFv3 基本設定
  5. トップページ/動作検証 ネットワーク系/Frame Relay Dynagenを使用した設定例
  6. トップページ/動作検証 ネットワーク系/20100621 BGP タイマーの調節
  7. トップページ/動作検証 ネットワーク系/20100818 EEM applet
  8. トップページ/動作検証 ネットワーク系/ミラーポートの設定
もっと見る
最近更新されたページ
  • 2987日前

    トップページ
  • 4186日前

    トップページ/手順書 ネットワーク系/Loopbackインターフェースとの接続
  • 4186日前

    トップページ/手順書 ネットワーク系
  • 4186日前

    トップページ/手順書 開発系
  • 4186日前

    トップページ/手順書 サーバ系
  • 4186日前

    トップページ/動作検証 ネットワーク系
  • 4899日前

    トップページ/動作検証 ネットワーク系/INE Workbook Volume II lab 15
  • 4920日前

    トップページ/動作検証 ネットワーク系/INE Workbook Volume II lab 14
  • 4933日前

    メニュー
  • 4943日前

    トップページ/動作検証 ネットワーク系/INE Workbook Volume II lab 13
もっと見る
ウィキ募集バナー
新規Wikiランキング

最近作成されたWikiのアクセスランキングです。見るだけでなく加筆してみよう!

  1. MadTown GTA (Beta) まとめウィキ
  2. AviUtl2のWiki
  3. R.E.P.O. 日本語解説Wiki
  4. 機動戦士ガンダム EXTREME VS.2 INFINITEBOOST wiki
  5. シュガードール情報まとめウィキ
  6. ソードランページ @ 非公式wiki
  7. SYNDUALITY Echo of Ada 攻略 ウィキ
  8. シミュグラ2Wiki(Simulation Of Grand2)GTARP
  9. ドラゴンボール Sparking! ZERO 攻略Wiki
  10. 星飼いの詩@ ウィキ
もっと見る
人気Wikiランキング

atwikiでよく見られているWikiのランキングです。新しい情報を発見してみよう!

  1. アニヲタWiki(仮)
  2. ストグラ まとめ @ウィキ
  3. ゲームカタログ@Wiki ~名作からクソゲーまで~
  4. 初音ミク Wiki
  5. 発車メロディーwiki
  6. 機動戦士ガンダム バトルオペレーション2攻略Wiki 3rd Season
  7. 検索してはいけない言葉 @ ウィキ
  8. Grand Theft Auto V(グランドセフトオート5)GTA5 & GTAオンライン 情報・攻略wiki
  9. オレカバトル アプリ版 @ ウィキ
  10. MadTown GTA (Beta) まとめウィキ
もっと見る
全体ページランキング

最近アクセスの多かったページランキングです。話題のページを見に行こう!

  1. 参加者一覧 - ストグラ まとめ @ウィキ
  2. 魔獣トゲイラ - バトルロイヤルR+α ファンフィクション(二次創作など)総合wiki
  3. ロスサントス警察 - ストグラ まとめ @ウィキ
  4. ダギ・イルス - 機動戦士ガンダム バトルオペレーション2攻略Wiki 3rd Season
  5. 光の黄金櫃(遊戯王OCG) - アニヲタWiki(仮)
  6. 召喚 - PATAPON(パタポン) wiki
  7. ステージ - PATAPON(パタポン) wiki
  8. 美食神アカシア - アニヲタWiki(仮)
  9. 可愛い逃亡者(トムとジェリー) - アニヲタWiki(仮)
  10. 箱入り娘(パズル) - アニヲタWiki(仮)
もっと見る

  • このWikiのTOPへ
  • 全ページ一覧
  • アットウィキTOP
  • 利用規約
  • プライバシーポリシー

2019 AtWiki, Inc.