VPP L2 Bridge Forwarding

In this experiment, VPP is used to take over two network cards to form a bridge, and the two computers connected to the bridge can communicate with each other.

environment

Ubuntu version: 20.04

VPP version: 23.02

topology

configuration

virtual network

Create new VMnet2 and VMnet3 to isolate the two PCs

 Ubuntu (the machine where VPP runs)

Create two network cards and put them in VMnet2 and VMnet3 respectively

Two Win10 virtual machines

Each has a network card, respectively placed in VMnet2 and VMnet3

      

 VPP 

 startup.conf

unix { 
	interactive 
	cli-listen /run/vpp/cli.sock 
	gid 0 
	startup-config ./init_cli
}
dpdk { 
	dev 0000:02:05.0{
		name eth2
	} 
	dev 0000:02:06.0{
		name eth1
	} 
}

api-trace {
  on
}

socksvr {
  default
}

cpu {
	main-core 1
	corelist-workers 2,3
}

buffers {
        buffers-per-numa 128000
}

plugins { 
	plugin oddbuf_plugin.so { enable } 
}

init_cli

comment { create bridge }
create bridge-domain 10

comment {set up eth1 eth2 }
set interface l2 bridge eth1 10
set interface state eth1 up

set interface l2 bridge eth2 10
set interface state eth2 up

start operation

Start VPP

Configure the virtual machine 

     

 Two computers ping each other

       

 

 

 

Guess you like

Origin blog.csdn.net/wjmasd/article/details/130745713