Below is sample vpp-upf configuration. We use at lease three veth-pairs as UPF interfaces (e.g. N3, N4, N6/N9 etc). <br/>
We need create/use a host interface that will attach to a linux AF_PACKET interface, one side of a veth pair. The veth pair or host interaface must already exist. Once created, a new host interface will exist in VPP with the name '<em>host-<ifname></em>', where '<em><ifname></em>' is the name of the specified veth pair. Use the '<em>show interface</em>' command to display host interface details. <br/>
<br/>
<br/>
Below is sample vpp-upf configuration. We use at least three veth-pairs as UPF interfaces (e.g. N3, N4, N6/N9 etc). <br/>
<br/>
<br/>
```bash
```bash
ip table add 1
ip table add 1
ip table add 2
ip table add 2
...
@@ -12,19 +14,19 @@ ip table add 2
...
@@ -12,19 +14,19 @@ ip table add 2
####### Create N4 interface
####### Create N4 interface
create host-interface name core
create host-interface name core
set interface ip table host-core 0
set interface ip table host-core 0
set interface ip address host-core 192.168.61.201/26
set interface ip address host-core 192.168.61.201/24
set interface state host-core up
set interface state host-core up
####### Create N3 interface
####### Create N3 interface
create host-interface name access
create host-interface name access
set interface ip table host-access 1
set interface ip table host-access 1
set interface ip address host-access 192.168.62.201/26
set interface ip address host-access 192.168.62.201/24
set interface state host-access up
set interface state host-access up
####### Create N6 interface
####### Create N6 interface
create host-interface name sgi
create host-interface name sgi
set interface ip table host-sgi 2
set interface ip table host-sgi 2
set interface ip address host-sgi 192.168.63.201/26
set interface ip address host-sgi 192.168.63.201/24