Skip to Content.
Sympa Menu

rare-users - Re: [RARE-users] [freertr] Debug interface down DPDK implementation

Subject: RARE user and assistance email list

List archive

Re: [RARE-users] [freertr] Debug interface down DPDK implementation


Chronological Thread 
  • From: Xavier Jeannin <>
  • To:
  • Subject: Re: [RARE-users] [freertr] Debug interface down DPDK implementation
  • Date: Fri, 25 Feb 2022 18:59:31 +0100
  • Dkim-filter: OpenDKIM Filter v2.10.3 zmtaauth01.partage.renater.fr 8EB2414015F


Le 25/02/2022 à 18:35, mc36 a écrit :
2. is interesting because i saw the autoupgrade configured... can you verify please if you have internet access?
This testbed is isolated from Internet but when Frédéric set up it on Wednesday, one could ping the other machine DAV001, DAV0102

anyway, then "reload process p4emu" is the old-ish way to trigger the dataplane reprogramming...
Still down after reload
DAV0102#reload process p4emu
DAV0102#show ipv4 interface
interface     state  address     netmask
loopback0     up     10.1.4.4    255.255.255.255
loopback1     up     2.2.2.4     255.255.255.255
loopback4444  up     4.4.4.4     255.255.255.255
sdn1          up     10.1.34.4   255.255.255.0
sdn2          up     10.2.34.4   255.255.255.0
sdn3          up     10.3.34.4   255.255.255.0
sdn4          admin  10.1.24.4   255.255.255.0
sdn5          down   11.11.11.4  255.255.255.0
sdn6          up     10.6.34.4   255.255.255.0
sdn7          up     10.7.34.4   255.255.255.0

DAV0102#conf t
DAV0102(cfg)#interface sdn5
DAV0102(cfg-if)#shutdown
DAV0102(cfg-if)#no shutdown
DAV0102(cfg-if)#end
DAV0102#show ipv4 interface
interface     state  address     netmask
loopback0     up     10.1.4.4    255.255.255.255
loopback1     up     2.2.2.4     255.255.255.255
loopback4444  up     4.4.4.4     255.255.255.255
sdn1          up     10.1.34.4   255.255.255.0
sdn2          up     10.2.34.4   255.255.255.0
sdn3          up     10.3.34.4   255.255.255.0
sdn4          admin  10.1.24.4   255.255.255.0
sdn5          down   11.11.11.4  255.255.255.0
sdn6          up     10.6.34.4   255.255.255.0

sdn7          up     10.7.34.4   255.255.255.0


Thank you
Xavier



thanks,
cs

On 2/25/22 18:29, Xavier Jeannin wrote:
Thank you Csaba

1/ Tried shut/no shut sdn5 with no success (see below)
2/ I do not find clear p4lang p4 - it does not appear in the CLI. Where should I find it ?

Thank you
Xavier


DAV0102#show interfaces summary
interface         state   tx rx                                 drop
loopback0         up         0 0                                   0
loopback1         up         1360606 0                                   0
loopback4444   up         66 0                                   0
loopback6666   up         2497648 0                                   0
ethernet0         up         7592222248 6837780893                 0
sdn1                   up         8758817+9813357 297342+331554           213+0
sdn2                   up         8759054+9813541 297651+331923           48+0
sdn3                   up         8759924+9814875 298878+333474           0+0
sdn4                   admin   805528+5318969 23335384+54435072 30639616+0
sdn5                   down     0 0                                   77415
sdn6                   up         8760308+9815177 298755+333303           0+0
sdn7                   up         8759084+9813587 297651+331923           48+0

DAV0102#conf t
DAV0102(cfg)#interface sdn5
DAV0102(cfg-if)#shutdown
DAV0102(cfg-if)#no shutdown
DAV0102(cfg-if)#do show interfaces summary
interface         state   tx rx                                 drop
loopback0         up         0 0                                   0
loopback1         up         1360606 0                                   0
loopback4444   up         66 0                                   0
loopback6666   up         2497878 0                                   0
ethernet0         up         7592224033 6837783967                 0
sdn1                   up         8759168+9813744 297342+331554           213+0
sdn2                   up         8759405+9813928 297651+331923           48+0
sdn3                   up         8760275+9815262 298878+333474           0+0
sdn4                   admin   805528+5318969 23336398+54436242 30640981+0
sdn5                   down     0 0                                   77766
sdn6                   up         8760659+9815564 298755+333303           0+0
sdn7                   up         8759435+9813974 297651+331923           48+0

DAV0102(cfg-if)#exit
DAV0102(cfg)#exit
DAV0102#clear p4lang p4
invalid command, try clear ?

DAV0102#clear ?
    access-list       - access list statistics
    auto-bandwidth - set auto bandwidth values
    bmp                       - clear one bmp server
    bridge                 - learnt mac address on a bridge
    counters             - counters on one or more interfaces
    dial-peer           - clear voip call
    errors                 - error reporter
    follow-tracker - set interfaces based on trackers
    hwcounters         - hardware counters on one or more interfaces
    interface           - disconnect interface
    ipv4                     - ipv4 parameters
    ipv6                     - ipv6 parameters
    line                     - disconnect line
    logging               - logged messages
    name-cache         - dns local cache
    object-group     - object group statistics
    prefix-list       - prefix list statistics
    process               - restart external process
    reflected-acl   - clear access list entries
    route-map           - route map statistics
    route-policy     - route policy statistics
    scheduler           - run one scheduler round
    script                 - run one script round
    sensor                 - trigger telemetry export
    socket                 - clear one socket
    swcounters         - software counters on one or more interfaces
    telemetry           - trigger telemetry report
    tunnel-domain   - resolve destination domain names
    vdc                       - restart vdc process
    vpdn                     - reconnect vpdn peer
    watchdog             - watchdog


Le 25/02/2022    17:09, mc36 a   crit  :
hi,
i see that you have "export-port sdn6 5" and "no shutdown"...
you can verify if these are in effect by issuing "show inter summ"...
the thing to look at is sw+hw notation in the counter columns...
if that is the case, you can flap the port   by shut/noshut on sdn6,
if that still not help, you can try a whole dataplane reprogramming
by issuing "clear p4lang p4".. if all of these does not help,
imho we should assume that link is really down... :)
regards,
cs


On 2/25/22 16:39, Xavier Jeannin wrote:
Dear All,

Last time I got an interface down after different configuration step.
I was not able to bring it up, Fr   d   ric kindly restore it but I still not does not understand what I should have done to bring up the interface.
So I just made the same configuration change and tried to bring it up
This time I tried to suppress vrf inet and restore it but still my interface sdn5 is down.

Can you tell what would be the debugging process to solve this issue?

Thank you
Regards
Xavier


DAV0102#show interfaces sdn5
sdn5 is down (since 04:10:09, 2 changes)
     description: 10G-FP2[eno7 - 05:00.1 - 18:5a:58:d8:d4:65]
     type is sdn, hwaddr=0014.0b0d.536c, mtu=1500, bw=1000mbps, vrf=inet
     ip4 address=11.11.11.4/24, netmask=255.255.255.0, ifcid=670359401
     received 0 packets (0 bytes) dropped 506 packets (53196 bytes)
     transmitted 0 packets (0 bytes) promisc=false macsec=false
>>>


DAV0102#show running-config hide
hostname DAV0102
buggy
!
logging buffered debug 8192
logging file debug zzz.log
logging rotate 65536000 zzz.old
!
crypto rsakey rsa import $w10$<removed>$
!
crypto dsakey dsa import $w10$<removed>$
!
crypto ecdsakey ecdsa import $w10$<removed>$
!
aaa userlist users
     username *
     username * anypass
     username rare
     username rare password $w10$<removed>$
     exit
!
scheduler errors
     time 600000
     delay 30000
     command clear errors
     start
     exit
!
scheduler upgrade
     time 600000
     delay 60000
     random-time 60000
     random-delay 300000
     command flash upgrade
     start
     exit
!
object-group network host4
     sequence 10 10.255.255.0 255.255.255.0
     exit
!
object-group network host6
     sequence 10 2001:db8:ffff:ffff:: ffff:ffff:ffff:ffff::
     exit
!
object-group network lloc4
     sequence 10 169.254.0.0 255.255.0.0
     exit
!
object-group network lloc6
     sequence 10 fe80:: ffff::
     exit
!
object-group network mcast4
     sequence 10 224.0.0.0 255.255.0.0
     exit
!
object-group network mcast6
     sequence 10 ff00:: ff00::
     exit
!
access-list nat4
     sequence 10 deny all obj lloc4 all any all
     sequence 20 deny all any all obj mcast4 all
     sequence 30 deny all obj host4 all obj host4 all
     sequence 40 permit all obj host4 all any all
     exit
!
access-list nat6
     sequence 10 deny all obj lloc6 all any all
     sequence 20 deny all any all obj mcast6 all
     sequence 30 deny all obj host6 all obj host6 all
     sequence 40 permit all obj host6 all any all
     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
!
vrf definition inet
     exit
!
vrf definition p4
     exit
!
router ospf4 1
     vrf inet
     router-id 10.1.4.4
     traffeng-id 0.0.0.0
     area 0 enable
     exit
!
router ospf6 1
     vrf inet
     router-id 10.1.4.4
     traffeng-id ::
     area 0 enable
     exit
!
interface loopback0
     no description
     vrf forwarding inet
     ipv4 address 10.1.4.4 255.255.255.255
     router ospf4 1 enable
     router ospf4 1 area 0
     router ospf4 1 passive
     no shutdown
     no log-link-change
     exit
!
interface loopback1
     no description
     vrf forwarding inet
     ipv4 address 2.2.2.4 255.255.255.255
     ipv6 address 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
     router ospf4 1 enable
     router ospf4 1 area 0
     router ospf4 1 passive
     router ospf6 1 enable
     router ospf6 1 area 0
     router ospf6 1 passive
     no shutdown
     no log-link-change
     exit
!
interface loopback4444
     no description
     vrf forwarding inet
     ipv4 address 4.4.4.4 255.255.255.255
     router ospf4 1 enable
     router ospf4 1 area 0
     router ospf4 1 passive
     no shutdown
     no log-link-change
     exit
!
interface loopback6666
     no description
     vrf forwarding inet
     ipv6 address fd00::4:4:4:4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
     router ospf6 1 enable
     router ospf6 1 area 0
     router ospf6 1 passive
     no shutdown
     no log-link-change
     exit
!
interface ethernet0
     description p4 cpu port
     no shutdown
     no log-link-change
     exit
!
interface sdn1
     description FP3[eno3 - 02:00.0 - 18:5a:58:d8:d4:60]
     mtu 1500
     macaddr 0019.4e1a.2668
     lldp enable
     vrf forwarding inet
     ipv4 address 10.1.34.4 255.255.255.0
     no shutdown
     no log-link-change
     exit
!
interface sdn2
     description FP4[eno4 - 02:00.1 - 18:5a:58:d8:d4:61]
     mtu 1500
     macaddr 005a.0c2f.7412
     lldp enable
     vrf forwarding inet
     ipv4 address 10.2.34.4 255.255.255.0
     no shutdown
     no log-link-change
     exit
!
interface sdn3
     description FP1[eno1 - 02:00.2 - 18:5a:58:d8:d4:62]
     mtu 1500
     macaddr 185a.58d8.d462
     lldp enable
     vrf forwarding inet
     ipv4 address 10.3.34.4 255.255.255.0
     no shutdown
     no log-link-change
     exit
!
interface sdn4
     description 10G-FP1[eno8 - 05:00.0 - 18:5a:58:d8:d4:64]
     mtu 1500
     macaddr 000e.1d31.067c
     lldp enable
     vrf forwarding inet
     ipv4 address 10.1.24.4 255.255.255.0
     router ospf4 1 enable
     router ospf4 1 area 0
     shutdown
     no log-link-change
     exit
!
interface sdn5
     description 10G-FP2[eno7 - 05:00.1 - 18:5a:58:d8:d4:65]
     mtu 1500
     macaddr 0014.0b0d.536c
     lldp enable
     vrf forwarding inet
     ipv4 address 11.11.11.4 255.255.255.0
     no shutdown
     no log-link-change
     exit
!
interface sdn6
     description FP6[eno6 - 07:00.0 - 18:5a:58:d8:d4:66]
     mtu 1500
     macaddr 0032.380d.1e76
     lldp enable
     vrf forwarding inet
     ipv4 address 10.6.34.4 255.255.255.0
     no shutdown
     no log-link-change
     exit
!
interface sdn7
     description FP5[eno5 - 07:00.1]
     mtu 1500
     macaddr 003d.0919.4168
     lldp enable
     vrf forwarding inet
     ipv4 address 10.7.34.4 255.255.255.0
     no shutdown
     no log-link-change
     exit
!
proxy-profile inet
     vrf inet
     exit
!
!
!
!
!
!
ipv4 nat inet sequence 10 srclist nat4 interface sdn3
!
ipv6 nat inet sequence 10 srclist nat6 interface sdn3
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
alias test bash command attach shell1 socat - exec:bash,ctty,pty,stderr
alias test bash description get linux shell
!
server telnet p4
     security protocol telnet
     no exec authorization
     no login authentication
     vrf p4
     exit
!
server telnet tel
     security authentication users
     security rsakey rsa
     security dsakey dsa
     security ecdsakey ecdsa
     access-log
     access-rate 5 5000
     access-total 5
     access-peer 5
     second-port 22
     exec logging
     no exec authorization
     login authentication users
     login logging
     login last global
     vrf inet
     exit
!
server p4lang p4
     export-vrf inet 1
     export-port sdn1 0 1 0 0 0
     export-port sdn2 1 1 0 0 0
     export-port sdn3 2 1 0 0 0
     export-port sdn4 3 10 0 0 0
     export-port sdn5 4 10 0 0 0
     export-port sdn6 5 1 0 0 0
     export-port sdn7 6 1 0 0 0
     interconnect ethernet0
     vrf p4
     exit
!
server dns ns
     recursion enable
     vrf inet
     exit
!
client proxy inet
client name-server 193.49.159.2
client upgrade-server http://upgrade.nop.hu/
client upgrade-backup
client config-backup
client time-server europe.pool.ntp.org
client time-zone CET
!
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




Archive powered by MHonArc 2.6.19.

Top of Page