1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【忘備録】CCIE勉強メモ_20250905

1
Posted at

参考資料・時間

資料:
CCIE Enterprise Infrastructure Foundation lab
BGP lab 2

勉強時間:
約3時間

学習内容

BGPにおけるTemplateの使い方を少し学んだ。

peer-sessionとpeer-policyでは設定できるコマンドが異なる。

peer-sessionは文字通り接続に関する要素を指定。
 →ピア間のpasswordやremote-as等を指定できる。
peer-policyではアドバタイズ等に関する設定。
 →network、route-map等

特徴としては、peer-session同士、あるいはPeer-policy同士で継承が可能。

下記は以下の条件で構成している。
・共通で使用する設定をGLOBALで指定。
・接続対象ごとにremote-asを変更している。
・neighbor2.2.2.2, 3.3.3.3に対し、テンプレートを適用

router bgp 100
 template peer-session GLOBAL
  password cisco
  version 4
  update-source Loopback0
 exit-peer-session
 !
 template peer-session R2
  remote-as 200
  inherit peer-session GLOBAL
 exit-peer-session
 !
 template peer-session R3
  remote-as 300
  inherit peer-session GLOBAL
 exit-peer-session
!
 bgp log-neighbor-changes
 network 192.168.1.0
 neighbor 2.2.2.2 inherit peer-session R2
 neighbor 3.3.3.3 inherit peer-session R3
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?