Open keyibo opened 5 years ago
sudo ip link set dev eth0 master blue
I assume you don't need to add eth0 to blue VRF. eth0 should belong to default VRF.
$gobgp vrf add red id 5 rd 100:1 rt both 100:1 //red is a VRF which has been created, and its id is 5 $gobgp nei add 192.168.1.1 as 200 vrf blue
I assume you have to add neighbor with VRF red instead of blue.
gobgp can't allocate a label for vrf
We build the following topology.
CE1 has a loopback0: 1.1.1.1/32 PE1 has a loopback0: 2.2.2.2/32 CORE has a loopback0: 3.3.3.3/32 PE2 has a loopback0: 4.4.4.4/32 CE2 has a loopback0: 5.5.5.5/32
First, we use ospf(which is supported by FRR) to make PE1, CORE and PE2 interconnected. Second, on PE1, CORE and PE2 configure mpls. Third, on PE1 and PE2, we create VRF.
PE1 and PE2:
At last, on CE1, PE1, CORE, PE2 and CE2, we use gobgp.(CORE is RR)
CE1:
PE1:
CORE:
After configuration, there are some errors. The loopback0 of CE1 can't communicate with the loopback0 of CE2. But CE1 and CE2 have the route. And on PE1, its kernel routing table of vrf only has a route,"5.5.5.5/32". ON PE2, its kernel routing table of vrf only has a route,"1.1.1.1/32". How can i use FRR(v6.02) and gobgp(v2.3.0) to build mpls vpn?