レス
元トピ
次レスタイトル
Re: 問題5963について
フォーラム
最強WEB問題集CCNP ROUTE
投稿ユーザ(投稿日)
(2013/7/2)本文
gakisan さん>
たしかnetworkコマンドは、mask指定しない場合はメジャーネットワーク境界でアドバタイズされるはずです。
http://www.cisco.com/cisco/web/support/JP/100/1008/1008063_bgp_noad-j.html#topic4
手元の検証環境でやってみました(12.4環境です)
[code]
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
[/code]
な設定で
[code]
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
[/code]
[code]
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
[/code]
となるようです。
間違いではないでしょうけど、解説の最後で
-----引用(始)-----
・ピアに通知する経路情報を指定(通知する経路情報はルーティングテーブルに載っている必要がある)
(config-router)#network {ネットワークアドレス} mask {サブネットマスク}
-----引用(終)-----
と書いてるので省略不可だと思いますよねぇ?
実機のヘルプでも
[code]
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
←ここ
[/code]
となっているので、省略可能ということで
[code]
(config-router)#network {ネットワークアドレス}[ mask {サブネットマスク}]
[/code]
とすべきかなぁ…と(^^;
レス一覧
元トピ
次レス
Copyright (c) 2010
Ping-t All rights reserved.