Adding BGP config to templates

This commit is contained in:
Dom 2023-11-19 23:11:27 +00:00
parent 39399086d9
commit 2150d758fb
2 changed files with 20 additions and 1 deletions

View File

@ -87,6 +87,7 @@ ip ssh version 2
!
interface Loopback0
ip address {{ loopback_ip }} 255.255.255.255
ip ospf 1 area 0
!
interface ATM0
no ip address
@ -162,7 +163,13 @@ interface Vlan20
!
router ospf 1
router-id {{ loopback_ip }}
passive-interface Loopback0
!
router bgp 65002
bgp router-id {{ loopback_ip }}
bgp log-neighbor-changes
neighbor 1.1.1.1 remote-as 65001
neighbor 1.1.1.1 ebgp-multihop 10
neighbor 1.1.1.1 update-source Loopback0
!
ip forward-protocol nd
no ip http server

View File

@ -102,6 +102,18 @@ protocols {
}
}
}
bgp {
group LAB-BGP {
type external;
multihop {
ttl 10;
}
local-address {{ loopback_ip }};
neighbor 2.2.2.2 {
peer-as 65002;
}
}
}
lldp {
interface all;
}