Configuration examples

XXXX - your ASN number

192.168.0/24 and 192.168.1/24 - your IPv4 prefixes

2001:DB8:1::/64 and network 2001:DB8:2::/64 - your IPv6 prefixes

Cisco

router bgp XXXX

!

no bgp enforce-first-as

bgp log-neighbor-changes

neighbor LL-IX peer-group

neighbor LL-IX remote-as 59947

neighbor LL-IX transport connection-mode active

 

neighbor LL-IX-6 peer-group

neighbor LL-IX-6 remote-as 59947

neighbor LL-IX-6 transport connection-mode active

 

neighbor 5.101.92.3 peer-group LL-IX

neighbor 5.101.92.3 description rs2.ll-ix.com

neighbor 5.101.92.9 peer-group LL-IX

neighbor 5.101.92.9 description rs1.ll-ix.com

neighbor 2001:678:4fc::3 peer-group LL-IX-6

neighbor 2001:678:4fc::3 description rs1.ll-ix.com

neighbor 2001:678:4fc::4 peer-group LL-IX-6

neighbor 2001:678:4fc::4 description rs2.ll-ix.com

!

address-family ipv4

no neighbor LL-IX-6 activate

neighbor LL-IX activate

neighbor LL-IX next-hop-self

neighbor LL-IX soft-reconfiguration inbound

neighbor LL-IX route-map TO-IX out

no auto-summary

no synchronization

neighbor 5.101.92.3 peer-group LL-IX

neighbor 5.101.92.9 peer-group LL-IX

network 192.168.0.0 mask 255.255.255.0

network 192.168.1.0 mask 255.255.255.0

exit-address-family

!

address-family ipv6

neighbor LL-IX-6 activate

neighbor LL-IX-6 next-hop-self

neighbor LL-IX-6 soft-reconfiguration inbound

neighbor LL-IX-6 route-map TO-IX out

neighbor 2001:678:4fc::3 peer-group LL-IX-6

neighbor 2001:678:4fc::4 peer-group LL-IX-6

network 2001:DB8:1::/64

network 2001:DB8:2::/64

exit-address-family

!

ip prefix-list TO-IX seq 10 permit 192.168.0.0/24

ip prefix-list TO-IX seq 20 permit 192.168.1.0/24

!

ipv6 prefix-list TO-IX seq 10 permit 2001:DB8:1::/64

ipv6 prefix-list TO-IX seq 20 permit 2001:DB8:2::/64

!

route-map TO-IX permit 10

match ip address prefix-list TO-IX

!

Juniper

[email protected]# show protocols bgp

group LL-IX {

    type external;

    log-updown;

    family inet {

        unicast;

    }

    export TO-IX;

    peer-as 59947;

    local-as XXXX;

    neighbor 5.101.92.9 {

        description rs1.ll-ix.com;

    }

    neighbor 5.101.92.3 {

        description rs2.ll-ix.com;

    }

}

group LL-IX-6 {

    type external;

    log-updown;

    family inet6 {

        unicast;

    }

    export TO-IX;

    peer-as 59947;

    local-as XXXX;

    neighbor 2001:678:4fc::3 {

        description rs1.ll-ix.com;

    }

    neighbor 2001:678:4fc::4 {

        description rs2.ll-ix.com;

    }

}

Join