Tak mám tady první ukázku konfigurace a výsledky porovnání propustnosti APU.4D4(debian11+vpp) vs RB4011(ROS7.1rc4).
Test výsledků enkapsulace do vxlany a její tranzit, konfigurace pomocí loop adres
Výsledky přenesených dat, generováno na rb1036 v packet generátoru
ukázka konfigurace toho rozhraní na kterém pracuji
./interfaces ethernet add -i ge2 -e true -d 0000:02:00.0 --num-rx-queues 2 --num-tx-queues 2
./interfaces ethernet add -i ge3 -e true -d 0000:03:00.0 --num-rx-queues 2 --num-tx-queues 2
./interfaces bridge add -i br0 -e true -c "loopback"
./interfaces bridge add -i br1 -e true -c "vxlan bridge"
./interfaces bridge port set -i ge3 -b br1
./ip address add -i ge2 -e true -a 10.10.15.1/24
./ip address add -i br0 -e true -a 10.100.1.1/32
./system vpp set --maincore 0 --workers 3
./routing set -i 10.100.1.1
./routing ospf set -e true
./routing ospf area add -a 0.0.0.0 -e true
./routing ospf interface add -a 0.0.0.0 -i ge2 -e true
./routing ospf interface add -a 0.0.0.0 -i br0 -e true --passive true
./interfaces vxlan add -i vxlan110 -s 10.100.1.1 -d 10.100.1.2 -v 110 -e true
./interfaces bridge port set -i vxlan110 -b br1
./interfaces bridge port set -i ge3 -b br1
./commit now
zatím to podporuje ipv4/6, bridge, vlany, vxlany, horizonty, ospf, ospf3, základní nastavování vpp.... už to funguje, na víc funkcích stále pracuji
to nudné na závěr, konfigurační soubor co z toho vznikne vypadá nějak takhle
"Interface": {
"Ethernet": [
{
"Name": "ge2",
"Enable": "true",
"Comment": "",
"DeviceId": "0000:02:00.0",
"NumRxQueues": "2",
"NumTxQueues": "2",
"HwAddr": "",
"Mtu": "",
"Bridge": {
"Bridge": "",
"Horizon": ""
},
"Address": [
{
"Enable": "true",
"Address": "10.10.15.1/24",
"Comment": ""
}
]
},
{
"Name": "ge3",
"Enable": "true",
"Comment": "",
"DeviceId": "0000:03:00.0",
"NumRxQueues": "2",
"NumTxQueues": "2",
"HwAddr": "",
"Mtu": "",
"Bridge": {
"Bridge": "br1",
"Horizon": ""
},
"Address": null
}
],
"Bridge": [
{
"Name": "br0",
"InstanceID": 1,
"Enable": "true",
"Comment": "loopback",
"HwAddr": "",
"Mtu": "",
"Address": [
{
"Enable": "true",
"Address": "10.100.1.1/32",
"Comment": ""
}
]
},
{
"Name": "br1",
"InstanceID": 2,
"Enable": "true",
"Comment": "vxlan bridge",
"HwAddr": "",
"Mtu": "",
"Address": null
}
],
"Vxlan": [
{
"Name": "vxlan110",
"InstanceID": 3,
"Enable": "true",
"Comment": "",
"HwAddr": "",
"Mtu": "",
"SrcIP": "10.10.15.1",
"DstIP": "10.10.15.2",
"VNI": "110",
"Port": "",
"Group": "",
"Bridge": {
"Bridge": "br1",
"Horizon": ""
},
"Address": null
}
],
"Vlan": null
},
"Routing": {
"RouterId": "10.100.1.1",
"StaticRoutes": null,
"Ospf": {
"Enable": "true",
"Area": [
{
"Area": "0.0.0.0",
"Enable": "true",
"Comment": ""
}
],
"Interface": [
{
"Name": "ge2",
"Area": "0.0.0.0",
"Enable": "true",
"Cost": "10",
"Priority": "1",
"Passive": "false",
"Authentication": "none",
"AuthenticationKey": "",
"TransmitDelay": "1",
"DeadInterval": "40",
"RetransmitInterval": "5",
"HelloInterval": "10"
},
{
"Name": "br0",
"Area": "0.0.0.0",
"Enable": "true",
"Cost": "10",
"Priority": "1",
"Passive": "true",
"Authentication": "none",
"AuthenticationKey": "",
"TransmitDelay": "1",
"DeadInterval": "40",
"RetransmitInterval": "5",
"HelloInterval": "10"
}
]
},
"Vpp": {
"MainCore": "0",
"Workers": "3"
}
}```