osrg / gobgp

BGP implemented in the Go Programming Language
https://osrg.github.io/gobgp/
Apache License 2.0
3.67k stars 699 forks source link

EVPN address family can not work #883

Closed xiaopeng163 closed 8 years ago

xiaopeng163 commented 8 years ago

Here is my config file:

$ more conf/evpn.conf 
[global.config]
  as = 100
  router-id = "192.168.1.2"

[global.listen-config]
# listen port (by default 179)
port = 179

# listen address list (by default "0.0.0.0" and "::")
local-address-list = ["192.168.1.2"]

[[neighbors]]
[neighbors.config]
  neighbor-address = "192.168.1.3"
  peer-as = 100
[[neighbors.afi-safis]]
  [neighbors.afi-safis.config]
  afi-safi-name = "l2vpn-evpn"

But the Open Message that gobgp send to the peer 192.168.1.3 only can support IPv4 unicast.

screen shot 2016-04-27 at 10 03 06 am
ishidawataru commented 8 years ago

Could you show the result of gobgp neighbor 192.168.1.3 ?

xiaopeng163 commented 8 years ago
$ ./gobgp neighbor 192.168.1.3
BGP neighbor is 192.168.1.3, remote AS 100
  BGP version 4, remote router ID 192.168.1.3
  BGP state = BGP_FSM_ESTABLISHED, up for 16919d 01:33:44
  BGP OutQ = 0, Flops = 0
  Hold time is 90, keepalive interval is 30 seconds
  Configured hold time is 90, keepalive interval is 30 seconds
  Neighbor capabilities:
    BGP_CAP_MULTIPROTOCOL:
        UnknownFamily(0):       advertised
        l2vpn-evpn:     received
    BGP_CAP_ROUTE_REFRESH:      advertised and received
    BGP_CAP_FOUR_OCTET_AS_NUMBER:       advertised and received
    BGP_CAP_ENHANCED_ROUTE_REFRESH:     received
    BGP_CAP_ROUTE_REFRESH_CISCO:        received
  Message statistics:
                         Sent       Rcvd
    Opens:                  9          8
    Notifications:          3          0
    Updates:                0          3
    Keepalives:            25         25
    Route Refesh:           0          0
    Discarded:              0          0
    Total:                 37         36
  Route statistics:
    Advertised:             0
    Received:               0
    Accepted:               0

I think the up time is wrong up for 16919d 01:33:44???

ishidawataru commented 8 years ago

Hmm... working here.

using the config below

[[neighbors]]
[[neighbors.afi-safis]]
[neighbors.afi-safis.config]
afi-safi-name = "l2vpn-evpn"
[neighbors.config]
neighbor-address = "172.17.3.30"
peer-as = 65000
auth-password = "evpn"
[global.config]
as = 65000
router-id = "192.168.0.1"

l2vpn-evpn is negotiated

$ docker exec g1 gobgp n 172.17.3.30
BGP neighbor is 172.17.3.30, remote AS 65000
  BGP version 4, remote router ID 192.168.0.2
  BGP state = BGP_FSM_ESTABLISHED, up for 00:02:02
  BGP OutQ = 0, Flops = 0
  Hold time is 90, keepalive interval is 30 seconds
  Configured hold time is 90, keepalive interval is 30 seconds
  Neighbor capabilities:
    BGP_CAP_MULTIPROTOCOL:
        l2vpn-evpn:     advertised and received
        ipv4-unicast:   received
        l3vpn-ipv4-unicast:     received
        l3vpn-ipv6-unicast:     received
        rtc:    received
    BGP_CAP_ROUTE_REFRESH:      advertised and received
    BGP_CAP_FOUR_OCTET_AS_NUMBER:       advertised and received
  Message statistics:
                         Sent       Rcvd
    Opens:                  1          1
    Notifications:          0          0
    Updates:                1          0
    Keepalives:             5          5
    Route Refesh:           0          0
    Discarded:              0          0
    Total:                  7          6
  Route statistics:
    Advertised:             1
    Received:               0
    Accepted:               0

https://github.com/osrg/gobgp/commit/54a19978eeae12ef01872485994c2b260fbdb297 fixed the issue about up time.

xiaopeng163 commented 8 years ago

Thanks. I will test this soon

xiaopeng163 commented 8 years ago

how can I write the config file if I have two peers want to connect with, and I also want to point out the interface which i want to bind to with 179 port.

ishidawataru commented 8 years ago

This works for you? not sure I understand what you want tho

[global.config]
as = 65000
router-id = "192.168.0.1"
local-address-list = ["192.168.10.1", "172.17.3.52"]
[[neighbors]]
[neighbors.config]
neighbor-address = "172.17.3.53"
peer-as = 65000
[neighbors.transport.config]
local-address = "172.17.3.52"
[[neighbors]]
[neighbors.config]
neighbor-address = "192.168.10.2"
peer-as = 65001
[neighbors.transport.config]
local-address = "192.168.10.1"
xiaopeng163 commented 8 years ago

Yes, it works, thanks for your information

xiaopeng163 commented 8 years ago

I used this config:

[global.config]
as = 100
router-id = "192.168.1.2"
local-address-list = ["192.168.1.2", "10.79.45.72"]
[[neighbors]]
[neighbors.config]
neighbor-address = "10.75.44.10"
peer-as = 100
[[neighbors.afi-safis]]
[neighbors.afi-safis.config]
afi-safi-name = "l2vpn-evpn"
[neighbors.transport.config]
local-address = "10.79.45.72"
[[neighbors]]
[neighbors.config]
neighbor-address = "10.124.1.221"
peer-as = 100
[[neighbors.afi-safis]]
[neighbors.afi-safis.config]
afi-safi-name = "l2vpn-evpn"
[neighbors.transport.config]
local-address = "10.79.45.72"

and connect two routers with gobgp, and I send evpn routes from one peer to gobgp, gobgp can get this route, but it didn't advertise this route to the other router.

{"Key":"10.75.44.10","Topic":"Peer","data":{"Header":{"Marker":null,"Len":99,"Type":2},"Body":{"WithdrawnRoutesLen":0,"WithdrawnRoutes":[],"TotalPathAttributeLen":76,"PathAttributes":[{"type":16,"value":[{"type":6,"subtype":0,"sequence":500,"is_sticky":true}]},{"type":1,"value":0},{"type":2,"as_paths":null},{"type":5,"value":100},{"type":14,"nexthop":"10.75.44.254","afi":25,"safi":70,"value":[{"type":2,"value":{"rd":{"type":1,"admin":"172.17.0.3","assigned":2},"esi":"single-homed","etag":108,"mac":"00:11:22:33:44:55","ip":"11.11.11.1","labels":[0]}}]}],"NLRI":[]}},"level":"debug","msg":"received","time":"2016-05-10T12:52:06+08:00"}
{"Key":"[type:macadv][rd:172.17.0.3:2][esi:single-homed][etag:108][mac:00:11:22:33:44:55][ip:11.11.11.1][labels:[0]]","Topic":"Table","level":"debug","msg":"create Destination","time":"2016-05-10T12:52:06+08:00"}
{"Key":"[type:macadv][rd:172.17.0.3:2][esi:single-homed][etag:108][mac:00:11:22:33:44:55][ip:11.11.11.1][labels:[0]]","Topic":"table","level":"debug","msg":"Processing destination","time":"2016-05-10T12:52:06+08:00"}
$ ./gobgp  neighbor
Peer              AS  Up/Down State       |#Advertised Received Accepted
10.75.44.10      100 00:00:15 Establ      |          0        1        1
10.124.1.221     100 00:00:15 Establ      |          0        0        0

should i configure the gobgp as route reflector for this?

ishidawataru commented 8 years ago

This is because you are configuring two neighbours as an iBGP peer (using same AS number 100). If you want to re-advertise routes, configure them as an eBGP peer.

xiaopeng163 commented 8 years ago

oh, I got it. so if I use iBGP, is there a way to configure gobgp as route reflector? to reflect the routes received to his route reflector client?

ishidawataru commented 8 years ago

yes. please see https://github.com/osrg/gobgp/blob/master/docs/sources/route-reflector.md

xiaopeng163 commented 8 years ago

I have a problem with eBGP(iBGP can work). The BGP peer can not be established.

Here are my configurations for iBGP and eBGP:

iBGP:

[global.config]
as = 500
router-id = "192.168.1.2"
local-address-list = ["192.168.1.2", "10.79.45.72"]

[[neighbors]]
[neighbors.config]
neighbor-address = "10.75.44.227"
peer-as = 500
[[neighbors.afi-safis]]
[neighbors.afi-safis.config]
afi-safi-name = "l2vpn-evpn"
[neighbors.transport.config]
local-address = "10.79.45.72"

But if I changed the AS for eBGP, it can't work. I thinks the router's configuration is right, because the router can establish eBGP peer with other routers.

xiaopeng163 commented 8 years ago

and my debug message for eBGP connection error:

(yabgp)yabgp@vxlan:~/goTest/bin$ sudo -E ./gobgpd -f test.conf -l debug
{"level":"info","msg":"gobgpd started","time":"2016-05-12T12:10:00+08:00"}
{"level":"info","msg":"finished reading the config file","time":"2016-05-12T12:10:00+08:00"}
{"level":"info","msg":"Peer 10.75.44.227 is added","time":"2016-05-12T12:10:00+08:00"}
{"level":"info","msg":"Add a peer configuration for 10.75.44.227","time":"2016-05-12T12:10:00+08:00"}
{"Duration":0,"Key":"10.75.44.227","Topic":"Peer","level":"debug","msg":"IdleHoldTimer expired","time":"2016-05-12T12:10:00+08:00"}
{"Key":"10.75.44.227","Topic":"Peer","level":"debug","msg":"state changed","new":"BGP_FSM_ACTIVE","old":"BGP_FSM_IDLE","reason":"idle-hold-timer-expired","time":"2016-05-12T12:10:00+08:00"}

{"Key":"10.75.44.227","Topic":"Peer","level":"debug","msg":"state changed","new":"BGP_FSM_OPENSENT","old":"BGP_FSM_ACTIVE","reason":"new-connection","time":"2016-05-12T12:10:19+08:00"}
{"Key":"10.75.44.227","Topic":"Peer","level":"debug","msg":"state changed","new":"BGP_FSM_OPENCONFIRM","old":"BGP_FSM_OPENSENT","reason":"open-msg-received","time":"2016-05-12T12:10:57+08:00"}
{"Data":"hold timer expired","Key":"10.75.44.227","Topic":"Peer","level":"warning","msg":"sent notification","time":"2016-05-12T12:12:27+08:00"}
{"Key":"10.75.44.227","Topic":"Peer","level":"debug","msg":"state changed","new":"BGP_FSM_IDLE","old":"BGP_FSM_OPENCONFIRM","reason":"hold-timer-expired","time":"2016-05-12T12:12:27+08:00"}
{"Duration":5,"Key":"10.75.44.227","Topic":"Peer","level":"debug","msg":"IdleHoldTimer expired","time":"2016-05-12T12:12:32+08:00"}
{"Key":"10.75.44.227","Topic":"Peer","level":"debug","msg":"state changed","new":"BGP_FSM_ACTIVE","old":"BGP_FSM_IDLE","reason":"idle-hold-timer-expired","time":"2016-05-12T12:12:32+08:00"}
ishidawataru commented 8 years ago

maybe related to ttl?

try adding

[neighbors.ebgp-multihop.config]
   enabled = true
xiaopeng163 commented 8 years ago

It works, thanks. AS100-AS200-AS300, and AS200 is gobgp, I advertise evpn routes to gobgp through AS100, and gobgp can receive this routes, but it does not advertise this route to the AS300

ishidawataru commented 8 years ago

please provide more information for help. output of gobgp neighbor, gobgp neighbor <ip addr>, gobgp neighbor <ip addr> adj-out/adj-in -a evpn etc.. and gobgpd's log

xiaopeng163 commented 8 years ago
yabgp@vxlan:~/goTest/bin$ ./gobgp monitor adj-in
[ROUTE] [type:macadv][rd:172.17.0.3:2][esi:single-homed][etag:108][mac:00:11:22:33:44:55][ip:11.11.11.1][labels:[0]] via 10.75.44.254 aspath [] attrs [{Extcomms: [mac-mobility: 500, sticky]} {Origin: i} {LocalPref: 100}]
[ROUTE] [type:A-D][rd:1.1.1.1:32867][esi:single-homed][etag:100][label:161] via 10.75.44.254 aspath [] attrs [{Extcomms: [esi-label: 8001]} {Origin: i} {LocalPref: 100}]
[ROUTE] [type:multicast][rd:172.16.0.1:5904][etag:100][ip:192.168.0.1] via 10.75.44.254 aspath [] attrs [{Origin: i} {LocalPref: 100}]
[ROUTE] [type:esi][rd:172.16.0.1:8888][esi:{0 [0 0 0 0 0 0 0 0 0]}][ip:192.168.0.1] via 10.75.44.254 aspath [] attrs [{Extcomms: [es-import rt: 00:11:22:33:44:55]} {Origin: i} {LocalPref: 100}]
^C
yabgp@vxlan:~/goTest/bin$ ./gobgp neighbor
Peer              AS  Up/Down State       |#Advertised Received Accepted
10.75.44.11      200 00:45:09 Establ      |          0        4        4
10.75.44.227     500 00:45:20 Establ      |          4        0        0
yabgp@vxlan:~/goTest/bin$ 
xiaopeng163 commented 8 years ago

and debug output:

{"level":"info","msg":"gobgpd started","time":"2016-05-12T13:54:02+08:00"}
{"level":"info","msg":"finished reading the config file","time":"2016-05-12T13:54:02+08:00"}
{"level":"info","msg":"Peer 10.75.44.227 is added","time":"2016-05-12T13:54:02+08:00"}
{"level":"info","msg":"Add a peer configuration for 10.75.44.227","time":"2016-05-12T13:54:02+08:00"}
{"level":"info","msg":"Peer 10.75.44.11 is added","time":"2016-05-12T13:54:02+08:00"}
{"level":"info","msg":"Add a peer configuration for 10.75.44.11","time":"2016-05-12T13:54:02+08:00"}
{"Duration":0,"Key":"10.75.44.227","Topic":"Peer","level":"debug","msg":"IdleHoldTimer expired","time":"2016-05-12T13:54:02+08:00"}
{"Key":"10.75.44.227","Topic":"Peer","level":"debug","msg":"state changed","new":"BGP_FSM_ACTIVE","old":"BGP_FSM_IDLE","reason":"idle-hold-timer-expired","time":"2016-05-12T13:54:02+08:00"}
{"Duration":0,"Key":"10.75.44.11","Topic":"Peer","level":"debug","msg":"IdleHoldTimer expired","time":"2016-05-12T13:54:02+08:00"}
{"Key":"10.75.44.11","Topic":"Peer","level":"debug","msg":"state changed","new":"BGP_FSM_ACTIVE","old":"BGP_FSM_IDLE","reason":"idle-hold-timer-expired","time":"2016-05-12T13:54:02+08:00"}
{"Key":"10.75.44.11","Topic":"Peer","level":"debug","msg":"failed to connect: dial tcp 10.79.45.72:0-\u003e10.75.44.11:179: getsockopt: connection refused","time":"2016-05-12T13:54:14+08:00"}
{"Key":"10.75.44.227","Topic":"Peer","level":"debug","msg":"state changed","new":"BGP_FSM_OPENSENT","old":"BGP_FSM_ACTIVE","reason":"new-connection","time":"2016-05-12T13:54:14+08:00"}
{"Key":"10.75.44.227","Topic":"Peer","level":"debug","msg":"state changed","new":"BGP_FSM_OPENCONFIRM","old":"BGP_FSM_OPENSENT","reason":"open-msg-received","time":"2016-05-12T13:54:14+08:00"}
{"Key":"10.75.44.227","State":"BGP_FSM_OPENCONFIRM","Topic":"Peer","level":"info","msg":"Peer Up","time":"2016-05-12T13:54:14+08:00"}
{"Key":"10.75.44.227","Topic":"Peer","level":"debug","msg":"state changed","new":"BGP_FSM_ESTABLISHED","old":"BGP_FSM_OPENCONFIRM","reason":"open-msg-negotiated","time":"2016-05-12T13:54:14+08:00"}
{"Key":"10.75.44.227","Topic":"Peer","data":{"Header":{"Marker":null,"Len":29,"Type":2},"Body":{"WithdrawnRoutesLen":0,"WithdrawnRoutes":[],"TotalPathAttributeLen":6,"PathAttributes":[{"type":15,"value":"ABlG"}],"NLRI":[]}},"level":"debug","msg":"received","time":"2016-05-12T13:54:19+08:00"}
{"AddressFamily":1638470,"Key":"10.75.44.227","Topic":"Peer","level":"debug","msg":"EOR received","time":"2016-05-12T13:54:19+08:00"}
{"level":"debug","msg":"accepted a new passive connection from 10.75.44.11","time":"2016-05-12T13:54:24+08:00"}
{"Key":"10.75.44.11","Topic":"Peer","level":"debug","msg":"state changed","new":"BGP_FSM_OPENSENT","old":"BGP_FSM_ACTIVE","reason":"new-connection","time":"2016-05-12T13:54:24+08:00"}
{"Key":"10.75.44.11","Topic":"Peer","level":"debug","msg":"state changed","new":"BGP_FSM_OPENCONFIRM","old":"BGP_FSM_OPENSENT","reason":"open-msg-received","time":"2016-05-12T13:54:24+08:00"}
{"Key":"10.75.44.11","State":"BGP_FSM_OPENCONFIRM","Topic":"Peer","level":"info","msg":"Peer Up","time":"2016-05-12T13:54:24+08:00"}
{"Key":"10.75.44.11","Topic":"Peer","level":"debug","msg":"state changed","new":"BGP_FSM_ESTABLISHED","old":"BGP_FSM_OPENCONFIRM","reason":"open-msg-negotiated","time":"2016-05-12T13:54:24+08:00"}
{"Key":"10.75.44.11","Topic":"Peer","data":{"Header":{"Marker":null,"Len":87,"Type":2},"Body":{"WithdrawnRoutesLen":0,"WithdrawnRoutes":[],"TotalPathAttributeLen":64,"PathAttributes":[{"type":16,"value":[{"type":6,"subtype":1,"label":8001,"is_single_active":false}]},{"type":1,"value":0},{"type":2,"as_paths":null},{"type":5,"value":100},{"type":14,"nexthop":"10.75.44.254","afi":25,"safi":70,"value":[{"type":1,"value":{"rd":{"type":1,"admin":"1.1.1.1","assigned":32867},"esi":"single-homed","etag":100,"label":161}}]}],"NLRI":[]}},"level":"debug","msg":"received","time":"2016-05-12T13:54:33+08:00"}
{"Key":"[type:A-D][rd:1.1.1.1:32867][esi:single-homed][etag:100][label:161]","Topic":"Table","level":"debug","msg":"create Destination","time":"2016-05-12T13:54:33+08:00"}
{"Key":"[type:A-D][rd:1.1.1.1:32867][esi:single-homed][etag:100][label:161]","Topic":"table","level":"debug","msg":"Processing destination","time":"2016-05-12T13:54:33+08:00"}
{"level":"debug","msg":"computeKnownBestPath known pathlist: 1","time":"2016-05-12T13:54:33+08:00"}
{"Data":{"IsWithdraw":false},"Key":"10.75.44.11","Topic":"Peer","level":"debug","msg":"From me, ignore.","time":"2016-05-12T13:54:33+08:00"}
{"Key":"10.75.44.227","State":5,"Topic":"Peer","attributes":[{"type":16,"value":[{"type":6,"subtype":1,"label":8001,"is_single_active":false}]},{"type":1,"value":0},{"type":2,"as_paths":[{"segment_type":2,"num":1,"asns":[100]}]},{"type":14,"nexthop":"10.79.45.72","afi":25,"safi":70,"value":[{"type":1,"value":{"rd":{"type":1,"admin":"1.1.1.1","assigned":32867},"esi":"single-homed","etag":100,"label":161}}]}],"level":"debug","msg":"sent update","nlri":null,"time":"2016-05-12T13:54:33+08:00","withdrawals":null}
{"Key":"10.75.44.11","Topic":"Peer","data":{"Header":{"Marker":null,"Len":99,"Type":2},"Body":{"WithdrawnRoutesLen":0,"WithdrawnRoutes":[],"TotalPathAttributeLen":76,"PathAttributes":[{"type":16,"value":[{"type":6,"subtype":0,"sequence":500,"is_sticky":true}]},{"type":1,"value":0},{"type":2,"as_paths":null},{"type":5,"value":100},{"type":14,"nexthop":"10.75.44.254","afi":25,"safi":70,"value":[{"type":2,"value":{"rd":{"type":1,"admin":"172.17.0.3","assigned":2},"esi":"single-homed","etag":108,"mac":"00:11:22:33:44:55","ip":"11.11.11.1","labels":[0]}}]}],"NLRI":[]}},"level":"debug","msg":"received","time":"2016-05-12T13:54:36+08:00"}
{"Key":"[type:macadv][rd:172.17.0.3:2][esi:single-homed][etag:108][mac:00:11:22:33:44:55][ip:11.11.11.1][labels:[0]]","Topic":"Table","level":"debug","msg":"create Destination","time":"2016-05-12T13:54:36+08:00"}
{"Key":"[type:macadv][rd:172.17.0.3:2][esi:single-homed][etag:108][mac:00:11:22:33:44:55][ip:11.11.11.1][labels:[0]]","Topic":"table","level":"debug","msg":"Processing destination","time":"2016-05-12T13:54:36+08:00"}
{"level":"debug","msg":"computeKnownBestPath known pathlist: 1","time":"2016-05-12T13:54:36+08:00"}
{"Data":{"IsWithdraw":false},"Key":"10.75.44.11","Topic":"Peer","level":"debug","msg":"From me, ignore.","time":"2016-05-12T13:54:36+08:00"}
{"Key":"10.75.44.227","State":5,"Topic":"Peer","attributes":[{"type":16,"value":[{"type":6,"subtype":0,"sequence":500,"is_sticky":true}]},{"type":1,"value":0},{"type":2,"as_paths":[{"segment_type":2,"num":1,"asns":[100]}]},{"type":14,"nexthop":"10.79.45.72","afi":25,"safi":70,"value":[{"type":2,"value":{"rd":{"type":1,"admin":"172.17.0.3","assigned":2},"esi":"single-homed","etag":108,"mac":"00:11:22:33:44:55","ip":"11.11.11.1","labels":[0]}}]}],"level":"debug","msg":"sent update","nlri":null,"time":"2016-05-12T13:54:36+08:00","withdrawals":null}
{"Key":"10.75.44.11","Topic":"Peer","data":{"Header":{"Marker":null,"Len":68,"Type":2},"Body":{"WithdrawnRoutesLen":0,"WithdrawnRoutes":[],"TotalPathAttributeLen":45,"PathAttributes":[{"type":1,"value":0},{"type":2,"as_paths":null},{"type":5,"value":100},{"type":14,"nexthop":"10.75.44.254","afi":25,"safi":70,"value":[{"type":3,"value":{"rd":{"type":1,"admin":"172.16.0.1","assigned":5904},"etag":100,"ip":"192.168.0.1"}}]}],"NLRI":[]}},"level":"debug","msg":"received","time":"2016-05-12T13:54:40+08:00"}
{"Key":"[type:multicast][rd:172.16.0.1:5904][etag:100][ip:192.168.0.1]","Topic":"Table","level":"debug","msg":"create Destination","time":"2016-05-12T13:54:40+08:00"}
{"Key":"[type:multicast][rd:172.16.0.1:5904][etag:100][ip:192.168.0.1]","Topic":"table","level":"debug","msg":"Processing destination","time":"2016-05-12T13:54:40+08:00"}
{"level":"debug","msg":"computeKnownBestPath known pathlist: 1","time":"2016-05-12T13:54:40+08:00"}
{"Data":{"IsWithdraw":false},"Key":"10.75.44.11","Topic":"Peer","level":"debug","msg":"From me, ignore.","time":"2016-05-12T13:54:40+08:00"}
{"Key":"10.75.44.227","State":5,"Topic":"Peer","attributes":[{"type":1,"value":0},{"type":2,"as_paths":[{"segment_type":2,"num":1,"asns":[100]}]},{"type":14,"nexthop":"10.79.45.72","afi":25,"safi":70,"value":[{"type":3,"value":{"rd":{"type":1,"admin":"172.16.0.1","assigned":5904},"etag":100,"ip":"192.168.0.1"}}]}],"level":"debug","msg":"sent update","nlri":null,"time":"2016-05-12T13:54:40+08:00","withdrawals":null}
{"Key":"10.75.44.11","Topic":"Peer","data":{"Header":{"Marker":null,"Len":85,"Type":2},"Body":{"WithdrawnRoutesLen":0,"WithdrawnRoutes":[],"TotalPathAttributeLen":62,"PathAttributes":[{"type":16,"value":[{"type":6,"subtype":2,"value":"00:11:22:33:44:55"}]},{"type":1,"value":0},{"type":2,"as_paths":null},{"type":5,"value":100},{"type":14,"nexthop":"10.75.44.254","afi":25,"safi":70,"value":[{"type":4,"value":{"rd":{"type":1,"admin":"172.16.0.1","assigned":8888},"esi":"single-homed","ip":"192.168.0.1"}}]}],"NLRI":[]}},"level":"debug","msg":"received","time":"2016-05-12T13:54:41+08:00"}
{"Key":"[type:esi][rd:172.16.0.1:8888][esi:{0 [0 0 0 0 0 0 0 0 0]}][ip:192.168.0.1]","Topic":"Table","level":"debug","msg":"create Destination","time":"2016-05-12T13:54:41+08:00"}
{"Key":"[type:esi][rd:172.16.0.1:8888][esi:{0 [0 0 0 0 0 0 0 0 0]}][ip:192.168.0.1]","Topic":"table","level":"debug","msg":"Processing destination","time":"2016-05-12T13:54:41+08:00"}
{"level":"debug","msg":"computeKnownBestPath known pathlist: 1","time":"2016-05-12T13:54:41+08:00"}
{"Data":{"IsWithdraw":false},"Key":"10.75.44.11","Topic":"Peer","level":"debug","msg":"From me, ignore.","time":"2016-05-12T13:54:41+08:00"}
{"Key":"10.75.44.227","State":5,"Topic":"Peer","attributes":[{"type":16,"value":[{"type":6,"subtype":2,"value":"00:11:22:33:44:55"}]},{"type":1,"value":0},{"type":2,"as_paths":[{"segment_type":2,"num":1,"asns":[100]}]},{"type":14,"nexthop":"10.79.45.72","afi":25,"safi":70,"value":[{"type":4,"value":{"rd":{"type":1,"admin":"172.16.0.1","assigned":8888},"esi":"single-homed","ip":"192.168.0.1"}}]}],"level":"debug","msg":"sent update","nlri":null,"time":"2016-05-12T13:54:41+08:00","withdrawals":null}
{"Key":"10.75.44.227","State":5,"Topic":"Peer","data":{"Header":{"Marker":null,"Len":19,"Type":4},"Body":{}},"level":"debug","msg":"sent","time":"2016-05-12T13:54:44+08:00"}
{"Key":"10.75.44.11","State":5,"Topic":"Peer","data":{"Header":{"Marker":null,"Len":19,"Type":4},"Body":{}},"level":"debug","msg":"sent","time":"2016-05-12T13:54:54+08:00"}
ishidawataru commented 8 years ago

GoBGP thinks it has re-advertised routes.

yabgp@vxlan:~/goTest/bin$ ./gobgp neighbor
Peer              AS  Up/Down State       |#Advertised Received Accepted
10.75.44.11      200 00:45:09 Establ      |          0        4        4
10.75.44.227     500 00:45:20 Establ      |          4        0        0
                                                     ~

Are you sure that GoBGP didn't re-advertised them?

Also, show me the output of gobgp n 10.75.44.227 and gobgp n 10.75.44.227 adj-out -a evpn

xiaopeng163 commented 8 years ago

sorry, got the routes. thanks for help.