[afnog] AS112

Diarmuid O Briain diarmuid at obriain.com
Thu Sep 6 20:32:24 UTC 2018


Hi all,

Looking for a bit of a sanity check here. I established an AS112 Server in
my testbed. I setup a dummy interface on the AS112 server (bs) for all the
subnets with an interface name that starts with 'as112_'. I set up the bird
and bird6 configuration files identically except for the prefix 'set
allnets' and or course the IPv4 remote addresses in bird.conf and IPv6
addresses in bird6.conf. What is puzzling me is that in an ISP router I can
see the IPv4 'allnets' in both the router BGP and IP routes tables but I
cannot see the IPv6 'allnets' in the BGP and IPv6 routes tables.

regards,

Diarmuid

3: as112_br1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue
state UP group default qlen 1000
    link/ether 46:c1:5f:cd:9c:8d brd ff:ff:ff:ff:ff:ff
    inet 192.175.48.1/24 brd 192.175.48.255 scope global as112_br1
       valid_lft forever preferred_lft forever
    inet 192.31.196.1/24 brd 192.31.196.255 scope global as112_br1
       valid_lft forever preferred_lft forever
    inet 192.175.48.6/24 brd 192.175.48.255 scope global secondary as112_br1
       valid_lft forever preferred_lft forever
    inet 192.175.48.42/24 brd 192.175.48.255 scope global secondary
as112_br1
       valid_lft forever preferred_lft forever
    inet6 2001:4:112::1/128 scope global
       valid_lft forever preferred_lft forever
    inet6 2620:4f:8000::42/128 scope global
       valid_lft forever preferred_lft forever
    inet6 2620:4f:8000::6/128 scope global
       valid_lft forever preferred_lft forever
    inet6 2620:4f:8000::1/128 scope global
       valid_lft forever preferred_lft forever
    inet6 fe80::44c1:5fff:fecd:9c8d/64 scope link
       valid_lft forever preferred_lft forever

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

root at bs:/etc/bird# cat bird.conf

router id 199.9.9.204;

filter as112
prefix set allnet;
{
  allnet = [
    192.175.48.0/24,
    192.31.196.0/24
  ];
  if ! (net ~ allnet) then reject;
  accept;
}

protocol device {
}

protocol direct {
    interface "as112_*";
}

protocol kernel {
learn;
metric 64;
import all;
export all;
}

template bgp PEERS {
    local as 112;
    hold time 30;
    startup hold time 30;
    connect retry time 120;
    connect delay time 5;
    error forget time 0;
    export filter as112;
}

protocol bgp as5222 from PEERS {
        neighbor 199.9.9.22 as 5222;
}

protocol bgp as5333 from PEERS {
        neighbor 199.9.9.33 as 5333;
}

protocol bgp as5111 from PEERS {
        neighbor 199.9.9.11 as 5111;
}

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

root at bs:/etc/bird# cat bird6.conf

router id 199.9.9.204;

filter as112
prefix set allnet;
{
  allnet = [
    2620:4f:8000::/48,
    2001:4:112::/48
  ];
  if ! (net ~ allnet) then reject;
  accept;
}

protocol device {
}

protocol direct {
    interface "as112_*";
}

protocol kernel {
learn;
metric 64;
import all;
export all;
}

template bgp PEERS {
    local as 112;
    hold time 30;
    startup hold time 30;
    connect retry time 120;
    connect delay time 5;
    error forget time 0;
    export filter as112;
}

protocol bgp as5222 from PEERS {
        neighbor 2a99:9:9::22 as 5222;
}

protocol bgp as5333 from PEERS {
        neighbor 2a99:9:9::33 as 5333;
}

protocol bgp as5111 from PEERS {
        neighbor 2a99:9:9::11 as 5111;
}

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

ISP1_RTR#show bgp ipv4 unicast

BGP table version is 22, local router ID is 200.1.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i -
internal,
              r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

   Network          Next Hop            Metric LocPrf Weight Path
*> 192.31.196.0     199.9.9.204                            0 112 i
*> 192.175.48.0     199.9.9.204                            0 112 i
*> 199.1.1.0        0.0.0.0                  0         32768 i
*> 199.2.2.0        199.9.9.22               0             0 5999 5222 i
*> 199.3.3.0        199.9.9.33               0             0 5999 5333 i

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

ISP1_RTR# show ip route

C    199.9.9.0/24 is directly connected, FastEthernet0/0
B    192.31.196.0/24 [20/0] via 199.9.9.204, 00:36:07
     200.1.1.0/32 is subnetted, 1 subnets
C       200.1.1.1 is directly connected, Loopback0
B    199.3.3.0/24 [20/0] via 199.9.9.33, 00:36:10
B    199.2.2.0/24 [20/0] via 199.9.9.22, 00:35:47
C    199.1.1.0/24 is directly connected, FastEthernet0/1
B    192.175.48.0/24 [20/0] via 199.9.9.204, 00:36:07

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

ISP1_RTR# show bgp ipv6 unicast

BGP table version is 8, local router ID is 200.1.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i -
internal,
              r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

   Network          Next Hop            Metric LocPrf Weight Path
*> 2A99:1:1::/48    ::                       0         32768 i
*> 2A99:2:2::/48    2A99:9:9::22             0             0 5999 5222 i
*> 2A99:3:3::/48    2A99:9:9::33             0             0 5999 5333 i

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

ISP1_RTR# show ipv6 route

C   2A99:1:1::/48 [0/0]
     via ::, FastEthernet0/1
L   2A99:1:1::1/128 [0/0]
     via ::, FastEthernet0/1
B   2A99:2:2::/48 [20/0]
     via FE80::21E:BEFF:FE17:EB9A, FastEthernet0/0
B   2A99:3:3::/48 [20/0]
     via FE80::C671:FEFF:FE10:FE00, FastEthernet0/0
C   2A99:9:9::/48 [0/0]
     via ::, FastEthernet0/0
L   2A99:9:9::11/128 [0/0]
     via ::, FastEthernet0/0
L   FE80::/10 [0/0]
     via ::, Null0
L   FF00::/8 [0/0]
     via ::, Null0


--

*Irish by birth, located in Uganda but Munster by the grace of God.*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.afnog.org/pipermail/afnog/attachments/20180906/fa912b79/attachment.html>


More information about the afnog mailing list