10-17-2020 10:11 PM
Hi Team,
I was wondering about below error when injecting the default route on R7 BGP, it gives below error and doesn't accept the default-originate. However, it does accept when adding the address family which it will then inject it under the address family instate of BGP
R7(config-router)#router bg 65111
R7(config-router)#neighbor 10.10.100.14 default-originate
% Policy commands not allowed without an address family
Should we inject it using the address-family instate such as, and what would be the implication when advertising to the neighbour?
R7(config)#router bgp 65111
R7(config-router)#address-family ipv4
R7(config-router-af)#neighbor 10.10.100.14 default-originate
Regards,
Butrus
Solved! Go to Solution.
10-18-2020 12:38 AM
Hello,
your only option is to configure this under the address family, using the command from your original post:
--> R7(config-router-af)#neighbor 10.10.100.14 default-originate
10-18-2020 12:09 AM
Hello,
what you encounter are the default settings in 'newer' IOS versions (I am not sure in which IOS version that started), where the address famili format is the default. The only neighbor commands available under the BGP process (without first configuring the address family) are:
R1(config-router)#neighbor 192.168.12.2 ?
bmp-activate Activate the BMP monitoring for a BGP peer
cluster-id Configure Route-Reflector Cluster-id (peers may
reset)
description Neighbor specific description
disable-connected-check one-hop away EBGP peer using loopback address
ebgp-multihop Allow EBGP neighbors not on directly connected
networks
fall-over session fall on peer route lost
ha-mode high availability mode
inherit Inherit a template
local-as Specify a local-as number
log-neighbor-changes Log neighbor up/down and reset reason
password Set a password
path-attribute BGP optional attribute filtering
peer-group Member of the peer-group
remote-as Specify a BGP neighbor
shutdown Administratively shut down this neighbor
timers BGP per neighbor timers
transport Transport options
ttl-security BGP ttl security check
update-source Source of routing updates
version Set the BGP version to match a neighbor
In 'older' versions, all commands were available under the BGP process, and you had the option to upgrade (which is irreversible) to the AFI format by using the 'bgp upgrade-cli' command.
10-18-2020 12:22 AM
Hi George,
Thanks for taking up your time going through this post, the output of the current version are below;
R7(config-router)#do show ve
Cisco IOS Software, Linux Software (I86BI_LINUX-ADVENTERPRISEK9-M), Version 15.6(3)M3a, DEVELOPMENT TEST SOFTWARE
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2017 by Cisco Systems, Inc.
Compiled Tue 19-Sep-17 10:03 by prod_rel_team
ROM: Bootstrap program is Linux
R7 uptime is 2 hours, 17 minutes
System returned to ROM by reload at 0
System image file is "unix:/opt/unetlab/addons/iol/bin/L3-adventerprise-15.6.bin"
Last reload reason: Unknown reason
This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.
A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html
If you require further assistance please contact us by sending email to
export@cisco.com.
Linux Unix (Intel-x86) processor with 340001K bytes of memory.
Processor board ID 67111025
8 Ethernet interfaces
4 Serial interfaces
1024K bytes of NVRAM.
Configuration register is 0x0
R7(config-router)#
if thats the case then how will it be possible for advertising the BGP to the specific BGP neighbor and not to all existing BGP neighbors?
10-18-2020 12:38 AM
Hello,
your only option is to configure this under the address family, using the command from your original post:
--> R7(config-router-af)#neighbor 10.10.100.14 default-originate
10-18-2020 01:01 AM
Hi George,
taking the advice as above, the neighbour still unable to receive the default from the R7. have a look at below R14 (Which is the neighbour);
Gateway of last resort is 0.0.0.0 to network 0.0.0.0
S* 0.0.0.0/0 is directly connected, Serial1/0
R14 still taken the default route which is configured with. am not sure whether we need to remove this default route?
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide