Skip to Content.

rare-users - Re: [RARE-users] [freertr] clear p4lang p4 - required in case of interface addition

Subject: RARE user and assistance email list

List archive


Re: [RARE-users] [freertr] clear p4lang p4 - required in case of interface addition


Chronological Thread 
  • From: Xavier Jeannin <>
  • To:
  • Subject: Re: [RARE-users] [freertr] clear p4lang p4 - required in case of interface addition
  • Date: Wed, 26 Oct 2022 14:31:11 +0200
  • Dkim-filter: OpenDKIM Filter v2.10.3 zmtaauth02.partage.renater.fr E6C74A01BD

Hello

Le 26/10/2022 à 13:26, mc36 a écrit :
hi,
i've given a spin to your setup but it works here immediately...
can you try with the below sequence if it fails for you please?
thanks,
cs


sid(cfg)#bridge 11
sid(cfg-brdg)#
sid(cfg)#server p4lang p4 debug servP4langCfg.sendLine:servP4langCfg.java:1114 fwd0 tx: keepalive
sid(cfg)#server p4lang p4
sid(cfg-server)#export-bridge 11
sid(cfg-server)#debug servP4langCfg.sendLine:servP4langCfg.java:1114 fwd0 tx: bridgelabel_add 11 671317

invalid command

DAV0001(cfg-server)#$.java:1114 fwd0 tx: bridgelabel_add 11 671317
invalid command, try  ?

DAV0001(cfg-server)#debug
invalid command, try  ?

Would you like to make a quick VC to debug this?

https://rendez-vous.renater.fr/ppn

Regards
Xavier

sid(cfg)#interface bundle1.11
sid(cfg-subif)#brdebug servP4langCfg.sendLine:servP4langCfg.java:1114 fwd0 tx: portvlan_add 27038 3469 11
sid(cfg-subif)#bridge-group 11
sid(cfg-subif)#debug servP4langCfg.sendLine:servP4langCfg.java:1114 fwd0 tx: portbridge_add 27038 11
sid(cfg-subif)#
sid(cfg-subif)#
sid(cfg)#interface sdn2
sid(cfg-if)#bridge-group 11
sid(cfg-if)#debug servP4langCfg.sendLine:servP4langCfg.java:1114 fwd0 tx: portbridge_mod 2 11
debug servP4langCfg.sendLine:servP4langCfg.java:1114 fwd0 tx: keepalive
sid#ping 1.1.1.1 vrf v3
pinging 1.1.1.1, src="null," vrf=v3, cnt=5, len=64, df=false, tim=1000, gap=0, ttl=255, tos=0, sgt=0, flow=0, fill=0, alrt=-1, sweep=false, multi=false
!!!!!


On 10/26/22 12:58, Xavier Jeannin wrote:
Hi,

you mentioned that export-bridge was not necessary if   thee is no IP@ on the bvi. I prefer this because it was my first understanding. So all is perfect :-)

I add a new user with the export-bridge got the the same result. The ping start to work when I clear the   p4lang   server.
I hope I have not once again made a misconfiguration :-( (Apologies in advance if it was the cas)

/
/

/root@nmaas-demo:~# ping 16.16.16.101//
//PING 16.16.16.101 (16.16.16.101) 56(84) bytes of data.//
//64 bytes from 16.16.16.101: icmp_seq=133 ttl=255 time=1.16 ms//
//64 bytes from 16.16.16.101: icmp_seq=134 ttl=255 time=0.866 ms//
//64 bytes from 16.16.16.101: icmp_seq=135 ttl=255 time=1.03 ms//
//64 bytes from 16.16.16.101: icmp_seq=136 ttl=255 time=1.20 ms//
//64 bytes from 16.16.16.101: icmp_seq=137 ttl=255 time=0.999 ms//
//64 bytes from 16.16.16.101: icmp_seq=138 ttl=255 time=0.811 ms//
//64 bytes from 16.16.16.101: icmp_seq=139 ttl=255 time=1.03 ms//
//^C//
//--- 16.16.16.101 ping statistics ---//
//139 packets transmitted, 7 received, 94% packet loss, time 141201ms//
//rtt min/avg/max/mdev = 0.811/1.016/1.205/0.133 ms/


DAV0001#clear p4lang p4
DAV0001#show running-config hide
hostname DAV0001
buggy
!
logging buffered debug 10240
logging file debug /var/log/freertr.log
logging rotate 655360000 /var/log/freertr.old
!
aaa userlist usr
   username rare
   exit
!
bundle 1
   loadbalance round
   exit
!
bridge 1
   mac-learn
   exit
!
bridge 2
   mac-learn
   exit
!
bridge 3
   mac-learn
   exit
!
bridge 4
   mac-learn
   exit
!
bridge 5
   mac-learn
   exit
!
bridge 6
   mac-learn
   exit
!
vrf definition inet
   exit
!
vrf definition p4
   exit
!
interface bundle1
   no shutdown
   no log-link-change
   exit
!
interface bundle1.11
   bridge-group 1
   no shutdown
   no log-link-change
   exit
!
interface bundle1.12
   bridge-group 2
   no shutdown
   no log-link-change
   exit
!
interface bundle1.16
   bridge-group 6
   no shutdown
   no log-link-change
   exit
!
interface bundle1.17
   bridge-group 5
   no shutdown
   no log-link-change
   exit
!
interface bundle1.18
   bridge-group 4
   no shutdown
   no log-link-change
   exit
!
interface bundle1.19
   bridge-group 3
   no shutdown
   no log-link-change
   exit
!
interface bvi1
   no shutdown
   no log-link-change
   exit
!
interface bvi2
   no shutdown
   no log-link-change
   exit
!
interface bvi3
   vrf forwarding inet
   ipv4 address 19.19.19.1 255.255.255.0
   no shutdown
   no log-link-change
   exit
!
interface bvi4
   no shutdown
   no log-link-change
   exit
!
interface bvi5
   no shutdown
   no log-link-change
   exit
!
interface bvi6
   no shutdown
   no log-link-change
   exit
!
interface ethernet0
   no shutdown
   no log-link-change
   exit
!
interface ethernet1
   no shutdown
   no log-link-change
   exit
!
interface ethernet2
   no shutdown
   no log-link-change
   exit
!
interface sdn10
   mtu 1500
   macaddr 002b.1540.1530
   bundle-group 1
   no shutdown
   no log-link-change
   exit
!
interface sdn15
   mtu 1500
   macaddr 007c.326c.7058
   no shutdown
   no log-link-change
   exit
!
interface sdn15.11
   bridge-group 1
   no shutdown
   no log-link-change
   exit
!
interface sdn15.12
   bridge-group 2
   no shutdown
   no log-link-change
   exit
!
interface sdn15.16
   bridge-group 6
   no shutdown
   no log-link-change
   exit
!
interface sdn15.17
   bridge-group 5
   no shutdown
   no log-link-change
   exit
!
interface sdn15.18
   bridge-group 4
   no shutdown
   no log-link-change
   exit
!
interface sdn15.19
   bridge-group 3
   no shutdown
   no log-link-change
   exit
!
interface sdn7
   mtu 1500
   macaddr 006c.6722.2e73
   bundle-group 1
   no shutdown
   no log-link-change
   exit
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
sensor ifaces-hw
   path interfaces-hw/interface/counter
   prefix freertr-ifaces
   prepend iface_hw_byte_
   command sho inter hwsumm
   name 0 ifc=
   key name interfaces-hw/interface
   replace \. _
   column 1 name st
   column 1 replace admin -1
   column 1 replace down 0
   column 1 replace up 1
   column 2 name tx
   column 3 name rx
   column 4 name dr
   exit
!
sensor ifaces-sw
   path interfaces-sw/interface/counter
   prefix freertr-ifaces
   prepend iface_sw_byte_
   command sho inter swsumm
   name 0 ifc=
   key name interfaces-sw/interface
   replace \. _
   column 1 name st
   column 1 replace admin -1
   column 1 replace down 0
   column 1 replace up 1
   column 2 name tx
   column 3 name rx
   column 4 name dr
   exit
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
server telnet p4
   security protocol telnet
   exec logging
   no exec authorization
   no login authentication
   login logging
   vrf p4
   exit
!
server telnet telnet
   no exec authorization
   no login authentication
   vrf p4
   exit
!
server p4lang p4
   export-vrf inet
   export-bridge 1
   export-bridge 2
   export-bridge 3
   export-bridge 4
   export-bridge 5
   export-bridge 6
   export-port sdn15 12 10 0 0 0
   export-port sdn10 52 10 0 0 0
   export-port sdn7 176 10 0 0 0
   export-port bundle1 dynamic 0 0 0 0
   interconnect ethernet0
   vrf p4
   exit
!
server prometheus pr
   sensor ifaces-hw
   sensor ifaces-sw
   interface bvi3
   vrf inet
   exit
!
!
end

Regards
Xavier

Le 26/10/2022    12:08, mc36 a   crit  :
hi,
so you missed the required stanza export-bridge 5 under p4lang server again... :)
can you give that a try without the clearing?
br,
cs


On 10/26/22 12:03, wrote:
Hi

Thank you Csaba. I was in a meeting

It was also my understanding that export-bridge was required but in one of your email ...
Whatever I update the configuration according to your advice     I just keep the @IP on the bvi3 as it is used for the monitoring

So for all others clients, no IP address on the PPN.
I just add a new client 17 and same problem

/DAV0001#conf t//
//DAV0001(cfg)#bridge 5//
//DAV0001(cfg-brdg)#mac-learn//
//DAV0001(cfg-brdg)#exit//
//DAV0001(cfg)#interface sdn15.17//
//DAV0001(cfg-subif)#bridge-group 5//
//DAV0001(cfg-subif)#exit//
//DAV0001(cfg)#interface bundle1.17//
//DAV0001(cfg-subif)#bridge-group 5//
//DAV0001(cfg-subif)#exit//
//DAV0001(cfg)#exit/

--> then configuration of the PE
--> Ping /
root@nmaas-demo:~# ping 17.17.17.101//
//PING 17.17.17.101 (17.17.17.101) 56(84) bytes of data./
--> no work
--> /DAV0001#clear p4lang p4/
then the ping works /
64 bytes from 17.17.17.101: icmp_seq=231 ttl=255 time=1.14 ms//
//64 bytes from 17.17.17.101: icmp_seq=232 ttl=255 time=1.03 ms//
//64 bytes from 17.17.17.101: icmp_seq=233 ttl=255 time=1.05 ms//
//^C//
//--- 17.17.17.101 ping statistics ---//
//233 packets transmitted, 3 received, 98% packet loss, time 237505ms//
//rtt min/avg/max/mdev = 1.032/1.078/1.148/0.062 ms/

Regards
Xavier


DAV0001#show running-config hide
hostname DAV0001
buggy
!
logging buffered debug 10240
logging file debug /var/log/freertr.log
logging rotate 655360000 /var/log/freertr.old
!
aaa userlist usr
     username rare
     exit
!
bundle 1
     loadbalance round
     exit
!
bridge 1
     mac-learn
     exit
!
bridge 2
     mac-learn
     exit
!
bridge 3
     mac-learn
     exit
!
bridge 4
     mac-learn
     exit
!
bridge 5
     mac-learn
     exit
!
vrf definition inet
     exit
!
vrf definition p4
     exit
!
interface bundle1
     no shutdown
     no log-link-change
     exit
!
interface bundle1.11
     bridge-group 1
     no shutdown
     no log-link-change
     exit
!
interface bundle1.12
     bridge-group 2
     no shutdown
     no log-link-change
     exit
!
interface bundle1.17
     bridge-group 5
     no shutdown
     no log-link-change
     exit
!
interface bundle1.18
     bridge-group 4
     no shutdown
     no log-link-change
     exit
!
interface bundle1.19
     bridge-group 3
     no shutdown
     no log-link-change
     exit
!
interface bvi1
     no shutdown
     no log-link-change
     exit
!
interface bvi2
     no shutdown
     no log-link-change
     exit
!
interface bvi3
     vrf forwarding inet
     ipv4 address 19.19.19.1 255.255.255.0
     no shutdown
     no log-link-change
     exit
!
interface bvi4
     no shutdown
     no log-link-change
     exit
!
interface bvi5
     no shutdown
     no log-link-change
     exit
!
interface ethernet0
     no shutdown
     no log-link-change
     exit
!
interface ethernet1
     no shutdown
     no log-link-change
     exit
!
interface ethernet2
     no shutdown
     no log-link-change
     exit
!
interface sdn10
     mtu 1500
     macaddr 002b.1540.1530
     bundle-group 1
     no shutdown
     no log-link-change
     exit
!
interface sdn15
     mtu 1500
     macaddr 007c.326c.7058
     no shutdown
     no log-link-change
     exit
!
interface sdn15.11
     bridge-group 1
     no shutdown
     no log-link-change
     exit
!
interface sdn15.12
     bridge-group 2
     no shutdown
     no log-link-change
     exit
!
interface sdn15.17
     bridge-group 5
     no shutdown
     no log-link-change
     exit
!
interface sdn15.18
     bridge-group 4
     no shutdown
     no log-link-change
     exit
!
interface sdn15.19
     bridge-group 3
     no shutdown
     no log-link-change
     exit
!
interface sdn7
     mtu 1500
     macaddr 006c.6722.2e73
     bundle-group 1
     no shutdown
     no log-link-change
     exit
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
sensor ifaces-hw
     path interfaces-hw/interface/counter
     prefix freertr-ifaces
     prepend iface_hw_byte_
     command sho inter hwsumm
     name 0 ifc=
     key name interfaces-hw/interface
     replace \. _
     column 1 name st
     column 1 replace admin -1
     column 1 replace down 0
     column 1 replace up 1
     column 2 name tx
     column 3 name rx
     column 4 name dr
     exit
!
sensor ifaces-sw
     path interfaces-sw/interface/counter
     prefix freertr-ifaces
     prepend iface_sw_byte_
     command sho inter swsumm
     name 0 ifc=
     key name interfaces-sw/interface
     replace \. _
     column 1 name st
     column 1 replace admin -1
     column 1 replace down 0
     column 1 replace up 1
     column 2 name tx
     column 3 name rx
     column 4 name dr
     exit
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
server telnet p4
     security protocol telnet
     exec logging
     no exec authorization
     no login authentication
     login logging
     vrf p4
     exit
!
server telnet telnet
     no exec authorization
     no login authentication
     vrf p4
     exit
!
server p4lang p4
     export-vrf inet
     export-bridge 3
     export-port sdn15 12 10 0 0 0
     export-port sdn10 52 10 0 0 0
     export-port sdn7 176 10 0 0 0
     export-port bundle1 dynamic 0 0 0 0
     interconnect ethernet0
     vrf p4
     exit
!
server prometheus pr
     sensor ifaces-hw
     sensor ifaces-sw
     interface bvi3
     vrf inet
     exit
!
!
end

Le 26/10/2022       10:03, mc36 a     crit   :
hi,
what i can see here is that you're assigning an ip to the bvi which should be avoided...
and finally, i really have no idea how it works as the export-bridge 4 under p4lang is missing?
br,
cs

On 10/26/22 09:45, wrote:
thank you Csaba

here it is

---------- configuration of the VLAN to connect the client ---
DAV0001#conf t
DAV0001(cfg)#bridge 4
DAV0001(cfg-brdg)#mac-learn
DAV0001(cfg-brdg)#exit
DAV0001(cfg)#interface sdn15.18
DAV0001(cfg-subif)#bridge-group 4
DAV0001(cfg-subif)#exit
DAV0001(cfg)#interface bvi4
DAV0001(cfg-if)#vrf forwarding inet
DAV0001(cfg-if)#ipv4 address 18.18.18.1 255.255.255.0
DAV0001(cfg-if)#exit
DAV0001(cfg)#exit
DAV0001#ping 18.18.18.1 vrf inet
pinging 18.18.18.1, src="null," vrf=inet, cnt=5, len=64, df=false, tim=1000, gap=0, ttl=255, tos=0, sgt=0, flow=0, fill=0, alrt=-1, sweep=false, multi=false
!!!!!
result=100.0%, recv/sent/lost/err=5/5/0/0, took 1, min/avg/max/dev rtt=0/0.1/1/0.1, ttl 255/255/255/0.0, tos 0/0.0/0/0.0

DAV0001#show ipv4 arp bvi4
mac address                                         time static
246e.964c.3e1a         18.18.18.44         00:00:37         false

-----------------

DAV0001#clear p4lang p4

----> then ping with client works

------------- configuration bundle for connection to the PE ------------

DAV0001#conf t
DAV0001(cfg)#interface bundle1.18
DAV0001(cfg-subif)#bridge-group 4
DAV0001(cfg-subif)#exit
-------------

DAV0001#clear p4lang p4
----> then ping from client to PE works

Regards
Xavier

Le 26/10/2022             09:29, mc36 a         crit     :
hi,
could you please give me the exact cli commands you execute on the rare box?
then maybe i can fix the issue... :)
(it must be a bug somewhere in the freerouter exporting process...)
thanks,
cs



On 10/26/22 09:26, wrote:
Hello

In my use case (see below graph) , from time to time, I will have to add a new 'virtual' interface (bundle1.12 ... bundle1.15 etc ...) for each client.
I notice that I need to make a 'clear p4lang p4' on the PPN, each time I add a client.
This annoy me because it will generate traffic perturbation when adding a new client on the traffic of all other clients.

Maybe I do not configure correctly me P4lang server

/DAV0001#show running-config server p4lang p4//
//server p4lang p4//
//         export-vrf inet//
//         export-port sdn15 12 10 0 0 0//
//         export-port sdn10 52 10 0 0 0//
//         export-port sdn7 176 10 0 0 0//
//         export-port bundle1 dynamic 0 0 0 0//
//         interconnect ethernet0//
//         vrf p4//
//         exit/

Here is the description of the steps I follow to add a client :

1/ I create a VLAN between the client (here a linux machine) and the PPN Wedge; I implement a bridge on the PPN and put an address on the bvi of the bridge to check the connectivity
then
On the client - Ping from client to the bvi on the PNN -- failed
On the PPN - clear p4lang p4
then the Ping works

2/ I implement the connection between the PPN and the PE (Bundle configuration on the PPN and on the PE)
The
On the client - Ping from client to the end of the bundle on the PE -- failed
On the PE - clear p4lang p4
On the client - Ping from client to the end of the bundle on the PE -- still ailed
On the PPN - clear p4lang p4
then the Ping works


Any idea ?
My conf is below

Thank you
Xavier


DAV0001#show running-config hide
hostname DAV0001
buggy
!
logging buffered debug 10240
logging file debug /var/log/freertr.log
logging rotate 655360000 /var/log/freertr.old
!
aaa userlist usr
                 username rare
                 exit
!
bundle 1
                 loadbalance round
                 exit
!
bridge 1
                 mac-learn
                 exit
!
bridge 2
                 mac-learn
                 exit
!
bridge 3
                 mac-learn
                 exit
!
bridge 4
                 mac-learn
                 exit
!
vrf definition inet
                 exit
!
vrf definition p4
                 exit
!
interface bundle1
                 no shutdown
                 no log-link-change
                 exit
!
interface bundle1.11
                 bridge-group 1
                 no shutdown
                 no log-link-change
                 exit
!
interface bundle1.12
                 bridge-group 2
                 no shutdown
                 no log-link-change
                 exit
!
interface bundle1.18
                 bridge-group 4
                 no shutdown
                 no log-link-change
                 exit
!
interface bundle1.19
                 bridge-group 3
                 no shutdown
                 no log-link-change
                 exit
!
interface bvi1
                 no shutdown
                 no log-link-change
                 exit
!
interface bvi2
                 no shutdown
                 no log-link-change
                 exit
!
interface bvi3
                 vrf forwarding inet
                 ipv4 address 19.19.19.1 255.255.255.0
                 no shutdown
                 no log-link-change
                 exit
!
interface bvi4
                 vrf forwarding inet
                 ipv4 address 18.18.18.1 255.255.255.0
                 no shutdown
                 no log-link-change
                 exit
!
interface ethernet0
                 no shutdown
                 no log-link-change
                 exit
!
interface ethernet1
                 no shutdown
                 no log-link-change
                 exit
!
interface ethernet2
                 no shutdown
                 no log-link-change
                 exit
!
interface sdn10
                 mtu 1500
                 macaddr 002b.1540.1530
                 bundle-group 1
                 no shutdown
                 no log-link-change
                 exit
!
interface sdn15
                 mtu 1500
                 macaddr 007c.326c.7058
                 no shutdown
                 no log-link-change
                 exit
!
interface sdn15.11
                 bridge-group 1
                 no shutdown
                 no log-link-change
                 exit
!
interface sdn15.12
                 bridge-group 2
                 no shutdown
                 no log-link-change
                 exit
!
interface sdn15.18
                 bridge-group 4
                 no shutdown
                 no log-link-change
                 exit
!
interface sdn15.19
                 bridge-group 3
                 no shutdown
                 no log-link-change
                 exit
!
interface sdn7
                 mtu 1500
                 macaddr 006c.6722.2e73
                 bundle-group 1
                 no shutdown
                 no log-link-change
                 exit
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
sensor ifaces-hw
                 path interfaces-hw/interface/counter
                 prefix freertr-ifaces
                 prepend iface_hw_byte_
                 command sho inter hwsumm
                 name 0 ifc=
                 key name interfaces-hw/interface
                 replace \. _
                 column 1 name st
                 column 1 replace admin -1
                 column 1 replace down 0
                 column 1 replace up 1
                 column 2 name tx
                 column 3 name rx
                 column 4 name dr
                 exit
!
sensor ifaces-sw
                 path interfaces-sw/interface/counter
                 prefix freertr-ifaces
                 prepend iface_sw_byte_
                 command sho inter swsumm
                 name 0 ifc=
                 key name interfaces-sw/interface
                 replace \. _
                 column 1 name st
                 column 1 replace admin -1
                 column 1 replace down 0
                 column 1 replace up 1
                 column 2 name tx
                 column 3 name rx
                 column 4 name dr
                 exit
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
server telnet p4
                 security protocol telnet
                 exec logging
                 no exec authorization
                 no login authentication
                 login logging
                 vrf p4
                 exit
!
server telnet telnet
                 no exec authorization
                 no login authentication
                 vrf p4
                 exit
!
server p4lang p4
                 export-vrf inet
                 export-port sdn15 12 10 0 0 0
                 export-port sdn10 52 10 0 0 0
                 export-port sdn7 176 10 0 0 0
                 export-port bundle1 dynamic 0 0 0 0
                 interconnect ethernet0
                 vrf p4
                 exit
!
server prometheus pr
                 sensor ifaces-hw
                 sensor ifaces-sw
                 interface bvi3
                 vrf inet
                 exit
!
!
end


-- 
Xavier JEANNIN
Network Dpt.
GN4-3 Network technology evolution (WP6 T1) task leader
T         l. : +33 1 5394 2042
Mob. : +33 6 3017 0963
www.renater.fr



-- 
Xavier JEANNIN
Network Dpt.
GN4-3 Network technology evolution (WP6 T1) task leader
T   l. : +33 1 5394 2042
Mob. : +33 6 3017 0963
www.renater.fr

_._,_._,_
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Groups.io Links:

You receive all messages sent to this group.

View/Reply Online (#810) <https://groups.io/g/freertr/message/810> | Reply To Group | Reply To Sender | Mute This Topic <https://groups.io/mt/94576914/6006518> | New Topic <https://groups.io/g/freertr/post>
Your Subscription <https://groups.io/g/freertr/editsub/6006518> | Contact Group Owner | Unsubscribe <https://groups.io/g/freertr/unsub> []

_._,_._,_

-- 
Xavier JEANNIN
Network Dpt.
GN4-3 Network technology evolution (WP6 T1) task leader
T  l. : +33 1 5394 2042
Mob. : +33 6 3017 0963
www.renater.fr

-- 
Xavier JEANNIN
Network Dpt.
GN4-3 Network technology evolution (WP6 T1) task leader
Tél. : +33 1 5394 2042
Mob. : +33 6 3017 0963
www.renater.fr



Archive powered by MHonArc 2.6.19.

Top of Page