Adding BGP config to templates
This commit is contained in:
parent
39399086d9
commit
2150d758fb
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user