Re: bird 2 and vpn4 mpls

2018-08-08 Thread Chris Herdt
Thanks for the clarification! I confirmed that I see the specified
protocols using `show protocol all`:

With ipv4 and ipv6 tables added explicitly:

... [preceding lines] ...
Local capabilities
  Multiprotocol
AF announced: ipv4 vpn4-mpls ipv6
... [following lines] ...

With just the vpn4 mpls table:

... [preceding lines] ...
Local capabilities
  Multiprotocol
AF announced: vpn4-mpls
... [following lines] ...

I'll follow up with the bird-lg contributors, it's possible that it's not
ready to handle the output from BIRD 2 for multi-table protocols.


On Wed, Aug 8, 2018 at 6:26 AM Ondrej Zajicek 
wrote:

> On Mon, Aug 06, 2018 at 11:34:16AM -0500, Chris Herdt wrote:
> > Following the example at https://github.com/BIRD/bird/
> > blob/v2.0.2/doc/bird.conf.example2, I set up a simple bird config (see
> > below).
> >
> > It is working, but I am not certain what the '---' in the table column of
> > the output of `show protocols` means. I expected the column to display
> > vpntab4.
>
> Hi
>
> BGP in BIRD 2 is generally a multi-table protocol (although you use just
> one channel / one table) and because of that associated table is not shown
> in 'show protocol'. You will see it in 'show protocol all'.
>
> --
> Elen sila lumenn' omentielvo
>
> Ondrej 'Santiago' Zajicek (email: santi...@crfreenet.org)
> OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)
> "To err is human -- to blame it on a computer is even more so."
>


-- 
Chris Herdt
https://osric.com/chris/


Re: bird 2 and vpn4 mpls

2018-08-08 Thread Ondrej Zajicek
On Mon, Aug 06, 2018 at 11:34:16AM -0500, Chris Herdt wrote:
> Following the example at https://github.com/BIRD/bird/
> blob/v2.0.2/doc/bird.conf.example2, I set up a simple bird config (see
> below).
> 
> It is working, but I am not certain what the '---' in the table column of
> the output of `show protocols` means. I expected the column to display
> vpntab4.

Hi

BGP in BIRD 2 is generally a multi-table protocol (although you use just
one channel / one table) and because of that associated table is not shown
in 'show protocol'. You will see it in 'show protocol all'.

-- 
Elen sila lumenn' omentielvo

Ondrej 'Santiago' Zajicek (email: santi...@crfreenet.org)
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)
"To err is human -- to blame it on a computer is even more so."


Re: bird 2 and vpn4 mpls

2018-08-07 Thread Chris Herdt
I explicitly added the table name in this updated config, but it still
shows '---' in the table column:

# start config
router id 127.0.0.1;

vpn4 table vpntab4;

protocol bgp peer1 {
local as 65217;
neighbor 100.66.8.129 as 65217;
hold time 180;
vpn4 mpls {
table vpntab4;
import all;
};
}
# end config


My guess was that it used the default tables for ipv4 and ipv6 -- master4
and master6 -- even though it is not receiving any routes of those types. I
added entries for those types as well, but it still shows '---' for the
table name.

# start config
router id 127.0.0.1;

vpn4 table vpntab4;

protocol bgp peer1 {
local as 65217;
neighbor 100.66.8.129 as 65217;
hold time 180;
ipv4 {
table master4;
import none;
export none;
};
ipv6 {
table master6;
import none;
export none;
};
vpn4 mpls {
table vpntab4;
import all;
};
}
# end config


Ultimately I'm trying to use the bird-lg looking glass (
https://github.com/sileht/bird-lg) with bird, and it doesn't accept '---'
as a valid table. That may be an issue with bird-lg, if '---' is an
expected value. But I've defined all the table names that appear when I run
`birdc show route count`, but it's still showing '---'.



On Tue, Aug 7, 2018 at 5:25 AM Arvin Gan  wrote:

> Hi Chris,
>
>From your config-file,  table option is not assigned for protocol bgp
> peer1, but system will select the first table of given nettype.  ‘---’ in
> the table column, that mean you don’t define table name, used the default
> one.
>
>
>
> table *name*
>
> Specify a table to which the channel is connected. Default: the first
> table of given nettype.
>
>
>
> Thanks
>
> Arvin
>
>
>
> *From:* Bird-users  *On Behalf Of *Chris
> Herdt
> *Sent:* Tuesday, August 07, 2018 12:34 AM
> *To:* bird-users@network.cz
> *Subject:* bird 2 and vpn4 mpls
>
>
>
> Following the example at
> https://github.com/BIRD/bird/blob/v2.0.2/doc/bird.conf.example2, I set up
> a simple bird config (see below).
>
>
>
> It is working, but I am not certain what the '---' in the table column of
> the output of `show protocols` means. I expected the column to display
> vpntab4.
>
>
>
> $ sudo /usr/local/sbin/birdc show protocols
>
> BIRD v2.0.2 ready.
> Name   Proto  Table  State  Since Info
> peer1  BGP---up 17:14:48.474  Established
>
>
>
>
>
> The output of `show route count` shows that there are routes in table
> vpntab4:
>
>
>
> $ sudo /usr/local/sbin/birdc show route count
> BIRD v2.0.2 ready.
> 0 of 0 routes for 0 networks in table master4
> 0 of 0 routes for 0 networks in table master6
> 9581 of 9581 routes for 9581 networks in table vpntab4
> Total: 9581 of 9581 routes for 9581 networks in 3 tables
>
>
>
>
>
> The contents of my bird.conf:
>
>
>
> log syslog { debug, trace, info, remote, warning, error, auth, fatal, bug
> };
> log stderr all;
>
> router id 127.0.0.1;
>
> vpn4 table vpntab4;
>
> protocol bgp peer1 {
> local as 65321;
> neighbor 192.168.1.1 as 65321;
> hold time 180;
> vpn4 mpls {
> import all;
> };
> }
>
>
>
>
>
> Thanks,
>
>
>
> --
>
> Chris Herdt
> https://osric.com/chris/
>


-- 
Chris Herdt
Web Applications Developer
267-603-1066 (home)
734-754-3585 (cell)
http://osric.com/chris/


RE: bird 2 and vpn4 mpls

2018-08-07 Thread Arvin Gan
Hi Chris,
   From your config-file,  table option is not assigned for protocol bgp peer1, 
but system will select the first table of given nettype.  ‘---’ in the table 
column, that mean you don’t define table name, used the default one.

table name
Specify a table to which the channel is connected. Default: the first table of 
given nettype.

Thanks
Arvin

From: Bird-users  On Behalf Of Chris Herdt
Sent: Tuesday, August 07, 2018 12:34 AM
To: bird-users@network.cz
Subject: bird 2 and vpn4 mpls

Following the example at 
https://github.com/BIRD/bird/blob/v2.0.2/doc/bird.conf.example2, I set up a 
simple bird config (see below).

It is working, but I am not certain what the '---' in the table column of the 
output of `show protocols` means. I expected the column to display vpntab4.

$ sudo /usr/local/sbin/birdc show protocols
BIRD v2.0.2 ready.
Name   Proto  Table  State  Since Info
peer1  BGP---up 17:14:48.474  Established


The output of `show route count` shows that there are routes in table vpntab4:

$ sudo /usr/local/sbin/birdc show route count
BIRD v2.0.2 ready.
0 of 0 routes for 0 networks in table master4
0 of 0 routes for 0 networks in table master6
9581 of 9581 routes for 9581 networks in table vpntab4
Total: 9581 of 9581 routes for 9581 networks in 3 tables


The contents of my bird.conf:

log syslog { debug, trace, info, remote, warning, error, auth, fatal, bug };
log stderr all;

router id 127.0.0.1;

vpn4 table vpntab4;

protocol bgp peer1 {
local as 65321;
neighbor 192.168.1.1 as 65321;
hold time 180;
vpn4 mpls {
import all;
};
}


Thanks,

--
Chris Herdt
https://osric.com/chris/