6 To connect the 2 interfaces we put them on an L2 bridge.
8 Use the "set interface l2 bridge" command.
10 .. code-block:: console
12 vpp# set interface l2 bridge VirtualEthernet0/0/0 100
13 vpp# set interface l2 bridge TenGigabitEthernet86/0/0 100
15 BD-ID Index BSN Age(min) Learning U-Forwrd UU-Flood Flooding ARP-Term BVI-Intf
16 100 1 0 off on on on on off N/A
17 vpp# show bridge 100 det
18 BD-ID Index BSN Age(min) Learning U-Forwrd UU-Flood Flooding ARP-Term BVI-Intf
19 100 1 0 off on on on on off N/A
21 Interface If-idx ISN SHG BVI TxFlood VLAN-Tag-Rewrite
22 VirtualEthernet0/0/0 3 1 0 - * none
23 TenGigabitEthernet86/0/0 1 1 0 - * none
26 Bring the Interfaces Up
27 -----------------------
29 We can now bring all the pertinent interfaces up. We can then we will then be able to communicate
30 with the VM from the remote system running Linux.
32 Bring the interfaces up with :ref:`setintstate` command.
34 .. code-block:: console
36 vpp# set interface state VirtualEthernet0/0/0 up
37 vpp# set interface state TenGigabitEthernet86/0/0 up
39 Name Idx State Counter Count
40 TenGigabitEthernet86/0/0 1 up rx packets 2
42 TenGigabitEthernet86/0/1 2 down
43 VirtualEthernet0/0/0 3 up tx packets 2
50 The remote Linux system has an ip address of "10.0.0.2" we can now reach it from the VM.
52 Use the "virsh console" command to attach to the VM. "ctrl-D" to exit.
54 .. code-block:: console
56 $ virsh console iperf-server3
57 Connected to domain iperf-server3
58 Escape character is ^]
60 Ubuntu 16.04.3 LTS iperfvm ttyS0
63 root@iperfvm:~# ping 10.0.0.2
64 64 bytes from 10.0.0.2: icmp_seq=1 ttl=64 time=0.285 ms
65 64 bytes from 10.0.0.2: icmp_seq=2 ttl=64 time=0.154 ms
66 64 bytes from 10.0.0.2: icmp_seq=3 ttl=64 time=0.159 ms
67 64 bytes from 10.0.0.2: icmp_seq=4 ttl=64 time=0.208 ms
70 On VPP you can now see the packet counts increasing. The packets from the VM are seen as **rx packets**
71 on **VirtualEthernet0/0/0**, they are then bridged to **TenGigabitEthernet86/0/0** and are seen leaving the
72 system as **tx packets**. The reverse is true on the way in.
74 .. code-block:: console
77 Name Idx State Counter Count
78 TenGigabitEthernet86/0/0 1 up rx packets 16
82 TenGigabitEthernet86/0/1 2 down
83 VirtualEthernet0/0/0 3 up rx packets 14