device manager should configure EVPN if needed.
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
Trunk |
Fix Committed
|
High
|
Suresh Balineni |
Bug Description
Seel below for working e-vpn configuration on MX...
-Nischal
Begin forwarded message:
From: Chhandak Mukherjee <email address hidden>
Subject: Re: tunnel encapsulation type for VXLAN
Date: November 13, 2014 at 9:49:52 AM PST
To: Vasu Venkatraman <email address hidden>, Nischal Sheth <email address hidden>
Cc: Wen Lin <email address hidden>, Sudha Madhavi <email address hidden>, Ryan Bickhart <email address hidden>, Nagabhushana R <email address hidden>, Manish Singh <email address hidden>, Sreelakshmi Sarva <email address hidden>
Hi,
Ping between contrail VM and BMS via EVPN VXLAN is successful.
Used the image Vasu has provided[
Details of configuration used and topology can be found below. Please provide me your input.
Thanks and Regards,
Chhandak
Output
————---
Contrail Introspect
———————
http://
http://
root@walsh# run show evpn instance evpn-vxlan
Instance Total Up Total Up Nbrs ESIs Local Remote
evpn-vxlan 1 1 1 1 2 0 2 2
[edit]
root@walsh# run show evpn database
Instance: evpn-vxlan
VLAN VNI MAC address Active source Timestamp IP address
2222 00:23:9c:f1:98:aa irb.0 Oct 13 06:21:35 1.1.1.250
2222 00:25:90:e7:81:dd ge-1/0/0.0 Oct 13 08:10:25 >>>>>>>>>>>>>Route for BMS
2222 02:9b:65:3a:5a:fd 10.204.217.149 Oct 13 02:14:51 1.1.1.3>>>>>VM route from Contrail
2222 02:9e:9f:62:5b:fe 10.204.217.150 Oct 13 02:14:54 1.1.1.2>>>>>VM route from Contrail
[edit]
root@walsh#
root@walsh# run show route table evpn-vxlan.evpn.0
evpn-vxlan.evpn.0: 8 destinations, 12 routes (8 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
2:64512:
2:64512:
2:64512:
2:10.204.
2:10.204.
3:64512:
root@walsh# run show route table bgp.evpn.0
bgp.evpn.0: 4 destinations, 8 routes (4 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
2:10.204.
2:10.204.
3:10.204.
3:10.204.
[edit]
root@walsh#
Config
—————--
BGP
-----
root@walsh# show protocols bgp group evpn-test | display set
set protocols bgp group evpn-test type internal
set protocols bgp group evpn-test traceoptions file evpn_proto.log
set protocols bgp group evpn-test traceoptions flag all
set protocols bgp group evpn-test local-address 7.7.7.77
set protocols bgp group evpn-test keep all
set protocols bgp group evpn-test family evpn signaling
set protocols bgp group evpn-test family route-target
set protocols bgp group evpn-test local-as 64512
set protocols bgp group evpn-test neighbor 10.204.217.147
set protocols bgp group evpn-test neighbor 10.204.217.146
EVPN
-----
root@walsh# show routing-instances evpn-vxlan | display set
set routing-instances evpn-vxlan vtep-source-
set routing-instances evpn-vxlan instance-type virtual-switch
set routing-instances evpn-vxlan route-distinguisher 64512:12345
set routing-instances evpn-vxlan vrf-target target:64512:12345
set routing-instances evpn-vxlan protocols evpn traceoptions file evpn-1.log
set routing-instances evpn-vxlan protocols evpn traceoptions flag all
set routing-instances evpn-vxlan protocols evpn encapsulation vxlan
set routing-instances evpn-vxlan protocols evpn extended-vni-all
set routing-instances evpn-vxlan bridge-domains bd1 vlan-id 2222
set routing-instances evpn-vxlan bridge-domains bd1 interface ge-1/0/0.0
set routing-instances evpn-vxlan bridge-domains bd1 routing-interface irb.0
set routing-instances evpn-vxlan bridge-domains bd1 vxlan vni 2222
set routing-instances evpn-vxlan bridge-domains bd1 vxlan ingress-
Interface
—————-----
root@walsh# show interfaces ge-1/0/0 | display set
set interfaces ge-1/0/0 encapsulation ethernet-bridge
set interfaces ge-1/0/0 unit 0 family bridge
[edit]
root@walsh# show interfaces ge-1/1/0 | display set
set interfaces ge-1/1/0 unit 0 family inet address 10.204.217.244/24
[edit]
root@walsh# show interfaces lo0 | display set
set interfaces lo0 unit 0 family inet address 7.7.7.77/32 primary
set interfaces lo0 unit 0 family inet address 7.7.7.77/32 preferred
[edit]
root@walsh# show interfaces irb | display set
set interfaces irb gratuitous-
set interfaces irb unit 0 family inet address 1.1.1.250/24
Testbed
-------
Contrail Testbed Details
———————
env.roledefs = {
'all': [host2, host3, host4, host5, host6],
'cfgm': [host2, host3,host4],
'openstack': [host5],
'webui': [host2],
'control': [host2, host3],
'compute': [host5, host6],
'collector': [host2, host3, host4],
'database': [host2, host3, host4],
'build': [host_build],
}
env.hostnames = {
'all': ['nodei34', 'nodei35', 'nodei36', 'nodei37', 'nodei38']
}
host2 = 'root@10.
host3 = 'root@10.
host4 = 'root@10.
host5 = 'root@10.
host6 = 'root@10.
MX
——
10.204.217.244 (root/Embe1mpls)
BMS
—---
Nodei32(
root@walsh# run show version
Hostname: walsh
Model: mx80
Junos: 14.1I20141113_
JUNOS Base OS boot [14.1I20141113_
JUNOS Base OS Software Suite [14.1I20141113_
JUNOS Crypto Software Suite [14.1I20141113_
JUNOS Packet Forwarding Engine Support (MX80) [14.1I20141113_
JUNOS Online Documentation [14.1I20141113_
JUNOS Services Application Level Gateways [14.1I20141113_
JUNOS Services Jflow Container package [14.1I20141113_
JUNOS Services Stateful Firewall [14.1I20141113_
JUNOS Services NAT [14.1I20141113_
JUNOS Services RPM [14.1I20141113_
JUNOS Services Crypto [14.1I20141113_
JUNOS Services SSL [14.1I20141113_
JUNOS Services IPSec [14.1I20141113_
JUNOS Kernel Software Suite [14.1I20141113_
JUNOS Routing Software Suite [14.1I20141113_
tags: | added: config |
Changed in juniperopenstack: | |
status: | New → Fix Committed |
Changed in juniperopenstack: | |
importance: | Undecided → High |
milestone: | none → r2.20-fcs |
information type: | Proprietary → Public |
Samples DM generated Mx config for following VN configuration:
Sample test config: vn1_name)
vn1_obj. set_router_ external( True) 'ipam1' )
self._ vnc_lib. network_ ipam_create( ipam_obj)
vn1_obj. add_network_ ipam(ipam_ obj, VnSubnetsType(
[IpamSubne tType(SubnetTyp e("192. 168.7.0" , 24))]))
def test_evpn(self):
vn1_name = 'vn1'
vn1_obj = VirtualNetwork(
ipam_obj = NetworkIpam(
vn1_uuid = self._vnc_ lib.virtual_ network_ create( vn1_obj)
bgp_router, pr = self.create_ router( 'router10' , '1.1.1.1')
pr.set_ virtual_ network( vn1_obj)
self._ vnc_lib. physical_ router_ update( pr)
pi = PhysicalInterfa ce('pi1' , parent_obj = pr) lib.physical_ interface_ create( pi)
pi_id = self._vnc_
fq_name = ['default-project', 'vmi1'] nterface( fq_name= fq_name, parent_type = 'project')
vmi1.set_ virtual_ network( vn1_obj)
self._ vnc_lib. virtual_ machine_ interface_ create( vmi1)
vmi1 = VirtualMachineI
fq_name = ['default-project', 'vmi2'] nterface( fq_name= fq_name, parent_type = 'project')
vmi2.set_ virtual_ network( vn1_obj)
self._ vnc_lib. virtual_ machine_ interface_ create( vmi2)
vmi2 = VirtualMachineI
li1 = LogicalInterfac e('li1' , parent_obj = pi)
li1.set_ virtual_ machine_ interface( vmi1) lib.logical_ interface_ create( li1)
li1_id = self._vnc_
li2 = LogicalInterfac e('li2' , parent_obj = pi)
li2.set_ virtual_ machine_ interface( vmi2) lib.logical_ interface_ create( li2)
li2_id = self._vnc_
Generated Mx Config: ------- ------
-------
{
"configuration ": {
"groups" : {
"name" : "__contrail__",
"protocols" : {
" bgp": {
"group" : [
{
"name" : "__contrail__",
"type" : "internal",
"multihop" : "",
"local- address" : "1.1.1.1",
"family" : {
"route- target" : "",
"inet- vpn": {
"unicast" : ""
},
"evpn" : {
"signaling ": ""
},
"inet6- vpn": {
"unicast" : ""
}
},
"keep" : "all",
"_operation ": "replace"
},
{
"name" : "__contrail_ external_ _",
"type" : "external",
"multihop" : "",
"local- address" : "1.1.1.1",
"config": {
...