[c-nsp] cisco asr1001x netflow problem with pppoe subscribers

Dmitry dmitry at zhigulinet.ru
Tue Feb 14 01:59:51 EST 2017


I found decision for my problem.

First I looked session and  i had seen interface "Virtual-Access".

show subscriber session username 682
Type: PPPoE, UID: 432, State: authen, Identity: 682
IPv4 Address: 10.200.1.179
Session Up-time: 1w3d    , Last Changed: 00:02:50
Interface: Virtual-Access1.791
Switch-ID: 4046735

after I sent coa with next contain:

echo 
"User-Name=\"10.200.1.179\",Cisco-Account-Info=\"S10.200.1.179\",cisco-avpair+=\"interface-template-name=Virtual-Access1.791\",cisco-avpair+=\"lcp:interface-config=ip 
flow monitor flow_v5_carbon 
input\",cisco-avpair+=\"lcp:interface-config=ip flow monitor 
flow_v5_carbon output\"" | radclient -c 1 -r 1 -t 1 -x 172.31.1.33:3799 
coa MyPass
Sending CoA-Request of id 129 to 172.31.1.33 port 3799
     User-Name = "10.200.1.179"
     Cisco-Account-Info = "S10.200.1.179"
     Cisco-AVPair += "interface-template-name=Virtual-Access1.791"
     Cisco-AVPair += "lcp:interface-config=ip flow monitor 
flow_v5_carbon input"
     Cisco-AVPair += "lcp:interface-config=ip flow monitor 
flow_v5_carbon output"
rad_recv: CoA-ACK packet from host 172.31.1.33:3799, id=129, length=70
     Cisco-Account-Info = "S10.200.1.179"
     Cisco-Account-Info = "$IVirtual-Access1.791"


It is work!

sho flow interface
...
Interface Virtual-Access1.791
   FNF:  monitor:          flow_v5_carbon
         direction:        Input
         traffic(ip):      on
   FNF:  monitor:          flow_v5_carbon
         direction:        Output
         traffic(ip):      on


On 10.02.2017 08:24, Dmitry wrote:
> Hello everybody!
>
> I have problem on cisco ASR1001-X and software IOS XE Software, 
> Version 03.15.03.S .
>
> We have pppoe subscribers with and we have problem with netflow, 
> netflow with not work we not seeing netflow on the collector.
>
> How will can we decide with problem?
>
>
> flow exporter nfdump_v5_carbon
>  destination 172.31.1.5
>  source GigabitEthernet0/0/5.2
>  transport udp 9996
>  export-protocol netflow-v5
>
> !
>
> flow monitor flow_v5_carbon
>  exporter nfdump_v5_carbon
>  cache timeout inactive 10
>  cache timeout active 1000
>  record netflow-original
> !
>
> interface GigabitEthernet0/0/5.2
>  description radius_carbon
>  encapsulation dot1Q 1 native
>  ip address 172.31.1.33 255.255.255.0
> !
>
> interface Virtual-Template10
>  mtu 1492
>  ip unnumbered Loopback10
>  ip nat inside
>  ip tcp adjust-mss 1300
>  ip policy route-map pbr_nat_client
>  no peer default ip address
>  keepalive 60
>  ppp authentication pap chap AAA_LIST_PPPOE
>  ppp authorization AAA_LIST_PPPOE
>  ppp accounting AAA_LIST_PPPOE
>  ppp ipcp dns 17.1.16.11 17.1.16.21
> end
>
> Router#sho running-config interface Lop
> Router#sho running-config interface Loo
> Router#sho running-config interface Loopback 10
> Building configuration...
>
> Current configuration : 148 bytes
> !
> interface Loopback10
>  ip address 10.200.254.254 255.255.255.255
>  ip flow monitor flow_v5_carbon input
>  ip flow monitor flow_v5_carbon output
> end
>
>
> _______________________________________________
> cisco-nsp mailing list  cisco-nsp at puck.nether.net
> https://puck.nether.net/mailman/listinfo/cisco-nsp
> archive at http://puck.nether.net/pipermail/cisco-nsp/
>



More information about the cisco-nsp mailing list