Hi.
I have a problem with daemon bgp in pmacct.
I can't find any help in documentation and old posts. My be somebody can help 
me.
The problem is when I try to establish a bgp peer session with a router i have 
thi messages on log:

#######################################

Mar 17 15:11:24 INFO ( default/core ): Promiscuous Mode Accounting Daemon, 
pmacctd 1.6.1 (20161001-00+c5)
Mar 17 15:11:24 INFO ( default/core ):  '--enable-sqlite3' '--enable-jansson' 
'--enable-ipv6' '--prefix=/pmacct-1.6.1'
Mar 17 15:11:24 INFO ( default/core ): Reading configuration file 
'/pmacct-1.6.1/etc/pmacct.mario.conf'.
Mar 17 15:11:24 INFO ( default/memory ): plugin_pipe_size=4096000 bytes 
plugin_buffer_size=252 bytes
Mar 17 15:11:24 INFO ( default/memory ): ctrl channel: obtained=163840 bytes 
target=65012 bytes
Mar 17 15:11:24 DEBUG ( default/memory ): allocating a new memory segment.
Mar 17 15:11:24 DEBUG ( default/memory ): allocating a new memory segment.
Mar 17 15:11:24 OK ( default/memory ): waiting for data on: '/tmp/collect.pipe'
Mar 17 15:11:24 INFO ( default/core ): link type is: 1
Mar 17 15:11:24 INFO ( default/core ): [/pmacct-1.6.1/etc/agent.map] 
(re)loading map.
Mar 17 15:11:24 INFO ( default/core ): [/pmacct-1.6.1/etc/agent.map] map 
successfully (re)loaded.
Mar 17 15:11:24 DEBUG ( default/core/BGP ): 1 thread(s) initialized
Mar 17 15:11:24 INFO ( default/core/BGP ): maximum BGP peers allowed: 2
Mar 17 15:11:24 ERROR ( default/core/BGP ): bind() to ip=10.39.11.34 
port=1179/tcp failed (errno: 99).

#####################################


This happen also on port 179 and on every other ports. The only way to works is 
with

bgp_daemon_ip: 127.0.0.1

But Never bgp session on router became Establ. It always in Active.

Also pmbgpd fails:

pmacct-1.6.1/sbin/pmbgpd -L 10.39.11.34 -l 1179
INFO ( default/core ): Reading configuration from cmdline.
INFO ( default/core ): maximum BGP peers allowed: 4
ERROR ( default/core ): bind() to ip=10.39.11.34 port=1179/tcp failed (errno: 
99).

Follw configuration of pmacct.conf and agent:

####   cat pmacct.mario.conf   ##########
daemonize: true

pidfile: /var/run/nfacctd.pid
!interface: enp5s0f0
plugins: memory
logfile: /pmacct-1.6.1/test_nfacctd.log

syslog: daemon

debug: true

!plugins: sqlite3[simple]

!sql_db[simple]: /pmacct-1.6.1/output/pmacct.db
!sql_refresh_time[simple]: 3600
!sql_history[simple]: 60m
!sql_history_roundoff[simple]: h
!sql_table[simple]: acct
!sql_table_version[simple]: 9

!aggregate: dst_net, dst_mask, dst_as
aggregate: tag,vlan,src_as,dst_as,src_host,dst_host,src_port,dst_port,proto

bgp_daemon: true
bgp_agent_map: /pmacct-1.6.1/etc/agent.map
bgp_daemon_ip: 10.39.11.34
!bgp_daemon_ip: 127.0.0.1
bgp_daemon_port: 1179
bgp_daemon_max_peers: 100
bgp_table_dump_file: /pmacct-1.6.1/output/bgp-$peer_src_ip-%Y_%m_%dT%H_%M_%S.txt
bgp_table_dump_refresh_time: 120


sfacctd_as_new: bgp
sfacctd_net: bgp
sfacctd_port: 9999
sfacctd_ip: 10.39.11.34

#### cat agent.map ######

bgp_ip=10.39.11.34 ip=0.0.0.0/0

Thanks in advance,

Mario.
_______________________________________________
pmacct-discussion mailing list
http://www.pmacct.net/#mailinglists

Reply via email to