Skip to Content.
Sympa Menu

rare-users - Re: [RARE-users] [freertr] Freertr Install On AWS and DPDK

Subject: RARE user and assistance email list

List archive

Re: [RARE-users] [freertr] Freertr Install On AWS and DPDK


Chronological Thread 
  • From: "Christopher Adigun" <>
  • To: mc36 <>,
  • Subject: Re: [RARE-users] [freertr] Freertr Install On AWS and DPDK
  • Date: Wed, 04 Jan 2023 08:35:07 -0800
  • List-id: <freertr.groups.io>
  • Mailing-list: list ; contact

I was able to get the Fedora rpms installed using https://copr.fedorainfracloud.org/coprs/nucleo/freerouter/

My hw.txt:

hwid emu
port 63000 64000
int eth0 eth - 127.0.0.1 22710 127.0.0.1 22709
!int eth1 eth 0000.0A00.02FE 127.0.0.1 22712 127.0.0.1 22711
!line tty1 127.0.0.1 21003 127.0.0.1 21003
tcp2vrf 2323 v1 23
tcp2vrf 2001 v1 22
tcp2vrf 9080 v1 9080
!tcp2vrf 8080 v1 80
/bin/p4dpdk.bin -- 127.0.0.1 0 9080 0 1 2   1 3 4

I have added the hugepages and also moved 2 interfaces into vfio-pci:

[ec2-user@ip-172-31-38-199 ~]$ dpdk-devbind.py -s
 
Network devices using DPDK-compatible driver
============================================
0000:00:06.0 'Elastic Network Adapter (ENA) ec20' drv=vfio-pci unused=ena
0000:00:07.0 'Elastic Network Adapter (ENA) ec20' drv=vfio-pci unused=ena
 
Network devices using kernel driver
===================================
0000:00:05.0 'Elastic Network Adapter (ENA) ec20' if=eth0 drv=ena unused=vfio-pci *Active*
 
No 'Baseband' devices detected
==============================

But sdn interface shows down:

[root@ip-172-31-38-199 ~]# telnet localhost 2323
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
welcome
line ready
core1#
core1#
core1#show int

ethernet0 is up, promisc
 description:
 state changed 3 times, last at 2023-01-03 23:45:56, 17:41:05 ago
 last packet input never ago, output never ago, drop never ago
 type is ethernet, hwaddr=004c.5e29.0f75, mtu=1500, bw=100mbps
 received 0 packets (0 bytes) dropped 0 packets (0 bytes)
 transmitted 0 packets (0 bytes) macsec=false sgt=false

sdn1 is down
 description:
 state changed 2 times, last at 2023-01-03 23:45:56, 17:41:04 ago
 last packet input never ago, output never ago, drop never ago
 type is sdn, hwaddr=0a18.f686.994b, mtu=9001, bw=1000mbps
 received 0 packets (0 bytes) dropped 0 packets (0 bytes)
 transmitted 0 packets (0 bytes) macsec=false sgt=false
 

Below is the contents of rtr-sw.txt:

hostname core1
buggy
!
logging buffered debug 10240
logging file debug core1.log
!
vrf definition v1
 rd 1:1
 rt4import 1:1
 rt4export 1:1
 rt6import 1:1
 rt6export 1:1
 label4mode per-prefix
 label6mode per-prefix
 exit
!
interface ethernet0
 no shutdown
 no log-link-change
 exit
!
interface sdn1
 mtu 9001
 bandwidth 1000000
 macaddr 0a18.f686.994b
 no shutdown
 no log-link-change
 exit
!
!
!
!
!
!
!
!
!
!
!
!
!
!
server telnet ssh
 security protocol ssh
 port 22
 exec logging
 no exec authorization
 no login authentication
 vrf v1
 exit
!
server telnet tel
 security protocol telnet
 exec width 130
 exec height 25
 no exec authorization
 no login authentication
 vrf v1
 exit
!
server p4lang p4
 export-vrf v1
 export-port sdn1 128 10 0 0 0
 interconnect ethernet0
 vrf v1
 exit
!
client name-server 8.8.8.8
client config-save
client time-zone CET
!
end

The free-router service is starting without any errors:

[root@ip-172-31-38-199 ~]# systemctl status freerouter.service
● freerouter.service - Main process of freerouter
   Loaded: loaded (/usr/lib/systemd/system/freerouter.service; disabled; vendor preset: disabled)
   Active: active (running) since Wed 2023-01-04 16:29:56 UTC; 1min 16s ago
 Main PID: 24330 (java)
   CGroup: /system.slice/freerouter.service
           └─24330 /usr/lib/jvm/jre-11-openjdk/bin/java -jar /usr/share/java/rtr.jar router /etc/freerouter/rtr-
 
Jan 04 16:29:56 ip-172-31-38-199.eu-west-1.compute.internal systemd[1]: Started Main process of freerouter.

Not sure where the problem could be? Also how can I debug if the dpdk process is having issues?
_._,_._,_

Groups.io Links:

You receive all messages sent to this group.

View/Reply Online (#905) | | | Mute This Topic | New Topic
Your Subscription | | Unsubscribe []

_._,_._,_



Archive powered by MHonArc 2.6.19.

Top of Page