Subject: RARE user and assistance email list
List archive
- From: "mc36" <>
- To: Christopher Adigun <>,
- Subject: Re: [RARE-users] [freertr] Freertr Install On AWS and DPDK
- Date: Wed, 4 Jan 2023 18:19:12 +0100
- List-id: <freertr.groups.io>
- Mailing-list: list ; contact
hi,
let's dissect it a bit because your rtr-hw.txt seems to have some issues...
- you did not spawn the cpu port (eth0) handler.... it needs a veth in linux
and that need to be passed to both freerouter and the dpdk...
- you missed the 'proc' knob before /rtr/p4dpdk.bin, you just entered the
executable name which is not a valid -hw command in freerouter...
- your p4dpdk parameters seems a bit mess... it's 127.0.0.1 9080 0 and the
rest.... and that 0 also seems bad because this way you
delegate your first physical nic as cpuport, which is not the case imho...
it should be the dpdk index of the veth described above...
this, assuming the only veth you give to dpdk is the cpuport is the number
of physical interfaces...
for your quick reference, i ran the below command on the
http://dl.nop.hu/rtr.vmdk image:
yourname#test hwext path /rtr/rtr- dataplane p4dpdk
i arrived to the following working configuration:
yourname#show running-config
hostname yourname
buggy
!
!
vrf definition host
exit
!
vrf definition p4
exit
!
interface ethernet0
description p4 cpu port
no shutdown
no log-link-change
exit
!
interface sdn1
mtu 1500
macaddr 5254.0012.3456
no shutdown
no log-link-change
exit
!
interface sdn2
mtu 1500
macaddr 006e.330d.1875
vrf forwarding host
ipv4 address 10.255.255.254 255.255.255.0
no shutdown
no log-link-change
exit
!
line tty1
no exec authorization
no login authentication
exit
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
alias test bash command attach shell1 /rtr/ptyRun.bin /bin/sh
!
server telnet host
security protocol telnet
no exec authorization
no login authentication
vrf host
exit
!
server telnet p4
security protocol telnet
no exec authorization
no login authentication
vrf p4
exit
!
server p4lang p4
export-vrf host
export-port sdn1 0 0 0 0 0
export-port sdn2 1 0 0 0 0
interconnect ethernet0
vrf p4
exit
!
!
end
yourname#flash type rtr-hw.txt
hwid xxx
tcp2vrf 23 host 23
line tty1 127.0.0.1 20022 127.0.0.1 20021
tcp2vrf 2323 p4 23 127.0.0.1
tcp2vrf 9080 p4 9080 127.0.0.1
proc p4emu /rtr/p4dpdk.bin --vdev=net_af_packet0,iface=ens3
--vdev=net_af_packet1,iface=veth1b --vdev=net_af_packet2,iface=veth0b --
127.0.0.1 9080 2
int eth0 eth - 127.0.0.1 19999 127.0.0.1 19998
proc cpuport /rtr/pcapInt.bin veth0a 19998 127.0.0.1 19999 127.0.0.1
yourname#
br,
cs
On 1/4/23 17:35, Christopher Adigun wrote:
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 (#907): https://groups.io/g/freertr/message/907
Mute This Topic: https://groups.io/mt/96011193/6413194
Group Owner:
Unsubscribe: https://groups.io/g/freertr/unsub []
-=-=-=-=-=-=-=-=-=-=-=-
- [RARE-users] [freertr] Freertr Install On AWS and DPDK, Christopher Adigun, 01/02/2023
- Re: [RARE-users] [freertr] Freertr Install On AWS and DPDK, mc36, 01/02/2023
- Re: [RARE-users] [freertr] Freertr Install On AWS and DPDK, mc36, 01/02/2023
- Re: [RARE-users] [freertr] Freertr Install On AWS and DPDK, Christopher Adigun, 01/02/2023
- Re: [RARE-users] [freertr] Freertr Install On AWS and DPDK, mc36, 01/02/2023
- Re: [RARE-users] [freertr] Freertr Install On AWS and DPDK, Christopher Adigun, 01/04/2023
- Re: [RARE-users] [freertr] Freertr Install On AWS and DPDK, mc36, 01/04/2023
- Re: [RARE-users] [freertr] Freertr Install On AWS and DPDK, Christopher Adigun, 01/05/2023
- Re: [RARE-users] [freertr] Freertr Install On AWS and DPDK, mc36, 01/05/2023
- Message not available
- Re: [RARE-users] [freertr] Freertr Install On AWS and DPDK, mc36, 01/05/2023
- Re: [RARE-users] [freertr] Freertr Install On AWS and DPDK, Christopher Adigun, 01/05/2023
- Re: [RARE-users] [freertr] Freertr Install On AWS and DPDK, mc36, 01/05/2023
- Message not available
- Re: [RARE-users] [freertr] Freertr Install On AWS and DPDK, mc36, 01/05/2023
- Re: [RARE-users] [freertr] Freertr Install On AWS and DPDK, Christopher Adigun, 01/05/2023
- Re: [RARE-users] [freertr] Freertr Install On AWS and DPDK, mc36, 01/05/2023
- Re: [RARE-users] [freertr] Freertr Install On AWS and DPDK, Christopher Adigun, 01/06/2023
- Re: [RARE-users] [freertr] Freertr Install On AWS and DPDK, mc36, 01/06/2023
- Re: [RARE-users] [freertr] Freertr Install On AWS and DPDK, mc36, 01/04/2023
- Re: [RARE-users] [freertr] Freertr Install On AWS and DPDK, Christopher Adigun, 01/04/2023
- Re: [RARE-users] [freertr] Freertr Install On AWS and DPDK, mc36, 01/02/2023
- Re: [RARE-users] [freertr] Freertr Install On AWS and DPDK, Christopher Adigun, 01/02/2023
- Re: [RARE-users] [freertr] Freertr Install On AWS and DPDK, mc36, 01/02/2023
- Re: [RARE-users] [freertr] Freertr Install On AWS and DPDK, mc36, 01/02/2023
Archive powered by MHonArc 2.6.19.