Skip to content

Commit

Permalink
fix: cisco config
Browse files Browse the repository at this point in the history
  • Loading branch information
sbyrnes committed Mar 14, 2024
1 parent d6a42e9 commit 9d29efd
Show file tree
Hide file tree
Showing 3 changed files with 91 additions and 14 deletions.
23 changes: 15 additions & 8 deletions internal-lab-setup-assets/startup-config/cisco1.conf
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,12 @@ netconf-yang agent
cdp
lldp
!
interface Loopback1
description PEER_A_NETWORK
ipv4 address 10.0.1.1 255.255.255.0
interface Loopback0
ip address 198.51.100.1 255.255.255.255
!
interface GigabitEthernet0/0/0/0
description -> CISCO3
shutdown
ip address 172.17.1.18 255.255.255.254
!
interface GigabitEthernet0/0/0/1
description -> CISCO2
Expand All @@ -49,9 +48,14 @@ interface GigabitEthernet0/0/0/1.200
ip address 192.0.2.1 255.255.255.0
!
interface GigabitEthernet0/0/0/2
description -> UBUNTU
description Engineering Building
shutdown
!
interface GigabitEthernet0/0/0/2.100
description Engineering Users
encapsulation dot1Q 100
ip address 10.1.0.1 255.255.255.0
!
route-policy PERMIT_ALL
pass
end-policy
Expand All @@ -69,18 +73,21 @@ router bgp 64500
address-family ipv4 unicast
redistribute connected
!
neighbor-group PEER_B
neighbor-group LAB
remote-as 64501
ebgp-multihop 2
password encrypted 15140403062B39
update-source GigabitEthernet0/0/0/1.100
update-source Loopback0
address-family ipv4 unicast
route-policy PERMIT_ALL in
route-policy PERMIT_ALL out
!
!
neighbor 198.51.100.2
use neighbor-group PEER_B
use neighbor-group LAB
!
neighbor 198.51.100.3
use neighbor-group LAB
!
!
xml agent tty
Expand Down
36 changes: 33 additions & 3 deletions internal-lab-setup-assets/startup-config/cisco2.conf
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,17 @@ netconf-yang agent
cdp
lldp
!
interface Loopback0
ip address 198.51.100.2 255.255.255.255
!
interface GigabitEthernet0/0/0/0
description -> CISCO3
ip address 172.17.1.20 255.255.255.254
shutdown
!
interface GigabitEthernet0/0/0/1
description -> CISCO1
ip address 172.17.1.17 255.255.255.254
ip address 172.17.1.19 255.255.255.254
!
interface GigabitEthernet0/0/0/1.100
description bar to foo
Expand All @@ -45,8 +49,12 @@ interface GigabitEthernet0/0/0/1.200
ip address 192.0.2.2 255.255.255.0
!
interface GigabitEthernet0/0/0/2
description -> UBUNTU
shutdown
description Biochemistry Users
!
interface GigabitEthernet0/0/0/2.100
description Biochemistry Users
encapsulation dot1Q 100
ip address 10.2.0.1 255.255.255.0
!
router static
address-family ipv4 unicast
Expand All @@ -56,6 +64,28 @@ router static
::/0 MgmtEth0/RP0/CPU0/0 {{ .MgmtIPv6Gateway }}
!
!
router bgp 64500
bgp router-id 198.51.100.1
address-family ipv4 unicast
redistribute connected
!
neighbor-group LAB
remote-as 64501
ebgp-multihop 2
password encrypted 15140403062B39
update-source Loopback0
address-family ipv4 unicast
route-policy PERMIT_ALL in
route-policy PERMIT_ALL out
!
!
neighbor 198.51.100.1
use neighbor-group LAB
!
neighbor 198.51.100.3
use neighbor-group LAB
!
!
xml agent tty
iteration off
!
Expand Down
46 changes: 43 additions & 3 deletions internal-lab-setup-assets/startup-config/cisco3.conf
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,35 @@ netconf-yang agent
cdp
lldp
!
interface Loopback0
ip address 198.51.100.3 255.255.255.255
!
interface GigabitEthernet0/0/0/0
description -> CISCO1
ip address 172.17.1.17 255.255.255.254
shutdown
!
interface GigabitEthernet0/0/0/1
description -> CISCO2
shutdown
ip address 172.17.1.21 255.255.255.254
!
interface GigabitEthernet0/0/0/1.100
description bar to foo
encapsulation dot1Q 100
ip address 198.51.100.2 255.255.255.0
!
interface GigabitEthernet0/0/0/1.200
description foo to biz
encapsulation dot1Q 200
ip address 192.0.2.2 255.255.255.0
!
interface GigabitEthernet0/0/0/2
description -> UBUNTU
shutdown
description -> Psychology Building
!
interface GigabitEthernet0/0/0/2.100
description Psychology Users
encapsulation dot1Q 100
ip address 10.3.0.1 255.255.255.0
!
router static
address-family ipv4 unicast
Expand All @@ -46,6 +64,28 @@ router static
::/0 MgmtEth0/RP0/CPU0/0 {{ .MgmtIPv6Gateway }}
!
!
router bgp 64500
bgp router-id 198.51.100.1
address-family ipv4 unicast
redistribute connected
!
neighbor-group LAB
remote-as 64501
ebgp-multihop 2
password encrypted 15140403062B39
update-source Loopback0
address-family ipv4 unicast
route-policy PERMIT_ALL in
route-policy PERMIT_ALL out
!
!
neighbor 198.51.100.1
use neighbor-group LAB
!
neighbor 198.51.100.2
use neighbor-group LAB
!
!
xml agent tty
iteration off
!
Expand Down

0 comments on commit 9d29efd

Please sign in to comment.