VPP - 二层转发

在VPP里配置网桥:

# vppctl 
vpp# show int
              Name               Idx    State  MTU (L3/IP4/IP6/MPLS)     Counter          Count
GigabitEthernet13/0/0             2     down         9000/0/0/0
GigabitEthernetb/0/0              1     down         9000/0/0/0
local0                            0     down          0/0/0/0

vpp# set int state GigabitEthernet13/0/0 up
vpp# set int state GigabitEthernetb/0/0 up

vpp# show int
              Name               Idx    State  MTU (L3/IP4/IP6/MPLS)     Counter          Count
GigabitEthernet13/0/0             2      up          9000/0/0/0     rx packets                     2
                                                                    rx bytes                     120
                                                                    drops                          2
                                                                    ip4                            2
GigabitEthernetb/0/0              1      up          9000/0/0/0     rx packets                     1
                                                                    rx bytes                      60
                                                                    drops                          1
                                                                    ip4                            1
local0                            0     down          0/0/0/0

vpp# set interface l2 bridge GigabitEthernet13/0/0 100
vpp# set interface l2 bridge GigabitEthernetb/0/0 100
vpp# show l2fib verbose
    Mac-Address     BD-Idx If-Idx BSN-ISN Age(min) static filter bvi         Interface-Name
 00:0c:29:6b:7d:5e    1      1      0/1      -       -      -     -       GigabitEthernetb/0/0
 00:0c:29:fc:42:25    1      2      0/1      -       -      -     -       GigabitEthernet13/0/0
L2FIB total/learned entries: 2/2  Last scan time: 0.0000e0sec  Learn limit: 4194304

你可能感兴趣的:(VPP)