Created
April 20, 2021 14:00
-
-
Save rohitthakur2590/529854a9f97157eb227923b1da9692c3 to your computer and use it in GitHub Desktop.
Configure global BGP and bgp_address_family attributes for IOS platform
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: IOS_BGP | |
hosts: ios-lab | |
collections: | |
- cisco.ios.ios | |
tasks: | |
- name: Configure global BGP with bgp_global | |
cisco.ios.ios_bgp_global: | |
config: | |
as_number: 65000 | |
bgp: | |
router_id: | |
address: 192.168.1.1 | |
neighbor: | |
- remote_as: 65001 | |
ebgp_multihop: | |
hop_count: 255 | |
state: merged | |
- name: Configure address_family resource with bgp_address_family resource module | |
cisco.ios.ios_bgp_address_family: | |
config: | |
as_number: 65000 | |
address_family: | |
- afi: ipv4 | |
redistribute: | |
- ospf: | |
process_id: 1 | |
neighbor: | |
- address: 10.200.200.2 | |
activate: true | |
network: | |
- address: 10.100.100.0 | |
mask: 255.255.255.0 | |
- address: 10.200.200.0 | |
mask: 255.255.255.0 | |
- address: 172.16.0.0 | |
mask: 255.255.0.0 | |
- address: 192.168.1.1 | |
mask: 255.255.255.255 | |
- address: 10.25.25.0 | |
mask: 255.255.255.0 | |
- address: 10.25.26.0 | |
mask: 255.255.255.0 | |
state: merged |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment