New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
How to let Vyos route traffic via BGP
I was getting a handle on BIRD. But once switch to Vyos, not quite sure how it works. I have IPv6 BGP neighbor setup and I could see all the routes and IP address assigned to eth1(LAN) and eth0(WAN), but I still can't ping anything.
Please help me understand how Vyos deal with BGP. I am using https://tunnelbroker.li/
Vyos 1.3
my BGP configure
set protocols bgp 203xxxaddress-family ipv6-unicast network 2a0c:[my ip block]/48
set protocols bgp 203xxx neighbor 2a0c:9a40:100f:384::1 address-family ipv6-unicast
set protocols bgp 203xxx neighbor 2a0c:9a40:100f:384::1 remote-as '34927'
set protocols bgp 203xxx neighbor 2a0c:9a40:100f:384::1 update-source 'tun0'
set protocols bgp 203xxx parameters router-id '``38.13.``x.x'
Configure
vyos@EdgeRouterX-2012:~$ show configuration commands | match route6
set protocols static interface-route6 fe80::200:5efe:b92c:5311/128 next-hop-interface tun0
set protocols static route6 2a0c:[my ipv6 block]::/48 blackhole distance '254'
BGP Route
vyos@EdgeRouterX-2012:~$ show ipv6 bgp
BGP table version is 9803834, local router ID is 38.13.``x.x, vrf id 0
Default local pref 100, local AS 203xxx
Status codes: s suppressed, d damped, h history, * valid, > best, = multipath,
i internal, r RIB-failure, S Stale, R Removed
Nexthop codes: u/NNN nexthop's vrf id, < announce-nh-self
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 2001::/32 fe80::200:5efe:b92c:5311
0 34927 6939 i
*> 2001:4:112::/48 fe80::200:5efe:b92c:5311
0 34927 6939 112 i
*> 2001:200::/32 fe80::200:5efe:b92c:5311
0 34927 6939 2914 2500 2500 i
*> 2001:200:900::/40
fe80::200:5efe:b92c:5311
0 34927 6939 2516 7660 7660 7660 i
*> 2001:200:e00::/40
fe80::200:5efe:b92c:5311
0 34927 6939 7530 4690 i
*> 2001:200:c000::/35
fe80::200:5efe:b92c:5311
0 34927 6939 7500 23634 i
*> 2001:200:e000::/35
fe80::200:5efe:b92c:5311
0 34927 6939 2516 7660 7660 7660 i
*> 2001:218::/32 fe80::200:5efe:b92c:5311
0 34927 6939 2914 i
*> 2001:218:2002::/48
fe80::200:5efe:b92c:5311
...[Routes are long. So truncate]
BGP Summary
IPv6 Unicast Summary:
BGP router identifier 38.13``.x.x , local AS number 203xxx vrf-id 0
BGP table version 9732239
RIB entries 290419, using 53 MiB of memory
Peers 1, using 21 KiB of memory
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd PfxSnt
2a0c:9a40:100f:384::1 4 34927 3394808 3377006 0 0 0 17:57:00 153335 153336
Total number of neighbors 1
BGP Neighbor
BGP neighbor is 2a0c:9a40:100f:384::1, remote AS 34927, local AS 203xxx external link
BGP version 4, remote router ID 185.44.83.17``, local router ID 38.13.``x.x
BGP state = Established, up for 17:58:31
Last read 00:00:00, Last write 00:00:00
Hold time is 180, keepalive interval is 60 seconds
Neighbor capabilities:
4 Byte AS: advertised and received
AddPath:
IPv4 Unicast: RX advertised IPv4 Unicast
IPv6 Unicast: RX advertised IPv6 Unicast
Route refresh: advertised and received(new)
Address Family IPv4 Unicast: advertised
Address Family IPv6 Unicast: advertised and received
Hostname Capability: advertised (name: EdgeRouterX-2012,domain name: n/a) not received
Graceful Restart Capability: advertised and received
Remote Restart timer is 0 seconds
Address families by peer:
none
Graceful restart information:
End-of-RIB send: IPv6 Unicast
End-of-RIB received: IPv6 Unicast
Local GR Mode: Helper*
Remote GR Mode: Helper
R bit: False
Timers:
Configured Restart Time(sec): 120
Received Restart Time(sec): 0
IPv4 Unicast:
F bit: False
End-of-RIB sent: No
End-of-RIB sent after update: No
End-of-RIB received: No
Timers:
Configured Stale Path Time(sec): 360
IPv6 Unicast:
F bit: False
End-of-RIB sent: Yes
End-of-RIB sent after update: No
End-of-RIB received: Yes
Timers:
Configured Stale Path Time(sec): 360
Message statistics:
Inq depth is 0
Outq depth is 0
Sent Rcvd
Opens: 7 5
Notifications: 0 8
Updates: 3378294 3395943
Keepalives: 1079 1238
Route Refresh: 0 0
Capability: 0 0
Total: 3379380 3397194
Minimum time between advertisement runs is 0 seconds
Update source is tun0
For address family: IPv4 Unicast
Not part of any update group
Community attribute sent to this neighbor(all)
0 accepted prefixes
For address family: IPv6 Unicast
Update group 1, subgroup 1
Packet Queue length 0
Community attribute sent to this neighbor(all)
153340 accepted prefixes
Connections established 1; dropped 0
Last reset 18:03:03, No AFI/SAFI activated for peer
Local host: 2a0c:9a40:100f:384::2, Local port: 179
Foreign host: 2a0c:9a40:100f:384::1, Foreign port: 33907
Nexthop: 38.13.``x.x
Nexthop global: 2a0c:9a40:100f:384::2
Nexthop local: fe80::f5b4:2cff:fe5a:6452
BGP connection: shared network
BGP Connect Retry Timer in Seconds: 120
Estimated round trip time: 30 ms
Read thread: on Write thread: on FD used: 31