Cisco SD-WAN Internet Exit Lab (DIA)
Cisco SD-WAN Internet Exit Lab (DIA)
Cisco SD-WAN Internet Exit Lab (DIA)
Introduction
In this Lab, user will learn how to provide Internet access to the sites that are
enabled with SD-WAN fabric. User will perform both Internet access via DC and
Local Internet Exit (Direct Internet Access (DIA)).
This lab is built once the overlay comes up and all the required templates are pre-
configured. If it is not done already, user need to perform Overlay bring up Lab and
Templates Lab.
Initial Verification
Test the internet access from a PC connected in Branch1.
Open the Firefox browser from Mgmt-PC (D2) and browse Facebook and google.
Notice that both are failed.
Task
Identify the reason why the trace is stopping at B1-R1.
Default route
B1-R1 doesn’t have the default route. Hence it is not able to forward the traffic.
Let’s advertise the default route from DC WAN edges using a Null route.
Login to vManage:
Username: admin
Password: admin
Go to Configuration>Templates>Feature
The default route needs to created in VPN template and should be only on DC WAN
edges.
Notice that the VPN1 template is attached to two device templates. Click on 2 to see
what are the templaes.
Description: DC-VPN1
Click on New IPv4 Route under IPv4 Route section and configure below.
Under Service VPN section, select DC-VPN1 template as VPN template and update.
Click Next to proceed further.
Click on a device to preview the configuration that will be pushed to the WAN edge.
Verification
Let’s verify if B1-R1 received this route.
Navigate to Monitor>Network>B1-R1>Real Time
D2:
Still no access to the internet. But this time B1-R1 is forwarding and because of Null0
route in DC WAN edges, the traffic is blackholed.
For this to work, we need to create policy to direct the traffic to NAT enabled Internet
interface in VPN 0, instead of blackholing the traffic by matching Null0 route.
NAT
Now Let’s enable Internet access for Branch using a policy via DC.
Templates
For the internet to work, NAT needs to be enabled on the VPN0 internet interface. In
this lab it is ge0/0.
Ignore if it is already enabled in your lab setup. Just verify.
Navigate to Configuration>Templates>Feature
Policy
Now let’s create a policy to direct the internet traffic to this NAT enabled interface.
Navigate to Configuration>Policies
Click Add
Site List:
Name: DC
Site: 10
Click Add
VPN List:
Name: VPN1
VPN: 1
Name: Internet-Exit
Description: Internet-Exit
Change the default action from drop to Accept for this policy.
Click on Sequence Type to create a Custom Policy
Apply Site and VPN List to Internet-Exit policy by clicking on New Site List and
VPN List.
Refer below screen shot and Save the policy.
Preview Policy
Click on (…) and Preview.
Click on OK once policy is verified. Your policy should match the below policy.
policy
data-policy _VPN1_Internet-Exit
vpn-list VPN1
sequence 1
match
destination-data-prefix-list Local-Subnet
!
action accept
!
!
sequence 11
match
source-data-prefix-list Local-Subnet
!
action accept
nat use-vpn 0
nat fallback
!
!
default-action accept
!
lists
data-prefix-list Local-Subnet
ip-prefix 10.0.0.0/8
!
site-list DC
site-id 10
!
vpn-list VPN1
vpn 1
!
!
!
apply-policy
site-list DC
data-policy _VPN1_Internet-Exit all
!
!
Activating the Policy
Click on (…) and Activate.
Modify the Policy for Local Internet Exit (Direct Internet Access (DIA))
Navigate to Configuration>Policies
Click on the Custom Options and Lists from Top right-hand corner.
Name: B1
Site: 100
text
policy
data-policy _VPN1_Internet-Exit
vpn-list VPN1
sequence 1
match
destination-data-prefix-list Local-Subnet
!
action accept
!
!
sequence 11
match
source-data-prefix-list Local-Subnet
!
action accept
nat use-vpn 0
nat fallback
!
!
default-action accept
!
lists
data-prefix-list Local-Subnet
ip-prefix 10.0.0.0/8
!
site-list DC
site-id 10
!
site-list B1-R1
site-id 100
!
vpn-list VPN1
vpn 1
!
!
!
apply-policy
site-list DC
data-policy _VPN1_Internet-Exit all
site-list B1-R1
data-policy _VPN1_Internet-Exit all
!
!
Verification
Open the command prompt and traceroute to 8.8.8.8
Notice now the traffic is forwarded to B1-R1 and B1-R1 internet Interface next-hop.