From 9d29efd8069dcef64fb51f9698ca0d6bc97db2b1 Mon Sep 17 00:00:00 2001 From: Shannon Byrnes Date: Thu, 14 Mar 2024 14:09:17 -0700 Subject: [PATCH] fix: cisco config --- .../startup-config/cisco1.conf | 23 ++++++---- .../startup-config/cisco2.conf | 36 +++++++++++++-- .../startup-config/cisco3.conf | 46 +++++++++++++++++-- 3 files changed, 91 insertions(+), 14 deletions(-) diff --git a/internal-lab-setup-assets/startup-config/cisco1.conf b/internal-lab-setup-assets/startup-config/cisco1.conf index 2eb74de..966af70 100644 --- a/internal-lab-setup-assets/startup-config/cisco1.conf +++ b/internal-lab-setup-assets/startup-config/cisco1.conf @@ -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 @@ -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 @@ -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 diff --git a/internal-lab-setup-assets/startup-config/cisco2.conf b/internal-lab-setup-assets/startup-config/cisco2.conf index 8ddc0ab..fa4b3dd 100644 --- a/internal-lab-setup-assets/startup-config/cisco2.conf +++ b/internal-lab-setup-assets/startup-config/cisco2.conf @@ -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 @@ -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 @@ -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 ! diff --git a/internal-lab-setup-assets/startup-config/cisco3.conf b/internal-lab-setup-assets/startup-config/cisco3.conf index 3a5e4ac..962f84f 100644 --- a/internal-lab-setup-assets/startup-config/cisco3.conf +++ b/internal-lab-setup-assets/startup-config/cisco3.conf @@ -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 @@ -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 !