Skip to Content.

rare-users - Re: [RARE-users] [gn4-3-wp6-t1-wb-RARE] [freertr] Point-to-point L2 connections between different ports

Subject: RARE user and assistance email list

List archive


Re: [RARE-users] [gn4-3-wp6-t1-wb-RARE] [freertr] Point-to-point L2 connections between different ports


Chronological Thread 
  • From: Marcos Felipe Schwarz <>
  • To: "" <>, "" <>, "" <>
  • Subject: Re: [RARE-users] [gn4-3-wp6-t1-wb-RARE] [freertr] Point-to-point L2 connections between different ports
  • Date: Thu, 23 Sep 2021 12:41:07 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=rnp.br; dmarc=pass action=none header.from=rnp.br; dkim=pass header.d=rnp.br; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Fp6jXa3c2XfrhIefK0Rw49fWObIKG1fUcY0qhi+JqTg=; b=ZP5nf0U1wn4QxrZFfgvD3MRSv8roRpSmhZIvkqfNbMNEq2bU88SgC8kpVPC2y2az12fsqyka6uqVacs0Ua1goGoPVl0rmjgh6wrKHPZZS3tkrKgwAzgvchTUYd9/cGhZw9Z9L6tRJSNFh2Ne4TBXLyGyMwE71/CoJMnUy5PdT406PHBT0d0M47XFeqpLBHF82PyQDJOiM/fRRmgIOjK88/24oqGYbiJbOTVcpZkub/M9F6CqhLWq2QRUTFCv7KiyoGsvvoY5i3WYj3EAOsFruS/1GP2lHirz6RN6QMqbNTbHHBS+6E0uHys61cUYamux3d1kxjkFIbnxbb+RY0crLg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Hyg3LO/l5hLCPO+OIiFftiR3tPPPlvlJ494rYVCz7DBglwu/urS8NfaZvwbhnJRBeAUZ3vPX61REHeC1JXr4y62uXXF5rOLCySh7iydm6w49jy6syDh/4KUDoNhoQko8RUqiynWs9nkzJ3WkEP6XCxJK80bNZOaxgIjKNsR1KUjOA+f5M2+aB3iknWIfZTWPvTz1kZezFYYdhyLGY0x2LO1YV3bZTBeDn81D0M+GhksWbS/LtDsksOt5PmoFJQlJHa2v7iTLa2HpnXc5fizxgU/crcpK4k+zDf5RpQzj/7yGFD7mNK6adQ/2ODURfd/R5w4ONFU9VMjELfg9C/bp0Q==
  • List-id: <freertr.groups.io>
  • Mailing-list: list ; contact

I did the follow configuration:
bridge 2
mac-learn
exit
!
bridge 3
mac-learn
exit
!
interface bvi2
no description
vrf forwarding v2
no shutdown
no log-link-change
exit
!
interface bvi3
no description
vrf forwarding v3
no shutdown
no log-link-change
exit
!
interface sdn1
no description
mtu 1500
macaddr 001c.2041.1346
lldp enable
bridge-group 3
no shutdown
log-link-change
exit
!
interface sdn16.16
no description
bridge-group 3
no shutdown
no log-link-change
exit
!
interface sdn19.19
no description
bridge-group 2
no shutdown
no log-link-change
exit
!
interface sdn4
no description
mtu 1500
macaddr 0002.740b.262f
lldp enable
bridge-group 2
no shutdown
log-link-change
exit
!
server p4lang p4
export-bridge 2
export-bridge 3
export-port sdn1 132 100 0 1 0
export-port sdn4 156 100 0 1 0
export-port sdn19.19 202 0 0 0 0
export-port bvi2 204 0 0 0 0
export-port sdn16.16 206 0 0 0 0
export-port bvi3 208 0 0 0 0
!
 
It didn't work, so I added the following:
vrf definition v2
exit
!
vrf definition v3
exit
!
interface bvi2
vrf forwarding v2
ipv4 address 10.0.16.253 255.255.255.0
exit
!
interface bvi3
vrf forwarding v3
ipv4 address 10.0.16.254 255.255.255.0
exit
!
server p4lang p4
export-vrf v2 2
export-vrf v3 3
exit
!
Now it Works for about 15 seconds, than it stops for 15 seconds, than it Works again and keeps repeting this patern....
 
Regards,
 
Marcos Schwarz
 
-----Mensagem original-----
De: Marcos Felipe Schwarz
Enviada em: quarta-feira, 22 de setembro de 2021 11:25
Para: ; ;
Assunto: RES: [RARE-users] [gn4-3-wp6-t1-wb-RARE] [freertr] Point-to-point L2 connections between different ports
 
The model is that, I need two bridge "inline", 1 do send the packet from DTN1 to Stordis1, and the other from Stordis2 to DTN2. And if this bridge domains are mac aware, it can make some confusions, since DTN1 mac will be received twice, first comming from DTN1 and after comming from Stordis2.
Using QinQ normally, you are not mac-aware of the cliente-VLAN, so it solves the problem.
Using some L2 Cross-connects can also help.
 
I'm testing using 2 bridges, but it is intermmitent, I´ll post the config and results soon after some additional tests.
 
Regards,
 
Marcos Schwarz
 
-----Mensagem original-----
De: <> Em nome de Jordi Ortiz Enviada em: quarta-feira, 22 de setembro de 2021 11:17
Para: ;
Assunto: Re: [RARE-users] [gn4-3-wp6-t1-wb-RARE] [freertr] Point-to-point L2 connections between different ports
 
hi,
 
so this means that the qinq would be addressed transparently and it will work. Right?
 
Jordi
 
El 22/09/2021 a las 15:37, mc36 escribió:
> hi,
> my best guess if you configure bridging on the ports...
> there is not specific qinq mode because the p4 code does not care
> about the inner packets in case of bridging....
> regards,
> cs
>
>
> On 9/22/21 14:28, Marcos Felipe Schwarz wrote:
>> Hi all,
>>
>> I’m trying to use my Wedge with RareOS as a Programmable Patch
>> Panel. Basically to create point-to-point L2 connections between
>> different ports o our lab to generate multiple logical topologies. As
>> in the attached image.
>>
>> I’d like some help to understand what would features should I use
>> to achieve this using RARE/freeRtr.
>>
>> I’ve already achieved this in other systems using QinQ, but I
>> couldn’t find a corresponding feature. Using RARE, I tried to
>> create 2 bridges (Orange and Red), each in a different vrf but it
>> also didn’t work.
>>
>> Ideally, the DTNs should be in the same network. But we can adapt to
>> use different networks if it makes the solution easier
>>
>> Regards,
>>
>> Marcos Schwarz
>>
>> *Gerente de P&D | /R&D Manager/*
>>
>> Gerência de Execução de P&D em Ciberinfraestrutura | /Management
>> of R&D Execution in Cyberinfrastructure/
>>
>> Diretoria de Pesquisa e Desenvolvimento | /Board of Research and
>> Development/
>>
>> RNP - Rede Nacional de Ensino e Pesquisa | /Brazilian National
>> Research and Educational Network/
>>
>> Promovendo o uso inovador de redes avançadas | /Promoting the
>> innovative use of advanced networks/
>>
>> http://www.rnp.br <http://www.rnp.br/> | +55 (19) 3787-3386 | Skype
>> ID: marcos.f.sch**
>>
>> Campinas - SP - Brasil | E-mail:
>> <>
>>
>
>
>
>
>
--
Jordi Ortiz
(+34)868884644/(+34)868888532
http://ants.inf.um.es/~jordiortiz
Dpto. Ingeniería de la Información y las Comunicaciones Universidad de Murcia
 
 
 
 
 
_._,_._,_

Groups.io Links:

You receive all messages sent to this group.

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

_._,_._,_
[dpdadm@SDNM-FOG ~]$ ssh
's password:
welcome
line ready
RIO0001#show run
hostname RIO0001
buggy
!
logging buffered debug 10240
logging file debug /var/log/freertr.log
logging rotate 655360000 /var/log/freertr.old
!
crypto rsakey rsa import
$v10$TUlJRW9nSUJBQUtDQVFCclFkZ1BKVG05UitxVnFEWm1MWVN5NTh4bmVObnBaVktWSVhlUG05ZnNBTWZZUSt6WjdDRGx1N2kzb1BNenpzRm1GMTY0VFEzWnF3U0xITTlXZTZnV3N3b05sZVFHanJ6S0VwQ1hEaUFURTYxWWc5UmljNG9MY0VPWnZhNlNhajhCNDFRWTFic3daWmQvSVRwY2FPRU13Wk5wTlBWVlcyTEI1R1pCaEVuNmFxOE5EQU1aOGVKSU9yMFhZdzdtTnNxOEsrcXloM0hFenpScmh0ZEYxRUhUdTlUZnhmWVduM3RHWHl5K1hERjV4akRHY3VrZXEwbFREVjRoMjNHMnJLaEh1bW1kWkV3SUR0WEsvc1F0WENQYSt3WmtwcEh2SzNYZHBLcytqVEhML3VhZWtLTTN4M1RaVWFVdGV5T2YwNUZnSTExaVdxN29PNWVLN2xVZlo0SlZBZ01CQUFFQ2dnRUFXcGpDWklDZ0ZkYXlPbmxjZ2RBKy8xTTJYOHcvM0pvK09FT05seHNmTm5TdVdXbCtuZENMTlNIc2RBY2FobzlFNHZRb2lPcGxJWkFJQlcxdllQQ1FXYVFmZ0x3MFlLbWVvOTBzanJ0YXNtSnprSW5DR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NnBQenlkNkdMRDhzeWtiODFOM3hhRFh5dW9BQ2VuR2VRc2ZUV2lYVnQrSStLZEJzNVFOenh4d1k1cXI3VEtHTXVNb0lRQW5jMWlZL1VtcisyVDFpNWJWUDRkVG9xYnZsMGZ4aFdDL010bGdJVWZFT2VEUFZkOEtpL3Y2WWpmTTUvREhBNjdhWT0=
!
crypto ecdsakey ecdsa import
$v10$TUhNQ0FRRUVIMTNTVzNybU5qc2tJZGNQU2twT0pFd1BMblJaY3F5UUdaOTlLVkZZM1BTZ0J3WUZLNEVFQUFxaFJBTkNBQVJOR1F4OE9rY1Y5VUs4Ymw1aWd0ZjgyZnhaSmN4cWQ3RkFjSXlWelhEcWFTMGpVUHhvaFNwUHhzZmZBaWZweWlCZUkwTUp4dzJpQVdac1VQMHVodDhP
!
aaa userlist usr
username rare
username rare password $v10$cmFyZQ==
exit
!
prefix-list all4
sequence 10 permit 0.0.0.0/0 ge 0 le 0
exit
!
prefix-list all6
sequence 10 permit ::/0 ge 0 le 0
exit
!
bridge 1
mac-learn
exit
!
bridge 2
mac-learn
exit
!
bridge 3
mac-learn
exit
!
vrf definition inet
exit
!
vrf definition lin
exit
!
vrf definition oob
exit
!
vrf definition p4
description P4 VRF _NEVER_EVER_ CONFIGURE IT
exit
!
vrf definition v2
exit
!
vrf definition v3
exit
!
interface bvi1
no description
lldp enable
vrf forwarding inet
ipv4 address 10.0.0.254 255.255.255.0
no shutdown
no log-link-change
exit
!
interface bvi2
no description
vrf forwarding v2
ipv4 address 10.0.16.253 255.255.255.0
no shutdown
no log-link-change
exit
!
interface bvi3
no description
vrf forwarding v3
ipv4 address 10.0.16.254 255.255.255.0
no shutdown
no log-link-change
exit
!
interface ethernet0
description CPU_PORT _NEVER_EVER_ CONFIGURE IT
no shutdown
no log-link-change
exit
!
interface ethernet1
description out of band management port
vrf forwarding oob
ipv4 address dynamic dynamic
ipv4 gateway-prefix all4
ipv4 dhcp-client enable
ipv4 dhcp-client early
ipv6 address dynamic dynamic
ipv6 gateway-prefix all6
ipv6 slaac
ipv6 prefix-suppress
no shutdown
no log-link-change
exit
!
interface ethernet2
description linux tuntap management interface
vrf forwarding lin
ipv4 address 10.255.255.254 255.255.255.0
no shutdown
no log-link-change
exit
!
interface sdn1
no description
mtu 1500
macaddr 001c.2041.1346
lldp enable
bridge-group 3
no shutdown
log-link-change
exit
!
interface sdn15
description frontpanel port 15/0
mtu 1500
macaddr 003e.7e2e.256f
lldp enable
bridge-group 1
no shutdown
log-link-change
exit
!
interface sdn16
description frontpanel port 16/0
mtu 1500
macaddr 0053.7168.2c3a
lldp enable
bridge-group 1
no shutdown
log-link-change
exit
!
interface sdn16.16
no description
bridge-group 3
no shutdown
no log-link-change
exit
!
interface sdn19
no description
mtu 1500
macaddr 006a.4247.1173
lldp enable
bridge-group 1
no shutdown
no log-link-change
exit
!
interface sdn19.19
no description
bridge-group 2
no shutdown
no log-link-change
exit
!
interface sdn2
no description
mtu 1500
macaddr 0003.4846.1244
lldp enable
no shutdown
log-link-change
exit
!
interface sdn20
no description
mtu 1500
macaddr 001a.5b5c.306d
lldp enable
bridge-group 1
no shutdown
no log-link-change
exit
!
interface sdn20.19
no description
bridge-group 2
no shutdown
no log-link-change
exit
!
interface sdn25
no description
mtu 1500
macaddr 003a.4b54.0e6d
lldp enable
no shutdown
log-link-change
exit
!
interface sdn26
description frontpanel port 26/0
mtu 1500
macaddr 0012.516f.4320
shutdown
log-link-change
exit
!
interface sdn27
description frontpanel port 27/0
mtu 1500
macaddr 002f.331a.425e
shutdown
log-link-change
exit
!
interface sdn28
description frontpanel port 28/0
mtu 1500
macaddr 003a.6d6f.0365
shutdown
log-link-change
exit
!
interface sdn29
description frontpanel port 29/0
mtu 1500
macaddr 0036.3e6d.5a4f
shutdown
log-link-change
exit
!
interface sdn3
description frontpanel port 3/0
mtu 1500
macaddr 004e.6f4b.7e6b
shutdown
log-link-change
exit
!
interface sdn30
no description
mtu 1500
macaddr 0001.2067.4e16
lldp enable
no shutdown
log-link-change
exit
!
interface sdn31
no description
mtu 1500
macaddr 0012.3758.595c
lldp enable
no shutdown
log-link-change
exit
!
interface sdn32
description frontpanel port 32/0
mtu 1500
macaddr 0008.774f.180a
shutdown
log-link-change
exit
!
interface sdn4
no description
mtu 1500
macaddr 0002.740b.262f
lldp enable
bridge-group 2
no shutdown
log-link-change
exit
!
interface sdn7
description WAN PORT -> JUNIPER
mtu 1500
macaddr 0014.127b.3d43
lldp enable
no shutdown
log-link-change
exit
!
interface sdn7.104
description RIO0001 -> JUNIPER@VLAN104
lldp enable
vrf forwarding inet
ipv4 address 200.143.232.255 255.255.255.254
no shutdown
no log-link-change
exit
!
proxy-profile oob
vrf oob
exit
!
scheduler errors
time 600000
delay 30000
command clear errors
start
exit
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
alias test tna-asic-temp command attach shell1 /opt/freertr/bin/sh_tna_temp.sh
alias test tna-asic-temp cmd2nd flash type /etc/freertr/tna_temp.cfg
alias test tna-asic-temp description display forwarding asic cpu temperature
!
alias test tna-linux-access command ssh 10.255.255.1 /vrf lin /user sysadmin
/pass sysadmin
alias test tna-linux-access description access linux console
!
alias test tna-linux-temp command attach shell2 acpi -V
alias test tna-linux-temp description display main cpu temperature
!
alias test tna-port-detect command attach shell1
/opt/freertr/bin/sh_tna_ports.sh
alias test tna-port-detect cmd2nd test hwpop uclipm
/etc/freertr/tna_ports.cfg server p4lang p4 ports ready auto normal apply add
alias test tna-port-detect description Detect TOFINO ports
!
alias test tna-port-remove command attach shell1
/opt/freertr/bin/sh_tna_ports.sh
alias test tna-port-remove cmd2nd test hwpop uclipm
/etc/freertr/tna_ports.cfg server p4lang p4 ports ready auto normal apply del
alias test tna-port-remove description Remove NON RDY TOFINO ports
!
server telnet oob
security authentication usr
security rsakey rsa
security dsakey dsa
security ecdsakey ecdsa
second-port 22
exec logging
no exec authorization
login authentication usr
login logging
vrf oob
exit
!
server telnet p4
security protocol telnet
exec logging
no exec authorization
no login authentication
login logging
vrf p4
exit
!
server p4lang p4
export-vrf inet 1
export-vrf v2 2
export-vrf v3 3
export-bridge 1
export-bridge 2
export-bridge 3
export-port sdn16 0 100 0 1 0
export-port sdn15 8 100 0 1 0
export-port sdn19 20 100 0 1 0
export-port sdn20 28 100 0 1 0
export-port sdn31 128 100 0 1 0
export-port sdn1 132 100 0 1 0
export-port sdn32 136 0 0 0 0
export-port sdn2 140 100 0 1 0
export-port sdn29 144 0 0 0 0
export-port sdn3 148 0 0 0 0
export-port sdn30 152 100 3 1 0
export-port sdn4 156 100 0 1 0
export-port sdn28 160 0 0 0 0
export-port sdn27 168 0 0 0 0
export-port sdn26 176 0 0 0 0
export-port sdn7 180 100 3 1 0
export-port sdn25 184 100 3 1 0
export-port bvi1 200 100 0 0 0
export-port sdn7.104 201 0 0 0 0
export-port sdn19.19 202 0 0 0 0
export-port sdn20.19 203 0 0 0 0
export-port bvi2 204 0 0 0 0
export-port sdn16.16 206 0 0 0 0
export-port bvi3 208 0 0 0 0
interconnect ethernet0
vrf p4
exit
!
client proxy oob
client name-server 1.1.1.1
client time-server europe.pool.ntp.org
client time-zone CET
!
end



Archive powered by MHonArc 2.6.19.

Top of Page