用juniper vqfx實踐EVPN-VXLAN

MGMT交換機用作管理2臺vqfx和2臺ubuntu

vqfx-1的配置

root@vqfx-re> show configuration | display set | except dhcp

set version 15.1X53-D63.9

set system host-name vqfx-re

set interfaces xe-0/0/3 description "DEV=TOR-SW IF=3"

set interfaces xe-0/0/3 unit 0 family ethernet-switching interface-mode trunk

set interfaces xe-0/0/3 unit 0 family ethernet-switching vlan members all

set interfaces xe-0/0/4 unit 0 family inet address 192.168.13.1/24

set interfaces em0 unit 0 family inet address 10.5.39.241/24

set interfaces em1 unit 0 family inet address 169.254.0.2/24

set interfaces lo0 unit 0 family inet address 1.1.1.1/32

set forwarding-options storm-control-profiles default all

set routing-options static route 10.5.0.0/16 next-hop 10.5.39.254

set routing-options router-id 1.1.1.1

set routing-options autonomous-system 65001

set protocols bgp group underlay type external

set protocols bgp group underlay advertise-peer-as

set protocols bgp group underlay export POLICY_EXPORT_LO0

set protocols bgp group underlay neighbor 192.168.13.3 peer-as 65003

set protocols bgp group overlay type internal

set protocols bgp group overlay local-address 1.1.1.1

set protocols bgp group overlay family evpn signaling

set protocols bgp group overlay local-as 64512

set protocols bgp group overlay neighbor 3.3.3.3

set protocols evpn encapsulation vxlan

set protocols evpn extended-vni-list 100

set protocols evpn multicast-mode ingress-replication

set protocols evpn vni-options vni 100 vrf-target export target:64512:100

set protocols igmp-snooping vlan default

set policy-options policy-statement POLICY_EXPORT_LO0 from family inet

set policy-options policy-statement POLICY_EXPORT_LO0 from protocol direct

set policy-options policy-statement POLICY_EXPORT_LO0 from route-filter 0.0.0.0/0 prefix-length-range /32-/32

set policy-options policy-statement POLICY_EXPORT_LO0 then accept

set policy-options policy-statement POLICY_VRF_IMPORT term T_100 from community COM_100

set policy-options policy-statement POLICY_VRF_IMPORT term T_100 then accept

set policy-options policy-statement POLICY_VRF_IMPORT term T_999 then reject

set policy-options community COM_100 members target:64512:100

set switch-options service-id 1

set switch-options vtep-source-interface lo0.0

set switch-options route-distinguisher 1.1.1.1:1

set switch-options vrf-import POLICY_VRF_IMPORT

set switch-options vrf-target target:64512:1

set switch-options vrf-target auto

set vlans default vlan-id 1

set vlans v100 vlan-id 100

set vlans v100 vxlan vni 100

set vlans v100 vxlan ingress-node-replication

vqfx-2的配置

root@vqfx-re> show configuration | display set | except dhcp

set version 15.1X53-D63.9

set system host-name vqfx-re

set interfaces xe-0/0/3 description "DEV=TOR-SW IF=3"

set interfaces xe-0/0/3 unit 0 family ethernet-switching interface-mode trunk

set interfaces xe-0/0/3 unit 0 family ethernet-switching vlan members all

set interfaces xe-0/0/4 unit 0 family inet address 192.168.13.3/24

set interfaces em0 unit 0 family inet address 10.5.39.242/24

set interfaces em1 unit 0 family inet address 169.254.0.2/24

set interfaces lo0 unit 0 family inet address 3.3.3.3/32

set forwarding-options storm-control-profiles default all

set routing-options static route 10.5.0.0/16 next-hop 10.5.39.254

set routing-options router-id 3.3.3.3

set routing-options autonomous-system 65003

set protocols bgp group underlay type external

set protocols bgp group underlay advertise-peer-as

set protocols bgp group underlay export POLICY_EXPORT_LO0

set protocols bgp group underlay neighbor 192.168.13.1 peer-as 65001

set protocols bgp group overlay type internal

set protocols bgp group overlay local-address 3.3.3.3

set protocols bgp group overlay family evpn signaling

set protocols bgp group overlay local-as 64512

set protocols bgp group overlay neighbor 1.1.1.1

set protocols evpn encapsulation vxlan

set protocols evpn extended-vni-list 100

set protocols evpn multicast-mode ingress-replication

set protocols evpn vni-options vni 100 vrf-target export target:64512:100

set protocols igmp-snooping vlan default

set policy-options policy-statement POLICY_EXPORT_LO0 from family inet

set policy-options policy-statement POLICY_EXPORT_LO0 from protocol direct

set policy-options policy-statement POLICY_EXPORT_LO0 from route-filter 0.0.0.0/0 prefix-length-range /32-/32

set policy-options policy-statement POLICY_EXPORT_LO0 then accept

set policy-options policy-statement POLICY_VRF_IMPORT term T_100 from community COM_100

set policy-options policy-statement POLICY_VRF_IMPORT term T_100 then accept

set policy-options policy-statement POLICY_VRF_IMPORT term T_999 then reject

set policy-options community COM_100 members target:64512:100

set switch-options service-id 3

set switch-options vtep-source-interface lo0.0

set switch-options route-distinguisher 3.3.3.3:1

set switch-options vrf-import POLICY_VRF_IMPORT

set switch-options vrf-target target:64512:1

set switch-options vrf-target auto

set vlans default vlan-id 1

set vlans v100 vlan-id 100

set vlans v100 vxlan vni 100

set vlans v100 vxlan ingress-node-replication

面向業(yè)務的接口xe-0/0/3,需要delete操作

delete interfaces xe-0/0/3 unit 0 family inet

REF:

https://blog.noc.grnet.gr/2016/09/28/lab-on-evpn-vxlan-on-juniper-qfx5100-switches-3/

最后編輯于
?著作權歸作者所有,轉載或內容合作請聯(lián)系作者
  • 序言:七十年代末若治,一起剝皮案震驚了整個濱河市动雹,隨后出現(xiàn)的幾起案子蜜徽,更是在濱河造成了極大的恐慌琳猫,老刑警劉巖茴她,帶你破解...
    沈念sama閱讀 218,036評論 6 506
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件珊膜,死亡現(xiàn)場離奇詭異吗跋,居然都是意外死亡卷玉,警方通過查閱死者的電腦和手機哨颂,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 93,046評論 3 395
  • 文/潘曉璐 我一進店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來相种,“玉大人威恼,你說我怎么就攤上這事∏薏ⅲ” “怎么了箫措?”我有些...
    開封第一講書人閱讀 164,411評論 0 354
  • 文/不壞的土叔 我叫張陵,是天一觀的道長衬潦。 經(jīng)常有香客問我斤蔓,道長,這世上最難降的妖魔是什么镀岛? 我笑而不...
    開封第一講書人閱讀 58,622評論 1 293
  • 正文 為了忘掉前任弦牡,我火速辦了婚禮,結果婚禮上漂羊,老公的妹妹穿的比我還像新娘驾锰。我一直安慰自己,他們只是感情好走越,可當我...
    茶點故事閱讀 67,661評論 6 392
  • 文/花漫 我一把揭開白布椭豫。 她就那樣靜靜地躺著,像睡著了一般旨指。 火紅的嫁衣襯著肌膚如雪赏酥。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 51,521評論 1 304
  • 那天淤毛,我揣著相機與錄音今缚,去河邊找鬼。 笑死低淡,一個胖子當著我的面吹牛姓言,可吹牛的內容都是我干的瞬项。 我是一名探鬼主播,決...
    沈念sama閱讀 40,288評論 3 418
  • 文/蒼蘭香墨 我猛地睜開眼何荚,長吁一口氣:“原來是場噩夢啊……” “哼囱淋!你這毒婦竟也來了?” 一聲冷哼從身側響起餐塘,我...
    開封第一講書人閱讀 39,200評論 0 276
  • 序言:老撾萬榮一對情侶失蹤妥衣,失蹤者是張志新(化名)和其女友劉穎,沒想到半個月后戒傻,有當?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體税手,經(jīng)...
    沈念sama閱讀 45,644評論 1 314
  • 正文 獨居荒郊野嶺守林人離奇死亡,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內容為張勛視角 年9月15日...
    茶點故事閱讀 37,837評論 3 336
  • 正文 我和宋清朗相戀三年需纳,在試婚紗的時候發(fā)現(xiàn)自己被綠了芦倒。 大學時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
    茶點故事閱讀 39,953評論 1 348
  • 序言:一個原本活蹦亂跳的男人離奇死亡不翩,死狀恐怖兵扬,靈堂內的尸體忽然破棺而出,到底是詐尸還是另有隱情口蝠,我是刑警寧澤器钟,帶...
    沈念sama閱讀 35,673評論 5 346
  • 正文 年R本政府宣布,位于F島的核電站妙蔗,受9級特大地震影響傲霸,放射性物質發(fā)生泄漏。R本人自食惡果不足惜灭必,卻給世界環(huán)境...
    茶點故事閱讀 41,281評論 3 329
  • 文/蒙蒙 一狞谱、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧禁漓,春花似錦跟衅、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 31,889評論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至秘狞,卻和暖如春叭莫,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背烁试。 一陣腳步聲響...
    開封第一講書人閱讀 33,011評論 1 269
  • 我被黑心中介騙來泰國打工雇初, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留,地道東北人减响。 一個月前我還...
    沈念sama閱讀 48,119評論 3 370
  • 正文 我出身青樓靖诗,卻偏偏與公主長得像郭怪,于是被迫代替她去往敵國和親。 傳聞我的和親對象是個殘疾皇子刊橘,可洞房花燭夜當晚...
    茶點故事閱讀 44,901評論 2 355

推薦閱讀更多精彩內容