0%

前言:

本文主要介绍了如何使用Openwrt 官方SDK编译最新版FRR,并使用FRRouting建立VXLAN EVPN网络,实现异地组网。

基本拓扑

1
2
3
4
5
6
7
8
9
10
11
12
13
14
                              +-+--+-+
+-----Internet----------++|RR|++---------Internet-------+
| +-+--+-+ |
| |
| |
| |
| |
| |
+-----+--------+ +-----+-------+
| eth0.2 | | eth0.2 |
| eth0.46+---------Private-----10.0.0.0/7---------+eth0.46 |
| Site1 | | Site2 |
+--------------+ +-------------+

说明:

Site 1与Site2之间有内网,接口eth0.46。不同网段,路由可达。ip范围10.0.0.0/7,dhcp动态获取。

RR是公网上拥有固定ip地址的服务器,Site 1和Site2使用eth0.2连接公网。

RR负责为Site 1和Site 2交换MAC地址信息。Site 1与Site 2互访使用内网流量。

阅读全文 »

记录一下我自己用的CentOS 7的开局配置。

查看CentOS版本,修改主机名、修改时区、升级到最新发行版

1
2
3
4
5
cat /etc/redhat-release 
hostnamectl --static set-hostname D2O-VPS
rm -f /etc/localtime
ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
yum update
阅读全文 »