Versione 5 del 2013-11-28 22:54:23

Nascondi questo messaggio
Italiano English
Modifica History Actions

RouterBgpRouteReflectorClient

Router Bgp Route Reflector Client

Intro

Il primo passo รจ farsi assegnare un indirizzo pubblico da contatti(at)ninux(dot)org.

Assegnarsi un indirizzo Tabella Rete BGP 10.6.6.0/24

TincVPN setup to enter the BGP virtual network

Installare Tinch versione 1.0.23 scaricandolo dal sito www.tinc-vpn.org e compilandolo.

Configurare tinc per collegarsi a uno dei router BGP

tinc.conf

aaaaaaaaa

tinc-up

Compile quagga

scaricare quagga dal gitup di ninux branch openwrt.0.99.21

eseguire bootstrap.sh ./configure

Configure quagga

zebra.conf

hostname myhostname
password mypassword
enable password myenablepassword
ip forwarding
ipv6 forwarding
log file /var/log/quagga/zebra.log

bgpd.conf

hostname myhostname
password mypassword
enable myenablepassword
log stdout
line vty

router bgp 197835
 bgp router-id 10.6.6.X_myID
 network mysubnet/mymask
 neighbor 10.6.6.1 remote-as 197835
 neighbor 10.6.6.1 description RouteReflector
 neighbor 10.6.6.1 next-hop-self
 neighbor 10.6.6.1 soft-reconfiguration inbound


 address-family ipv6
 network myaddress/mymask
 neighbor 10.6.6.1 activate
 neighbor 10.6.6.1 next-hop-self
 neighbor 10.6.6.1 soft-reconfiguration inbound
 exit-address-family

line vty

Per lanciare il tutto lanciare a mano prima zebra e poi bgpd

zebra -d -f /etc/quagga/zebra.conf -i /tmp/zebra.pid
bgpd -d -f /etc/quagga/bgpd.conf -i /tmp/bgpd.pid

Configurare il peering con il nostro client sul Router Reflector da consolle:

> ena
# configure t
(config)# router bgp 197835
(config)# neighbor 10.6.6.X_MyId  remote-as 197835
(config)# neighbor 10.6.6.7 description mionome
(config)# neighbor 10.6.6.7 next-hop-self
(config)# neighbor 10.6.6.7 soft-reconfiguration inbound
(config)# neighbor 10.6.6.7 route-map IBGP in
(config)# neighbor 10.6.6.7 route-reflector-client