IOS-XE の Cisco ルータ製品にて BGP で default-information originate コマンドをご利用される場合、以下のような仕様動作があります。
BGP で address-family ipv4 を作成する場合、グローバルモードで設定される default-information originate が自動的に address-family ipv4 に移動されます。
Router#show run | sec bgp
router bgp 100
bgp router-id 1.1.1.1
bgp log-neighbor-changes
default-information originate
Router#conf t
Router(config)#router bgp 100
Router(config-router)#address-family ipv4
Router(config-router-af)#end
Router#show run | sec bgp
router bgp 100
bgp router-id 1.1.1.1
bgp log-neighbor-changes
!
address-family ipv4
default-information originate
exit-address-family
!
この場合、default-information originate がグローバルモードのコマンド候補から削除され、address-family ipv4 の配下に移動されます。
Router(config)#router bgp 100
Router(config-router)#?
Router configuration commands:
address-family Enter Address Family command mode
bgp BGP specific commands
bmp BGP Monitoring Protocol
default Set a command to its defaults
exit Exit from routing protocol configuration mode
help Description of the interactive help system
neighbor Specify a neighbor router
no Negate a command or set its defaults
route-server-context Enter route server context command mode
scope Enter scope command mode
snmp Modify snmp parameters
template Enter template command mode
timers Adjust routing timers
Router(config-router)#address-family ipv4
Router(config-router-af)#?
Router Address Family configuration commands:
aggregate-address Configure BGP aggregate entries
auto-summary Enable automatic network number summarization
bgp BGP specific commands
default Set a command to its defaults
default-information Control distribution of default information
default-metric Set metric of redistributed routes
distance Define an administrative distance
distribute-list Filter networks in routing updates
exit-address-family Exit from Address Family configuration mode
help Description of the interactive help system
maximum-paths Forward packets over multiple paths
maximum-secondary-paths Maximum secondary paths
neighbor Specify a neighbor router
network Specify a network to announce via BGP
no Negate a command or set its defaults
redistribute Redistribute information from another routing protocol
segment-routing BGP Segment Routing Config
snmp Modify snmp parameters
synchronization Perform IGP synchronization
table-map Map external entry attributes into routing table
また、address-family ipv4 が一旦作成されると、address-family ipv4 を削除しても、default-information originate というコマンドは、該当機器をリロードまたは BGP を再設定しない限り、グローバルモードに戻りません。
Router(config)#router bgp 100
Router(config-router)#no address-family ipv4
Router(config-router)#do show run | sec bgp
router bgp 100
bgp router-id 1.1.1.1
bgp log-neighbor-changes
Router(config-router)#?
Router configuration commands:
address-family Enter Address Family command mode
bgp BGP specific commands
bmp BGP Monitoring Protocol
default Set a command to its defaults
exit Exit from routing protocol configuration mode
help Description of the interactive help system
neighbor Specify a neighbor router
no Negate a command or set its defaults
route-server-context Enter route server context command mode
scope Enter scope command mode
snmp Modify snmp parameters
template Enter template command mode
timers Adjust routing timers
ただし、default-information originate の設定自体は投入可能であり、投入後はグローバルモードには表示されませんが、address-family ipv4 を再度設定すると、また自動的に address-family ipv4 配下にて追加されます。
Router(config)#router bgp 100
Router(config-router)#default-information originate
Router(config-router)#do show run | sec bgp
router bgp 100
bgp router-id 1.1.1.1
bgp log-neighbor-changes
Router(config-router)#address-family ipv4
Router(config-router-af)#do show run | sec bgp
router bgp 100
bgp router-id 1.1.1.1
bgp log-neighbor-changes
!
address-family ipv4
default-information originate
exit-address-family
!
※上記内容は、IOS-XE 16.9.3 のバージョンで例として説明しております。