Table of Contents
Introduction to Viptela Network Interfaces
In the Viptela each interface can be associated with a specific VPN. An interface can only be present inside a single VPN. By default, all the interfaces are in transport VPN 0 and are kept shutdown.
If you want to enable an interface in any other VPN remove the interface from VPN 0 and configure that interface under required VPN, give an IP address and un-shut the interface.
You can configure up to 512 interfaces on Viptela devices including physical & loopback interfaces and sub-interfaces.
In this post, we will discuss how to configure the interfaces in different VPNs and how to configure different types of interfaces on the Viptela devices.
1. Configuring Network interfaces in the transport VPN 0
By default, all the interfaces on Viptela devices are in transport VPN 0 and are disabled. VPN 0 handles only the control plane traffic and for a Viptela device to participate in Overlay network at least one interface must be included in the transport VPN and this interface acts a tunnel interface.
Tunnel interface on vSmart and vManage Controller:
Configure IP address static or enable DHCP for dynamic IP address allocation, enable the interface to act as tunnel and no shut the interface.
vSmart/vManage(config-vpn-0)# interface interface-name
vSmart/vManage(config-interface)# [ip address prefix/length | ip dhcp-client [dhcp-distance number]
vSmart/vManage(config-interface)# no shutdown
vSmart/vManage(config-interface)# tunnel-interface
vSmart/vManage(config-tunnel-interface)# color color
vSmart/vManage(config-tunnel-interface)# [no] allow-service service
On vSmart and vManage you can have only VPN 0 as they only participate in control plane
Sample output:
vmanage# show interface vpn 0
ip-address 192.168.122.227/24
if-admin-status Up
if-oper-status Up
encap-type null
port-type service
hwaddr 52:54:00:fa:1e:28
uptime 0:00:28:59
rx-packets 308887
tx-packets 24435
interface vpn 0 interface eth1 af-type ipv4
if-admin-status Down
if-oper-status Down
hwaddr 52:54:00:a0:49:8b
Tunnel interface on vEdge router:
Configure IP address static or receive via DHCP, enable tunnel interface, color and encapsulation type. Encapsulation can wither be GRE, IPsec or both on an interface.
vEdge(config-vpn-0)# interface interface-name
vEdge(config-interface)# ip address prefix/length | ip dhcp-client
vEdge(config-interface)# no shutdown
vEdge(config-interface)# tunnel-interface
vEdge(config-tunnel-interface)# color <color> <restrict>
vEdge(config-tunnel-interface)# encapsulation (gre | ipsec)
vEdge(config-tunnel-interface)# [no] allow-service service
Color in Viptela software identifies the transport tunnel. It can be 3g, biz-internet, blue, bronze,custom1, custom2, custom3, default, gold, green, lte, metro-ethernet, mpls, private1 through private6, public-internet, red, and silver. The colors metro-ethernet, mpls, and private1 through private6 are referred to as private colors, because they use private addresses to connect to the remote side vEdge router in a private network. You can use these colors in a public network provided that there is no NAT device between the local and remote vEdge routers.
On vManage and vSmart you can have only one transport interface and on vEdge devices, you can have up to 7 transport interface.
Allow-service command is used to explicitly allow the required services on the interface i.e. bgp, dns, dhcp, ospf etc. Or you can use ‘allow-service all’ command to enable all the services on an interface.
To check the interface and its details in VPN 0 use the command:
Viptela# Show interface vpn 0.
vedge# sh interface vpn 0
Transport indicates the port ge0/0 is in transport VPN to carry control plane traffic and ge0/1 & ge0/2 are service interface to carry the data plane traffic.
By default, all Viptela devices send keep-alive every second to the far end of the tunnel to monitor reachability. Viptela devices also have a hello tolerance timer of 12 seconds. With these default values, if no Hello packet is received within 11 seconds, the tunnel is declared down at 12 seconds.
If these values differ at tunnel end-points then:
- Between controllers, the lower hello time and higher hello tolerance timer is selected.
- Between vEdge and Controller, the values configured on the vEdge router will be selected.
2. Configuring interfaces in the transport VPN 512.
On the Viptela devices, the VPN 512 is the default used for the management purpose.
You can configure a management interface as below:
Viptela# show running-config vpn 512
interface mgmt0
ip dhcp-client
no shutdown
Sample output:
vedge# show interface vpn 512
3. Configuring service-side interfaces in VPN other than VPN 0 and VPN 512:
vEdge(config-vpn)# interface geslot/port
vEdge(config-interface)# ip address prefix/length
vEdge(config-interface)# no shutdown
The default speed for the Viptela device interfaces is 10MBPS as seen in screenshot below:
To override the speed negotiated by the two devices on the interface, disable auto negotiation and configure the desired speed:
vEdge(config-vpn)# interface interface-name speed (10 | 100)
Also seen in the screenshot above the interface MTU by default is 1500 which can be changed as below:
MTU can be any value between 576 to 2000 bytes.
On vEdge routers, the Viptela BFD software automatically performs PMTU discovery on each transport connection. BFD PMTU discovery is enabled by default, and it is recommended that you use it and not disable it. BFD is a data plane protocol and so does not run on vBond, vManage, and vSmart devices. To explicitly configure BFD to perform PMTU discovery, use the bfd color pmtu-discovery configuration command. However, you can choose to instead use ICMP to perform PMTU discovery:
Few other types of interfaces that can be created on vEdge routers are as below:
- Sub-interfaces
- VLANs
- Loopback
- GRE interfaces
Continue Reading:
Cisco Viptela NTP Configuration
ABOUT THE AUTHOR
I am here to share my knowledge and experience in the field of networking with the goal being – “The more you share, the more you learn.”
I am a biotechnologist by qualification and a Network Enthusiast by interest. I developed interest in networking being in the company of a passionate Network Professional, my husband.
I am a strong believer of the fact that “learning is a constant process of discovering yourself.”
– Rashmi Bhardwaj (Author/Editor)