[FUG-BR] OpenBGPD no FreeBSD

Alisson alissongoncalves em bsd.com.br
Quinta Abril 5 09:22:26 BRT 2012


Pessoal fiz as alterações... os ips da rede 10... e os ips da loopbackup
(172) estão se pingando...

LADO PEER1

peer_internet="10.0.1.1"
meuip="172.16.2.255"

#global configuration
AS 65010
router-id $meuip
listen on $meuip
holdtime 180
holdtime min 3
fib-update no
log updates

#network we announce
network 192.168.40.0/24

#Neighbor

neighbor $peer_internet {
        remote-as       65001
        descr           PROVEDOR
        multihop        2
        local-address   $meuip
        holdtime        180
        holdtime min    3
        announce        self
}

LADO PROVEDOR


peer1="10.0.1.2"
meuip="172.16.1.255"

#global configuration
AS 65001
router-id $meuip
listen on $meuip

holdtime 180
holdtime min 3
fib-update no
log updates

#network we announce
network 192.168.50.0/24

#Neighbor

neighbor $peer1 {
        remote-as       65010
        descr           PEER1
        multihop        2
        local-address   $meuip
        holdtime        180
        holdtime min    3
        announce        self
}



(root em PROVEDOR)[~]# bgp
Neighbor                   AS    MsgRcvd    MsgSent  OutQ Up/Down
State/PrfRcvd
PEER1                   65010          0          0     0 Never    Active

(root em PEE1)[~]# bgp
Neighbor                   AS    MsgRcvd    MsgSent  OutQ Up/Down
State/PrfRcvd
PROVEDOR                65001          0          0     0 Never    Active

/var/log/messages
Apr  5 08:13:25 PROVEDOR bgpd[1598]: neighbor 10.0.1.2 (PEER1): socket
error: Connection refused



Em 4 de abril de 2012 19:50, Alisson <alissonfer em gmail.com> escreveu:

> Boa noite Pessoal,
>
> tudo certo?
>
> estou tendo alguns problemas com o OpenBGP no FreeBSD para levantar
> sessões.
>
> fiz testes com AS e IPS invalidos.
>
> segue abaixo as configurações
>
> LADO PEER 1
>
> peer_internet="10.0.1.1"
> meuip="10.0.1.10"
>
> # global configuration
> AS 65010
> router-id $meuip
> listen on $meuip
> holdtime 180
> holdtime min 3
> fib-update no
> log updates
> #network we announce
> network 192.168.40.0/23
>
> #Neighbor
>
> neighbor $peer_internet {
>         remote-as       65001
>         descr           PROVEDOR
>         multihop        2
>         local-address   $meuip
>         passive
>         holdtime        180
>         holdtime min    3
>         announce        self
>
> }
>
> LADO PROVEDOR
>
> peer1="10.0.1.10"
> meuip="10.0.1.1"
>
> #global configuration
> AS 65001
> router-id $meuip
> listen on $meuip
>
> holdtime 180
> holdtime min 3
> fib-update no
> log updates
>
> #network we announce
> network 192.168.50.0/23
>
> #Neighbor
>
> neighbor $peer1 {
>         remote-as       65010
>         descr           PEER1
>         multihop        2
>         local-address   $meuip
>         passive
>         holdtime        180
>         holdtime min    3
>         announce        self
>
> }
>
>
> e veja o resultado - a sessão nao levanta...
>
> (root em local-peer1)[~]# bgp
> Neighbor                   AS    MsgRcvd    MsgSent  OutQ Up/Down
>  State/PrfRcvd
> PROVEDOR                65001          0          0     0 Never    Active
>
> (root em local-provedor)[~]# bgp
> Neighbor                   AS    MsgRcvd    MsgSent  OutQ Up/Down
>  State/PrfRcvd
> PEER1                65010          0          0     0 Never    Active
>
> /var/log/messages
>
> Apr  4 18:12:17 local-peer1 bgpd[2215]: no kernel support for PF_KEY
>
> alguem já teve este tipo de problema com OpenBGP?
>
> obrigado!
>
>


Mais detalhes sobre a lista de discussão freebsd