码迷,mamicode.com
首页 > 其他好文 > 详细

Vxlan L3

时间:2019-05-12 15:44:00      阅读:172      评论:0      收藏:0      [点我收藏+]

标签:ast   sof   play   upd   isp   shutdown   oar   abi   add   

 

 

 

拓扑图:

 

技术图片

 

CE1

技术图片
 1 <CE1>display current-configuration 
 2 !Software Version V800R013C00SPC560B560
 3 !Last configuration was updated at 2019-05-12 13:26:46+00:00
 4 !Last configuration was saved at 2019-05-12 14:23:47+00:00
 5 #
 6 sysname CE1
 7 #
 8 device board 17 board-type CE-MPUB
 9 device board 1 board-type CE-LPUE
10 #
11 bridge-domain 10
12  vxlan vni 1020
13 #
14 bridge-domain 20
15  vxlan vni 2010
16 #
17 aaa
18  #
19  authentication-scheme default
20  #
21  authorization-scheme default
22  #
23  accounting-scheme default
24  #
25  domain default
26  #
27  domain default_admin
28 #
29 interface Vbdif10
30  ip address 192.168.10.1 255.255.255.0
31 #
32 interface Vbdif20
33  ip address 192.168.20.1 255.255.255.0
34 #
35 interface MEth0/0/0
36  undo shutdown
37 #
38 interface GE1/0/0
39  undo portswitch
40  undo shutdown
41  ip address 10.1.12.1 255.255.255.0
42 #
43 interface GE1/0/1
44  undo portswitch
45  undo shutdown
46  ip address 10.1.13.1 255.255.255.0
47 #
48 interface GE1/0/2
49  shutdown
50 #
51 interface GE1/0/3
52  shutdown
53 #
54 interface GE1/0/4
55  shutdown
56 #
57 interface GE1/0/5
58  shutdown
59 #
60 interface GE1/0/6
61  shutdown
62 #
63 interface GE1/0/7
64  shutdown
65 #
66 interface GE1/0/8
67  shutdown
68 #
69 interface GE1/0/9
70  shutdown
71 #
72 interface LoopBack0
73  ip address 10.1.1.1 255.255.255.255
74 #
75 interface Nve1
76  source 10.1.1.1
77  vni 1020 head-end peer-list 10.2.2.2
78  vni 2010 head-end peer-list 10.3.3.3
79 #
80 interface NULL0
81 #
82 ospf 1
83  area 0.0.0.0
84   network 10.1.1.1 0.0.0.0
85   network 10.1.12.0 0.0.0.255
86   network 10.1.13.0 0.0.0.255
87 #
88 ssh authorization-type default aaa
89 #
90 user-interface con 0
91 #
92 vm-manager
93 #
94 return
View Code

CE2

技术图片
 1 <CE2>display current-configuration 
 2 !Software Version V800R013C00SPC560B560
 3 !Last configuration was updated at 2019-05-12 13:29:02+00:00
 4 !Last configuration was saved at 2019-05-12 14:25:52+00:00
 5 #
 6 sysname CE2
 7 #
 8 device board 17 board-type CE-MPUB
 9 device board 1 board-type CE-LPUE
10 #
11 vlan batch 10
12 #
13 bridge-domain 10
14  vxlan vni 1020
15 #
16 aaa
17  #
18  authentication-scheme default
19  #
20  authorization-scheme default
21  #
22  accounting-scheme default
23  #
24  domain default
25  #
26  domain default_admin
27 #
28 interface MEth0/0/0
29  undo shutdown
30 #
31 interface GE1/0/0
32  undo portswitch
33  undo shutdown
34  ip address 10.1.12.2 255.255.255.0
35 #
36 interface GE1/0/1
37  undo shutdown
38  port link-type trunk
39 #
40 interface GE1/0/1.1 mode l2
41  encapsulation dot1q vid 10
42  bridge-domain 10
43 #
44 interface GE1/0/2
45  shutdown
46 #
47 interface GE1/0/3
48  shutdown
49 #
50 interface GE1/0/4
51  shutdown
52 #
53 interface GE1/0/5
54  shutdown
55 #
56 interface GE1/0/6
57  shutdown
58 #
59 interface GE1/0/7
60  shutdown
61 #
62 interface GE1/0/8
63  shutdown
64 #
65 interface GE1/0/9
66  shutdown
67 #
68 interface LoopBack0
69  ip address 10.2.2.2 255.255.255.255
70 #
71 interface Nve1
72  source 10.2.2.2
73  vni 1020 head-end peer-list 10.1.1.1
74 #
75 interface NULL0
76 #
77 ospf 1
78  area 0.0.0.0
79   network 10.1.12.0 0.0.0.255
80   network 10.2.2.2 0.0.0.0
81 #
82 ssh authorization-type default aaa
83 #
84 user-interface con 0
85 #
86 vm-manager
87 #
88 return
View Code

CE3

技术图片
 1 <CE3>display current-configuration 
 2 !Software Version V800R013C00SPC560B560
 3 !Last configuration was updated at 2019-05-12 13:31:40+00:00
 4 !Last configuration was saved at 2019-05-12 14:26:24+00:00
 5 #
 6 sysname CE3
 7 #
 8 device board 17 board-type CE-MPUB
 9 device board 1 board-type CE-LPUE
10 #
11 vlan batch 20
12 #
13 bridge-domain 20
14  vxlan vni 2010
15 #
16 aaa
17  #
18  authentication-scheme default
19  #
20  authorization-scheme default
21  #
22  accounting-scheme default
23  #
24  domain default
25  #
26  domain default_admin
27 #
28 interface MEth0/0/0
29  undo shutdown
30 #
31 interface GE1/0/0
32  undo portswitch
33  undo shutdown
34  ip address 10.1.13.3 255.255.255.0
35 #
36 interface GE1/0/1
37  undo shutdown
38  port link-type trunk
39 #
40 interface GE1/0/1.1 mode l2
41  encapsulation dot1q vid 20
42  bridge-domain 20
43 #
44 interface GE1/0/2
45  shutdown
46 #
47 interface GE1/0/3
48  shutdown
49 #
50 interface GE1/0/4
51  shutdown
52 #
53 interface GE1/0/5
54  shutdown
55 #
56 interface GE1/0/6
57  shutdown
58 #
59 interface GE1/0/7
60  shutdown
61 #
62 interface GE1/0/8
63  shutdown
64 #
65 interface GE1/0/9
66  shutdown
67 #
68 interface LoopBack0
69  ip address 10.3.3.3 255.255.255.255
70 #
71 interface Nve1
72  source 10.3.3.3
73  vni 2010 head-end peer-list 10.1.1.1
74 #
75 interface NULL0
76 #
77 ospf 1
78  area 0.0.0.0
79   network 10.1.13.0 0.0.0.255
80   network 10.3.3.3 0.0.0.0
81 #
82 ssh authorization-type default aaa
83 #
84 user-interface con 0
85 #
86 vm-manager
87 #
88 return
View Code

LSW1

技术图片
 1 #
 2 vlan batch 10
 3 #
 4 interface Ethernet0/0/1
 5  port link-type access
 6  port default vlan 10
 7 #
 8 interface GigabitEthernet0/0/1
 9  port link-type trunk
10  port trunk allow-pass vlan 10
11 #
View Code

LSW2

技术图片
 1 #
 2 vlan batch 20
 3 #
 4 interface Ethernet0/0/1
 5  port link-type access
 6  port default vlan 20
 7 #
 8 interface GigabitEthernet0/0/1
 9  port link-type trunk
10  port trunk allow-pass vlan 20
11 #
View Code

 

 

技术图片

 

CE2 - > CE1 抓包

外层IP source 10.2.2.2 dest 10.1.1.1

UDP port 4789

vxlan vni 1020

内层IP source 192.168.10.2 dest 192.168.20.2

技术图片

 

 

 

CE1- > CE3 抓包

外层IP source 10.1.1.1 dest 10.3.3.3

UDP port 4789

vxlan vni 2010

内层IP source 192.168.10.2 dest 192.168.20.2

 

技术图片

 

Vxlan L3

标签:ast   sof   play   upd   isp   shutdown   oar   abi   add   

原文地址:https://www.cnblogs.com/blogscc/p/10852207.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!