Re: 問題5963について

この質問の投稿一覧へ

なし Re: 問題5963について

msg# 1.1
depth:
1
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2013-7-2 15:40 | 最終変更
arashi1977  長老 居住地: 広島  投稿数: 1715
gakisan さん>

たしかnetworkコマンドは、mask指定しない場合はメジャーネットワーク境界でアドバタイズされるはずです。
http://www.cisco.com/cisco/web/support/JP/100/1008/1008063_bgp_noad-j.html#topic4

手元の検証環境でやってみました(12.4環境です)
R1:
router bgp 100
 no synchronization
 bgp log-neighbor-changes
 network 192.168.1.0
 neighbor 10.1.12.2 remote-as 200
 neighbor 10.1.12.2 next-hop-self
 no auto-summary
R2:
router bgp 200
 no synchronization
 bgp log-neighbor-changes
 network 192.168.100.0
 neighbor 10.1.12.1 remote-as 100
 neighbor 10.1.12.1 next-hop-self
 no auto-summary
な設定で

R1#sh ip bgp
BGP table version is 3, local router ID is 192.168.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

   Network          Next Hop            Metric LocPrf Weight Path
*> 192.168.1.0      0.0.0.0                  0         32768 i
*> 192.168.100.0    10.1.12.2                0             0 200 i
R1#sh ip bgp 192.168.100.0
BGP routing table entry for 192.168.100.0/24, version 3 ← ここ
Paths: (1 available, best #1, table Default-IP-Routing-Table)
  Not advertised to any peer
  200
    10.1.12.2 from 10.1.12.2 (192.168.100.1)
      Origin IGP, metric 0, localpref 100, valid, external, best
R2#sh ip bgp
BGP table version is 3, local router ID is 192.168.100.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

   Network          Next Hop            Metric LocPrf Weight Path
*> 192.168.1.0      10.1.12.1                0             0 100 i
*> 192.168.100.0    0.0.0.0                  0         32768 i
R2#sh ip bgp 192.168.1.0
BGP routing table entry for 192.168.1.0/24, version 3 ← ここ
Paths: (1 available, best #1, table Default-IP-Routing-Table)
  Not advertised to any peer
  100
    10.1.12.1 from 10.1.12.1 (192.168.1.1)
      Origin IGP, metric 0, localpref 100, valid, external, best
となるようです。

間違いではないでしょうけど、解説の最後で
引用:
・ピアに通知する経路情報を指定(通知する経路情報はルーティングテーブルに載っている必要がある)
(config-router)#network {ネットワークアドレス} mask {サブネットマスク}
と書いてるので省略不可だと思いますよねぇ?

実機のヘルプでも
R2(config-router)#network 192.168.100.0 ?
  backdoor   Specify a BGP backdoor route
  mask       Network mask
  nlri       Specify nlri type for network
  route-map  Route-map to modify the attributes
  <cr> ←ここ
となっているので、省略可能ということで
(config-router)#network {ネットワークアドレス}[ mask {サブネットマスク}]
とすべきかなぁ…と

投稿ツリー

  >フォーラム検索へ


Copyright (c) 2020 Ping-t All rights reserved.
ログイン
ユーザ名 or E-Mailアドレス:

パスワード:







Contact

LPI-Japan Logo

LPI Logo