19: Configuring BGP (Border Gateway Protocol)
_______________________________________________________________________________________________________
_______________________________________________________________________________________________________
© Virtual Access 2018
GW6600 Series User manual
Issue: 1.7
Page 192 of 519
Web: IPv6
UCI: bgpd.@peer[0].ipv6
Opt: ipv6
Defines whether the peer is connected over IPv6.
1
0
Web: Local Peer
UCI: bgpd.@peer[0].next_hop_self
Opt: next_hop_self
Defines an announced route’s next hop as being equivalent to
the address of the router if it is learned via eBGP.
1
0
Web: Holdtime
UCI: bgpd.@peer[0].holdtime_sec
Opt: holdtime_sec
Defines how long to wait for incoming BGP messages before
assuming peer is dead.
The timer is reset every time a BGP message is received.
0
Range
Web: Keepalive Interval
UCI: bgpd.@peer[0].keepalive_sec
Opt: keepalive_sec
Defines the interval in seconds for between two successive BGP
keep alive messages.
0
Range
Web: Connect Timer
UCI: bgpd.@peer[0].connect_sec
Opt: connect_sec
Defines how long to wait after interface is up before retrying the
connection on it.
0
Range
Table 73: Information table for BGP neighbours
19.3
Configuring BGP using command line
19.3.1
Configuring BGP using UCI
You can also configure BGP using UCI. The configuration file is stored on
/etc/config/bgpd
root@VA_router:~# uci show bgpd
bgpd.bgpd=routing
bgpd.bgpd.enabled=yes
bgpd.bgpd.router_id=3.3.3.3
bgpd.bgpd.asn=1
bgpd.bgpd.network=11.11.11.0/29 192.168.103.1/32
bgpd.@peer[0]=peer
bgpd.@peer[0].route_map_in=yes
bgpd.@peer[0].ipaddr=11.11.11.1
bgpd.@peer[0].asn=1
bgpd.@peer[0].route_map=ROUTEMAP
bgpd.@peer[0].ipv6=0
bgpd.@peer[0].next_hop_self=0
bgpd.@peer[0].holdtime_sec=0
bgpd.@peer[0].keepalive_sec=0
bgpd.@peer[0].connect_sec=0