提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档
文章目录
- 前言
- 一、基础配置
- SW1
- SW2
- IGP IS-IS
- 二、VXLAN
- 1.引入库
- 总结
前言
一、基础配置
SW1
vlan 10
vlan 20
interface GigabitEthernet0/0/1
port link-type access
port default vlan 10
#
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 10 20
#
interface GigabitEthernet0/0/3
port link-type access
port default vlan 20
SW2
vlan 10
interface GigabitEthernet0/0/1
port link-type access
port default vlan 10
#
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 10
IGP IS-IS
CE1
isis 1
is-level level-2
network-entity 49.0000.0000.0001.00
interface GE1/0/1
undo portswitch
undo shutdown
ip address 12.1.1.1 255.255.255.252
isis enable 1
interface LoopBack0
ip address 1.1.1.1 255.255.255.255
isis enable 1
CE2
isis 1
is-level level-2
network-entity 49.0000.0000.0002.00
interface GE1/0/0
undo portswitch
undo shutdown
ip address 12.1.1.2 255.255.255.252
isis enable 1
interface GE1/0/1
undo portswitch
undo shutdown
ip address 23.1.1.1 255.255.255.252
isis enable 1
interface LoopBack0
ip address 2.2.2.2 255.255.255.255
isis enable 1
CE3
isis 1
is-level level-2
network-entity 49.0000.0000.0003.00
interface GE1/0/1
undo portswitch
undo shutdown
ip address 23.1.1.2 255.255.255.252
isis enable 1
interface LoopBack0
ip address 3.3.3.3 255.255.255.255
isis enable 1
二、VXLAN
1.引入库
CE1
bridge-domain 10
vxlan vni 10
#
bridge-domain 20
vxlan vni 20
interface GE1/0/0.10 mode l2
encapsulation dot1q vid 10
bridge-domain 10
#
interface GE1/0/0.20 mode l2
encapsulation dot1q vid 20
bridge-domain 20
interface Vbdif10
ip address 192.168.1.1 255.255.255.0
vxlan anycast-gateway enable
#
interface Vbdif20
ip address 172.16.1.1 255.255.255.0
vxlan anycast-gateway enable
interface Nve1
source 1.1.1.1
vni 10 head-end peer-list 3.3.3.3
vni 20 head-end peer-list 3.3.3.3
CE3
#
bridge-domain 10
vxlan vni 10
#
bridge-domain 20
vxlan vni 20
#
interface GE1/0/0.10 mode l2
encapsulation dot1q vid 10
bridge-domain 10
#
interface Vbdif10
ip address 192.168.1.1 255.255.255.0
#
interface Vbdif20
ip address 172.16.1.1 255.255.255.0
#
interface Nve1
source 3.3.3.3
vni 10 head-end peer-list 1.1.1.1
vni 20 head-end peer-list 1.1.1.1
总结
CE1 arp
<HUAWEI>dis arp
ARP Entry Types: D - Dynamic, S - Static, I - Interface, O - OpenFlow, RD - Redi
rect
EXP: Expire-time VLAN:VLAN or Bridge Domain
IP ADDRESS MAC ADDRESS EXP(M) TYPE/VLAN INTERFACE VPN-INSTA
NCE
--------------------------------------------------------------------------------
--------
12.1.1.1 3809-1d01-0101 I GE1/0/1
12.1.1.2 3809-1d02-0100 14 D GE1/0/1
192.168.1.1 707b-e8d5-5fb2 I Vbdif10
192.168.1.10 5489-9801-1149 9 D/BD10 GE1/0/0.10
172.16.1.1 707b-e8d5-5fb2 I Vbdif20
172.16.1.10 5489-986c-159f 2 D/BD20 GE1/0/0.20
--------------------------------------------------------------------------------
--------
Total:6 Dynamic:3 Static:0 Interface:3 OpenFlow:0
Redirect:0
CE3 arp
<HUAWEI>dis arp
ARP Entry Types: D - Dynamic, S - Static, I - Interface, O - OpenFlow, RD - Redi
rect
EXP: Expire-time VLAN:VLAN or Bridge Domain
IP ADDRESS MAC ADDRESS EXP(M) TYPE/VLAN INTERFACE VPN-INSTA
NCE
--------------------------------------------------------------------------------
--------
23.1.1.2 3809-1d03-0101 I GE1/0/1
23.1.1.1 3809-1d02-0101 14 D GE1/0/1
192.168.1.1 707b-e837-530e I Vbdif10
192.168.1.10 5489-9801-1149 20 D/BD10 1.1.1.1
192.168.1.20 5489-987f-80d9 18 D/BD10 GE1/0/0.10
172.16.1.1 707b-e837-530e I Vbdif20
172.16.1.10 5489-986c-159f 18 D/BD20 1.1.1.1
--------------------------------------------------------------------------------
--------
Total:7 Dynamic:4 Static:0 Interface:3 OpenFlow:0
Redirect:0