Versione 7 del 2013-11-28 23:01: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

Name = mionome
ConnectTo = namex
Mode = switch

tinc-up

ip link set dev tap0 up
ip a a dev tap0 10.6.6.X/24 

hosts/namex

Address = 10.185.0.1 

generare hosts/mionome con tincd -K

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.X_MyId description mionome
(config)# neighbor 10.6.6.X_MyId next-hop-self
(config)# neighbor 10.6.6.X_MyId soft-reconfiguration inbound
(config)# neighbor 10.6.6.X_MyId route-map IBGP in
(config)# neighbor 10.6.6.X_MyId route-reflector-client