vpp bvi
DBGvpp# show int Name Idx State MTU (L3/IP4/IP6/MPLS) Counter Count UnknownEthernet5/0/0 1 down 9000/0/0/0 rx-miss 649 local0 0 down 0/0/0/0 DBGvpp# loopback create loop0 DBGvpp# set int l2 bridge loop0 1 bvi DBGvpp# set int ip address loop0 192.168.1.1/24 DBGvpp# set int state loop0 up DBGvpp# set int l2 bridge UnknownEthernet5/0/0 1 DBGvpp# set int state UnknownEthernet5/0/0 up DBGvpp# ping 192.168.1.1 Aborted due to a keypress. Statistics: 2 sent, 0 received, 100% packet loss DBGvpp# DBGvpp# ping 192.168.1.82 source loop0 116 bytes from 192.168.1.82: icmp_seq=2 ttl=64 time=.1053 ms 116 bytes from 192.168.1.82: icmp_seq=3 ttl=64 time=.0787 ms 116 bytes from 192.168.1.82: icmp_seq=4 ttl=64 time=.0739 ms 116 bytes from 192.168.1.82: icmp_seq=5 ttl=64 time=.0730 ms Aborted due to a keypress. Statistics: 5 sent, 4 received, 20% packet loss DBGvpp# DBGvpp#
添加一个host interface
DBGvpp# create host-interface name ns1_tap host-ns1_tap DBGvpp# set int l2 bridge ns1_tap 1DBGvpp# set int l2 bridge host-ns1_tap 1 DBGvpp# set int state host-ns1_tap up DBGvpp#
https://blog.csdn.net/Illina/article/details/81666935