Ccie Enterprise Infrastructure Practice Lab3 Ver - 1
Ccie Enterprise Infrastructure Practice Lab3 Ver - 1
Ccie Enterprise Infrastructure Practice Lab3 Ver - 1
2.1 Section 2.1 : SDWAN Installation for Control and Data plane
2.2 Section 2.2 : Prepare VPN and Interfaces for all lab system
2.3 Section 2.3 : Tloc extension for New medion office site
3.1 Section 3.1: OSPF in NEW HQ //OSPF for SDWAN and Legacy devices
3.2 Section 3.2: OSPF in NEW DATACENTER //OSPF for SDWAN and Legacy devices
3.4 Section 3.4: BGP in NEW DATACENTER Part 1 // BGP in SDWAN and Legacy Devices
3.5 Section 3.5: BGP in NEW DATACENTER #1 Part 2 // BGP in SDWAN and Legacy Devices
3.6 Section 3.6: BGP in Remote Site: Part 1 // BGP in SDWAN and Legacy Devices
3.7 Section 3.7: BGP in Remote Sites: Part 2 // BGP in SDWAN and Legacy Devices
3.8 Section 3.8: Routing Policies //SDWAN Policies and BGP Policies
3.9 Section 3.9: IPv6 Routing // SDWAN IPv6 and Legacy Devices IPv6
7. SECTION 6 : AUTOMATION
7.1 PYTHON : Use Python to get Data from Routers Legacy and Vedges.
7.2 ANSIBLE : Add inventory, write basic playbooks to configure OSPF routing, push playbooks to
perform on Routers
TOPOLOGY
1. SECTION 1: Layer 2 technologies
1.1 Section 1.1: LAN Access
Question:
Access-port must immediately transition to the forwarding state upon link up, as long as they do
not receive a BPDU. Use the minimal number of commands per switch to enable this feature.
If an access-port receives a BPDU, it must automatically shutdown. Use the minimal number of
commands per switch to enable this feature.
Ports that were shutdown must attempt to automatically recover after 10 minutes.
None of the switches can generate a TC.
SOLUTON:
SW100/SW101/SW110/SW111/SW200/SW201/SW210/SW211/SW300/SW301/SW310/SW400/SW40
1/SW410/SW500/SW501/SW510/SW600
Configure the Headquater’s Network as well as the large and medium office network as the following
requirements:
SOLUTION
SW300/SW400/SW501
SW301/401/500
SW310/410/510
SW300 must be the spanning tree root bridge and must maintain a signle spanning tree instance
for the following VLANs: 2000, 2002, 2004, 2006, 2008 (use instance number 2).
SW301 must be the spanning tree root bridge and must maintain a single spanning tree instance
for the following VLANs: 2001, 2003, 2005, 2007, 2009 (use instance number 1).
All other VLANS, except 3001 must share the default spanning tree instance.
Ensure that insterface E0/2 of SW300 and SW301 is a Dot1q trunk and that it switches frames for
VLAN 3001 only.
SW300, SW301, and SW310 must not have any blocked ports for any access VLANs (i.e 2000-
2009).
SW310 must have the least chance of being elected the root bridge for any VLANs.
None of the three switches may run more than four instances of spanning tree any points in time.
Configure all access switches in both DC network (SW110, SW111, SW210, SW211 as the following
requirements:
SW300/301/310
SW300
int e0/2
sw trunk allow vlan 3001
sw trunk en do
sw mod trunk
sw nonego
span mst 2 pri 0
SW301
int e0/2
sw trunk all vlan 3001
sw trunk en do
sw mod trunk
sw nonego
span mst 1 pri 0
SW310
SW110/SW111/SW210/SW211
The Ethernet WAN Link must rely on a layer 2 protocol that supports authentication and layer 3
protocol negotiation.
The service provider expects that R70 completes a three-way handshake by providing the
expected response of a challenge requested.
R70 must use the hostname: R70 and password CCIE
R70 must receive an IP address from R8 and must install a default route pointing to 201.99.70.1
Ensure that R70 can successfully ping 8.8.8.8, which is located in the ISP#2 cloud.
You are not allowed to configure any static route in R70 in order to archive the previous
requirements.
Use the pre-configured dialer1 interface as appropriate.
R70
int e0/0
no ip add
int dialer 1
ip add nego
ip mtu 1492
en ppp
dia pool 1
ppp chap hostname R70
ppp chap pass 0 CCIE
ppp ipcp route default
!
int e0/0
pppoe enable group global
pppoe-client dial-pool-number 1
Install Control Plane and Data Plan of SDwan, lets follow this lab : https://user.eve-
nglab.com/store/labs/detail?id=15887540878021
Or refer to CCIE Enterprise Infrastructure practice lab - SDWAN appendix at the End of this workbooks.
2.2 Section 2.2 : Prepare VPN and Interfaces for all lab system
(Using Vmanage Template to config Vedge)
Requirements: Use Vmanage template to configure all Vedge (System, VPN, Interface and Protocol ) .
Make sure all Control and Data still working after you make configuration.
3. 3. SECTION 3 SDWAN advance features and Layer 3 Technologies
3.1 3.1 Section 3.1: OSPF in NEW HQ //OSPF for SDWAN and Legacy devices
• Both gateway router of the Headquarters network must always advertise a default route into
the OSPF domain.
Check the output carefully, if between SW300 and SW301 you see the neighbor via vlan 3001, it means
you must enable OSPF for VLAN 3001 in both switches.
SW300
SW301
SW300/SW301
ip domain lookup
ip host SW301 10.3.131.131
ip host SW300 10.3.130.130
ip host R31 10.3.31.31
ip host R30 10.3.30.30
ip ospf name-lookup
R3/R31 follow the guide on Video. Because SDwan need a lot of step so follow Video is better.
3.2 3.2 Section 3.2: OSPF in NEW DATACENTER //OSPF for SDWAN and Legacy
devices
In order to speed up OSPF convergence in the DC#1 network, limit the number of IP prefixes that carried
in OSPF LSAs that OSPF is preconfigured in all required devices in DC#1.
All OSPF devices must exclude the IP prefixes of connected networks when advertising their type
1 router LSA, except for prefixes associated with loopbacks or passive interfaces.
All host loopbacks are the only OSPF Intra-area prefixes that may appear in any DC device’s routing
table.
Your solution must still apply if any new interface was added to the OSPF domain.
Do not use any prefix-list or other explicit filter anywhere.
Do not configure any interface as unnumbered.
Do not remove any pre-configuration.
SW100
router ospf 1
router-id 10.1.100.100
!
int range e0/0-3, e1/0-2, lo0-1
ip os 1 are 0
SW101
router ospf 1
router-id 10.1.101.101
!
int range e0/0-3, e1/0-2, lo0-1
ip os 1 are 0
SW110
router ospf 1
router-id 10.1.110.110
!
int range e1/0-3, e2/0, lo0, vlan2000
ip os 1 are 0
SW111
router ospf 1
router-id 10.1.111.111
!
int range e1/0-3, e2/0, lo0, vlan2001
ip os 1 are 0
R40
router ospf 1
router-id 10.4.40.40
int range e0/1-3, l0
ip os 1 are 0
R41
router ospf 1
router-id 10.4.41.41
int range e0/1-3, l0
ip os 1 are 0
SW400
router ospf 1
router-id 10.4.0.1
int range e0/0, e1/0-2, l0, vlan 2000-2001
ip os 1 are 0
SW401
router ospf 1
router-id 10.4.0.2
int range e0/0, e1/0-2, l0, vlan 2000-2001
ip os 1 are 0
R42
router ospf 1
router-id 10.4.42.42
int range e0/0-1, lo0
ip os 1 are 0
router ospf 2
int e0/2
ip os 2 are 0
R100
router ospf 2
router-id 10.100.100.100
int range e0/0, lo0, lo1, lo100
ip os 2 are 0
Note:
If in your exam, maybe 172.17.100.100 is R100 interface e0/1’s ip address so you
need move ip ospf 1 are 0 from Lo1 to e0/1 be careful.
R42
ip prefix-list FILTERING se 1 deny 10.0.0.0/16
ip prefix-list FILTERING se 5 permit 10.0.0.0/13 ge 16 le 16
route-map FILTERING per 10
mat ip address prefix-list FILTERING
!
router ospf 2
redis bgp 65004 subnets route-map FILTERING
router bgp 65004
bgp redistribute-internal
redis ospf 2
3.4 3.4 Section 3.4: BGP in NEW DATACENTER Part 1 // BGP in SDWAN and Legacy
Devices
Assuming that the network topology will remin unchanged for the foreseeable
future the network architech devided to reduce the amount and complexity of CLI
configuration and save CPU and memory usage.
All six routers and four switches must run BGP using the AS number 65001
(including R10, R11, R12, R13, R14, R15, SW100, SW101, SW110, SW111).
All internal BGP sessions must be established using interface loopback0 and
must be secured with a MD5 hash of the string “cisco” (without quotes).
R13 must maintain an active peering with all BGP speakers in the autonomous
system.
All BGP speakers except R13 must maintain only one active internal BGP
session.
R13 must be configured in a way that allowes BGP to peer with a group of
neighbor that are defined by a range of IP addresses.
R13 must not require any additional configurion if a new internal BGP peer is
added to the network.
The next-hop of any prefix received from any external BGP peer must always
be the interface Loopbacks of the corresponding local BGP router.
Solution
R13
router bgp 65001
bgp router-id 10.1.13.13
bgp listen range 10.1.0.0/16 peer-group IBGP
neighbor IBGP peer-group
neighbor IBGP remote-as 65001
neighbor IBGP password cisco
neighbor IBGP update-source loopback0
neighbor IBGP route-reflector-client
SW100/101/110/111/
router bgp 65001
bgp router-id 10.1.x.x (X= Loopback ID)
neighbor 10.1.13.13 remote 65001
neighbor 10.1.13.13 pass cisco
neighbor 10.1.13.13 update-source loopback0
SW111
router bgp 65001
network 10.1.201.0 mask 255.255.255.0
3.5 3.5 Section 3.5: BGP in NEW DATACENTER #1 Part 2 // BGP in SDWAN and
Legacy Devices
The network architect decided to maximize link utilization in the DC#1.
All BGP routers in AS#65001 must be configured with the minimum send
and/or receive capabilities, in order to ensure multiple paths through the
same peering session for the same prefix.
New paths must not implicitly replace any previous equivalent paths.
Only two of the best paths must advertised.
R13:
router bgp 65001
bgp additional-paths select best 2
bgp additional-paths send
neighbor IBGP advertise additional-paths best 2
maximum-path ibgp 2
SW100/101/110/111
router bgp 65001
neighbor 10.1.13.13 additional-paths receive
maximum-path ibgp 2
3.6 3.6 Section 3.6: BGP in Remote Site: Part 1 // BGP in SDWAN and Legacy
Devices
3.7 Section 3.7: BGP in Remote Sites: Part 2 // BGP in SDWAN and Legacy Devices
3.8 Section 3.8: Routing Policies //SDWAN Policies and BGP Policies
3.9 Section 3.9: IPv6 Routing // SDWAN IPv6 and Legacy Devices IPv6
R1 and R2 are P routers they must switch packets based on the labels and
must no run BGP protocol.
R3, R4, R5, R6 are PE routers they must exchange VPNv4 prefixes with each
other and peer with their connected VE router using BGP.
All PE routers must serve the “HollyMaya” VPN as described in the MPLS VPN
Topology.
Do not configure a route-reflector or confederation in AS#10000
LDP must be enabled on all right interfaces and must derive its Router ID
using interface loopback0.
At the end of the exam, the following output must be seen on all four PE
routers (the only difference maybe the BGP Table (7) version number and
order of paths):
Solution:
R3
router bgp 10000
bgp router-id 100.0.0.3
no bgp default ipv4-unicast
neighbor IBGP peer-group
neighbor IBGP remote-as 10000
neighbor IBGP update-source loopback0
neighbor 100.0.0.4 peer-group IBGP
neighbor 100.0.0.5 peer-group IBGP
neighbor 100.0.0.6 peer-group IBGP
!
address ipv4
neighbor 100.0.0.4 ac
neighbor 100.0.0.5 ac
neighbor 100.0.0.6 ac
!
address vpnv4
neighbor 100.0.0.4 ac
neighbor 100.0.0.5 ac
neighbor 100.0.0.6 ac
R4
router bgp 10000
bgp router-id 100.0.0.4
no bgp default ipv4-unicast
neighbor IBGP peer-group
neighbor IBGP remote-as 10000
neighbor IBGP update-source loopback0
neighbor 100.0.0.3 peer-group IBGP
neighbor 100.0.0.5 peer-group IBGP
neighbor 100.0.0.6 peer-group IBGP
!
add ipv4
neighbor 100.0.0.3 ac
neighbor 100.0.0.5 ac
neighbor 100.0.0.6 ac
!
add vpnv4
neighbor 100.0.0.3 ac
neighbor 100.0.0.5 ac
neighbor 100.0.0.6 ac
R5
router bgp 10000
bgp router-id 100.0.0.5
no bgp default ipv4-unicast
neighbor IBGP peer-group
neighbor IBGP remote-as 10000
neighbor IBGP update-source loopback0
neighbor 100.0.0.3 peer-group IBGP
neighbor 100.0.0.4 peer-group IBGP
neighbor 100.0.0.6 peer-group IBGP
!
add ipv4
neighbor 100.0.0.3 ac
neighbor 100.0.0.4 ac
neighbor 100.0.0.6 ac
!
add vpnv4
neighbor 100.0.0.3 ac
neighbor 100.0.0.4 ac
neighbor 100.0.0.6 ac
R6
router ospf 1
router-id 100.0.0.6
int l0
ip ospf 1 are 0
int e0/1
ip ospf 1 are 0
!
router bgp 10000
bgp router-id 100.0.0.6
no bgp default ipv4-unicast
neighbor IBGP peer-group
neighbor IBGP remote-as 10000
neighbor IBGP update-source loopback0
neighbor 100.0.0.3 peer-group IBGP
neighbor 100.0.0.4 peer-group IBGP
neighbor 100.0.0.5 peer-group IBGP
!
address-fa ipv4
neighbor 100.0.0.3 ac
neighbor 100.0.0.4 ac
neighbor 100.0.0.5 ac
!
add vpnv4
neighbor 100.0.0.3 ac
neighbor 100.0.0.4 ac
neighbor 100.0.0.5 ac
R3
route-map PE-CE permit 10
match interface Ethernet0/0
!
router bgp 10000
address-family ipv4 vrf HollyMaya
neighbor 100.10.0.2 remote-as 65001
neighbor 100.10.0.2 activate
redis connected route-map PE-CE
R4
route-map PE-CE permit 10
match interface Ethernet0/0
!
router bgp 10000
address-family ipv4 vrf HollyMaya
neighbor 100.20.0.2 remote-as 65002
neighbor 100.20.0.2 activate
redis connected route-map PE-CE
R5
route-map PE-CE permit 10
match interface Ethernet0/0
!
router bgp 10000
address-family ipv4 vrf HollyMaya
neighbor 100.50.0.2 remote-as 65005
neighbor 100.50.0.2 activate
redis connected route-map PE-CE
R6
route-map PE-CE permit 10
match interface Ethernet0/0
!
router bgp 10000
address-family ipv4 vrf HollyMaya
neighbor 100.40.0.2 remote-as 65004
neighbor 100.40.0.2 activate
redis connected route-map PE-CE
R3
ip vrf HollyMaya
rd 65001:3
route-target export 65001:3
route-target import 65002:4
route-target import 65005:5
route-target import 65004:6
R4
ip vrf HollyMaya
rd 65002:4
route-target export 65002:4
route-target import 65001:3
route-target import 65005:5
route-target import 65004:6
R5
ip vrf HollyMaya
rd 65005:5
route-target export 65005:5
route-target import 65002:4
route-target import 65001:3
route-target import 65004:6
R6
ip vrf HollyMaya
rd 65004:6
route-target export 65004:6
route-target import 65005:5
route-target import 65002:4
route-target import 65001:3
R1/R2/R3/R4/R5/R6
mpls ldp router-id loopback0 for
router ospf 1
mpls ldp auto
========= CCIE Enterprise Infrastructure practice lab - SDWAN appendix======================
Console to vManager
config t
vpn 512
interface eth0
ip address 192.168.80.11/24
no shutdown !
ip route 0.0.0.0/0 192.168.80.1
Click to User icon -> login vManage web with ip address: 192.168.10.11. Login with account:
admin/admin
- vBond
vedge# conf t
Entering configuration mode terminal
vedge(config)# system
vedge(config-system)# host-name vBond
vedge(config-system)# system-ip 100.1.200.12
vedge(config-system)# site-id 1000
vedge(config-system)# organization-name "eve-nglab"
vedge(config-system)# vbond 10.1.200.12 local vbond-only
vedge(config-system)# !
vedge(config-system)# vpn 512 int eth0
vedge(config-interface-eth0)# ip add 192.168.80.12/24
vedge(config-interface-eth0)# no shut
vedge(config-interface-eth0)# exit
vedge(config-vpn-512)# ip route 0.0.0.0/0 192.168.80.1
- vSmart 1
vsmart(config-vpn-0)# system
vsmart(config-system)# system-ip 100.1.200.13
vsmart(config-system)# site-id 1000
vsmart(config-system)# organization-name "eve-nglab"
vsmart(config-system)# vbond 10.1.200.12
vsmart(config-system)# !
- vSmart 2
vsmart(config-vpn-0)# system
vsmart(config-system)# system-ip 10.1.1.4
vsmart(config-system)# site-id 1000
vsmart(config-system)# organization-name "eve-nglab"
vsmart(config-system)# vbond 10.1.1.2
vsmart(config-system)# !
vsmart(config-system)# vpn 512 int eth0
vsmart(config-interface-eth0)# ip add 192.168.80.14/24
vsmart(config-interface-eth0)# no shut
vsmart(config-interface-eth0)# exit
vsmart(config-vpn-512)# ip route 0.0.0.0/0 192.168.80.1
vsmart(config-vpn-512)# !
vsmart(config-vpn-512)# vpn 0 int eth1
vsmart(config-interface-eth1)# no int eth0
vsmart(config-interface-eth1)# ip add 10.1.1.4/24
vsmart(config-interface-eth1)# no shut
vsmart(config-interface-eth1)# exit
vsmart(config-vpn-0)# ip route 0.0.0.0/0 10.1.1.254
vsmart(config-vpn-0)# !
vsmart(config-vpn-0)# commit and-quit
Commit complete.
vsmart#
- vEdge 10
vedge# conf t
Entering configuration mode terminal
vedge(config)# system
vedge(config-system)# system-ip 100.2.6.1
vedge(config-system)# site-id 100
vedge(config-system)# organization-name eve-nglab
vedge(config-system)# vbond 10.1.1.2
vedge(config-system)# vpn 0 int ge0/0
vedge(config-interface-ge0/0)# ip add 10.2.6.1/24
vedge(config-interface-ge0/0)# no shutdown
vedge(config-interface-ge0/0)# exit
vedge(config-vpn-0)# ip route 0.0.0.0/0 10.2.6.254
vedge(config-vpn-0)# commit and-quit
- vEdge14
vedge# conf t
Entering configuration mode terminal
vedge(config)# system
vedge(config-system)# system-ip 100.1.200.14
vedge(config-system)# site-id 1000
vedge(config-system)# organization-name CCIE_EI
vedge(config-system)# vbond 10.1.200.12
!!!running OSPF
vedge(config-vpn-0)# commit and-quit Commit complete.
- vEdge60
vedge# conf t
Entering configuration mode terminal
vedge(config)# system
vedge(config-system)# system-ip 100.6.1.1
vedge(config-system)# site-id 65006
vedge(config-system)# organization-name CCIE_EI
vedge(config-system)# vbond 10.1.200.12
- vEdge50
vedge# conf t
Entering configuration mode terminal
vedge(config)# system
vedge(config-system)# system-ip 100.50.1.1
vedge(config-system)# site-id 65005
vedge(config-system)# organization-name CCIE_EI
vedge(config-system)# vbond 10.1.200.12
openssl req -x509 -new -nodes -key ROOTCA.key -sha256 -days 1024 \
-subj "/C=US/ST=NY/L=NY/O=CCIE_EI/CN=vmanage.lab" \
-out ROOTCA.pem
exit
vmanage# request root-cert-chain install /home/admin/ROOTCA.pem
- vBond:
Step 1:
vBond# request root-cert-chain install
scp://[email protected]:/home/admin/ROOTCA.pem vpn 512
Result:
Uploading root-ca-cert-chain via VPN 512
Copying ... [email protected]:/home/admin/ROOTCA.pem via VPN 512
Warning: Permanently added '192.168.10.11' (ECDSA) to the list of
known hosts.
viptela 16.2.11
[email protected]'s
password:
ROOTCA.pem 100% 1265
1.2KB/s 00:00
Successfully installed the root certificate chain
vBond# conf t
Entering configuration mode terminal
vBond(config)# vpn 0
vBond(config-vpn-0)# interface ge0/0
vBond(config-interface-ge0/0)# no tunnel-interface
vBond(config-interface-ge0/0)# commit
Commit complete.
vBond(config-interface-ge0/0)#
vManage
Step 5: On vManage, create vbond.csr with content above using VIM editor in Vshell of
Vmanage.
Step 6: Create vbond.crt from Vmange Vsell. // Sign the vbond.csr file with the ROOTCA.key
//vi vbond.csr , press i to insert data, then press ESC to escape the insert things, then press :wq! To save
file vbond.csr in Vshell of Vmanage.
Result:
Signature ok
subject=/C=US/ST=California/L=San Jose/OU=eve-nglab/O=vIPtela
Inc/CN=vbond_cdb5c222-0188-4384-a5c2-
8fa0b76d822f_0.viptela.com/[email protected]
Getting CA Private Key
vmanage:~$
Step 7 : Using “cat vbond.crt” to see file contents then copy and install certificate on vManage
web
- vSmart:
viptela 16.2.11
[email protected]'s
password:
ROOTCA.pem 100% 1265
1.2KB/s 00:00
Successfully installed the root certificate chain
Create vsmart1.csr file on vManage with contents viewed above using VIM editor. (I have 2
vsmarts to make backup)
Sign vsmart1.csr with ROOTCA.key ( I have 2 Vsmarts)
- vManage:
openssl x509 -req -in vsmart2.csr \
-CA ROOTCA.pem -CAkey ROOTCA.key -CAcreateserial \
-out vsmart2.crt -days 500 -sha256
Result:
Signature ok
subject=/C=US/ST=California/L=San Jose/OU=eve-nglab/O=vIPtela
Inc/CN=vsmart_f35d4b87-8322-4f81-a63c-
52981f16d5e9_1.viptela.com/[email protected]
Getting CA Private Key
Using “cat vmsart6.crt” to see contents and copy then install certificate:
vEdge:
Step 1 : on vManage, using “cat ROOTCA.pem” to see contents then create ROOTCA.pem file
on vEdge with same contents.
Step 3: Using “cat vedge14.csr” to copy contents and create vedge50.csr file on
vManage. Create vedge06.crt with command bellow: vMange:
Step 4 : On vedge06, create vedge06.crt same contents with file on vManage then install with
command bellow: Note in Normal mode, not Vshell mode
Do the same with vedge06. Check serial and add to text file.
- Configure tunnel
4.1.1 Tunnel Interfaces
The next step is to enable the tunnel interfaces on the
vManage/Bond/Smart to bring up the control plane.
vManage/Smart
vpn 0 interface eth1
tunnel-interface
vBond /vedges
vpn 0
interface
ge0/0
tunnel-interface encapsulation ipsec