Created
September 2, 2014 10:21
-
-
Save b4ldr/899774651076eb6dc602 to your computer and use it in GitHub Desktop.
Quagga BGP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#This made no difference | |
cat /etc/quagga/bgpd.conf | |
router bgp 64496 | |
! | |
bgp router-id 192.168.1.200 | |
! | |
neighbor 2001:DB8:1::1 remote-as 64497 | |
no neighbor 2001:DB8:1::1 activate | |
neighbor 2001:DB8:1::1 interface eth0 | |
neighbor 2001:DB8:1::1 description upstream | |
! | |
address-family ipv6 | |
neighbor 2001:DB8:1::1 activate | |
neighbor 2001:DB8:1::1 soft-reconfiguration inbound | |
neighbor 2001:DB8:1::1 prefix-list prefix-v6 out | |
network 2001:DB8::/48 | |
exit-address-family | |
! | |
ipv6 prefix-list prefix-v6 seq 2 permit 2001:DB8::/48 | |
! | |
line vty | |
! | |
! | |
root@ubuntu:~# /etc/init.d/quagga restart | |
Stopping Quagga daemons (prio:0): (bgpd) zebra (ripd) (ripngd) (ospfd) (ospf6d) (isisd). | |
Removing all routes made by zebra. | |
Loading capability module if not yet done. | |
Starting Quagga daemons (prio:10): zebra bgpdThere is no such command. | |
Error occured during reading below line. | |
network 2001:DB8::/48 | |
% Activate the neighbor for the address family first | |
% Activate the neighbor for the address family first |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
router bgp 64496 | |
! | |
bgp router-id 192.168.1.200 | |
! | |
neighbor 2001:DB8:1::1 remote-as 64497 | |
no neighbor 2001:DB8:1::1 activate | |
neighbor 2001:DB8:1::1 description upstream | |
! | |
address-family ipv6 | |
neighbor 2001:DB8:1::1 activate | |
neighbor 2001:DB8:1::1 soft-reconfiguration inbound | |
neighbor 2001:DB8:1::1 prefix-list prefix-v6 out | |
network 2001:DB8::/48 | |
exit-address-family | |
! | |
ipv6 prefix-list prefix-v6 seq 2 permit 2001:DB8::/48 | |
! | |
line vty | |
! | |
! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ubuntu# show interface | |
Interface dummy0 is up, line protocol detection is disabled | |
index 3 metric 1 mtu 1500 | |
flags: <UP,BROADCAST,RUNNING,NOARP> | |
HWaddr: 7e:52:97:39:f4:b7 | |
inet6 2001:db8::42/47 | |
inet6 fe80::7c52:97ff:fe39:f4b7/64 | |
Interface eth0 is up, line protocol detection is disabled | |
index 2 metric 1 mtu 1500 | |
flags: <UP,BROADCAST,RUNNING,MULTICAST> | |
HWaddr: 08:00:27:15:bd:18 | |
inet 192.168.1.200/24 broadcast 192.168.1.255 | |
inet6 2001:db8:1::64/64 | |
inet6 fe80::a00:27ff:fe15:bd18/64 | |
ubuntu# show ip bgp summary | |
No IPv4 neighbor is configured | |
ubuntu# show ipv6 bgp summary | |
BGP router identifier 192.168.1.200, local AS number 64496 | |
RIB entries 2, using 128 bytes of memory | |
Peers 1, using 2524 bytes of memory | |
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd | |
2001:db8:1::1 4 64497 3 6 0 0 0 00:01:18 1 | |
Total number of neighbors 1 | |
ubuntu# show ipv6 bgp | |
BGP table version is 0, local router ID is 192.168.1.200 | |
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, | |
r RIB-failure, S Stale, R Removed | |
Origin codes: i - IGP, e - EGP, ? - incomplete | |
Network Next Hop Metric LocPrf Weight Path | |
*> ::/0 2001:db8:1::1 0 64497 i | |
*> 2001:db8::/48 :: 0 32768 i | |
Total number of prefixes 2 | |
ubuntu# show ipv6 route | |
Codes: K - kernel route, C - connected, S - static, R - RIPng, O - OSPFv3, | |
I - ISIS, B - BGP, * - FIB route. | |
B>* ::/0 [20/0] via fe80::a00:27ff:fe02:e9f2, dummy0, 00:01:25 | |
C>* ::1/128 is directly connected, lo | |
C>* 2001:db8::/47 is directly connected, dummy0 | |
C>* 2001:db8:1::/64 is directly connected, eth0 | |
C * fe80::/64 is directly connected, dummy0 | |
C>* fe80::/64 is directly connected, eth0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
show interface | |
Interface ath0 is up, line protocol detection is disabled | |
index 2 metric 1 mtu 1500 | |
flags: <UP,BROADCAST,RUNNING,MULTICAST> | |
HWaddr: 08:00:27:15:bd:18 | |
inet 192.168.1.200/24 broadcast 192.168.1.255 | |
inet6 2001:db8:1::64/64 | |
inet6 fe80::a00:27ff:fe15:bd18/64 | |
Interface dummy0 is up, line protocol detection is disabled | |
index 3 metric 1 mtu 1500 | |
flags: <UP,BROADCAST,RUNNING,NOARP> | |
HWaddr: 9a:b8:ec:c9:61:12 | |
inet6 2001:db8::42/47 | |
inet6 fe80::98b8:ecff:fec9:6112/64 | |
ubuntu# show ipv6 bgp summary | |
BGP router identifier 192.168.1.200, local AS number 64496 | |
RIB entries 2, using 128 bytes of memory | |
Peers 1, using 2524 bytes of memory | |
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd | |
2001:db8:1::1 4 64497 3 6 0 0 0 00:01:25 1 | |
Total number of neighbors 1 | |
ubuntu# show ipv6 bgp | |
BGP table version is 0, local router ID is 192.168.1.200 | |
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, | |
r RIB-failure, S Stale, R Removed | |
Origin codes: i - IGP, e - EGP, ? - incomplete | |
Network Next Hop Metric LocPrf Weight Path | |
*> ::/0 2001:db8:1::1 0 64497 i | |
*> 2001:db8::/48 :: 0 32768 i | |
Total number of prefixes 2 | |
ubuntu# show ipv6 route | |
Codes: K - kernel route, C - connected, S - static, R - RIPng, O - OSPFv3, | |
I - ISIS, B - BGP, * - FIB route. | |
B>* ::/0 [20/0] via fe80::a00:27ff:fe02:e9f2, ath0, 00:01:30 | |
C>* ::1/128 is directly connected, lo | |
C>* 2001:db8::/47 is directly connected, dummy0 | |
C>* 2001:db8:1::/64 is directly connected, ath0 | |
C * fe80::/64 is directly connected, dummy0 | |
C>* fe80::/64 is directly connected, ath0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
auto eth0 | |
iface eth0 inet static | |
address 192.168.1.200/24 | |
gateway 192.168.1.1 | |
iface eth0 inet6 static | |
address 2001:DB8:1::64/64 | |
auto dummy0 | |
iface lo inet6 loopback | |
iface dummy0 inet6 static | |
address 2001:DB8::42/48 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ubuntu# show interface | |
Interface dummy0 is up, line protocol detection is disabled | |
index 3 metric 1 mtu 1500 | |
flags: <UP,BROADCAST,RUNNING,NOARP> | |
HWaddr: 7e:52:97:39:f4:b7 | |
inet6 2001:db8::42/48 | |
inet6 fe80::7c52:97ff:fe39:f4b7/64 | |
Interface eth0 is up, line protocol detection is disabled | |
index 2 metric 1 mtu 1500 | |
flags: <UP,BROADCAST,RUNNING,MULTICAST> | |
HWaddr: 08:00:27:15:bd:18 | |
inet 192.168.1.200/24 broadcast 192.168.1.255 | |
inet6 2001:db8:1::64/64 | |
inet6 fe80::a00:27ff:fe15:bd18/64 | |
ubuntu# show ipv6 bgp summary | |
BGP router identifier 192.168.1.200, local AS number 64496 | |
RIB entries 2, using 128 bytes of memory | |
Peers 1, using 2524 bytes of memory | |
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd | |
2001:db8:1::1 4 64497 6 9 0 0 0 00:04:26 1 | |
Total number of neighbors 1 | |
ubuntu# show ipv6 bgp | |
BGP table version is 0, local router ID is 192.168.1.200 | |
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, | |
r RIB-failure, S Stale, R Removed | |
Origin codes: i - IGP, e - EGP, ? - incomplete | |
Network Next Hop Metric LocPrf Weight Path | |
*> ::/0 2001:db8:1::1 0 64497 i | |
*> 2001:db8::/48 :: 0 32768 i | |
Total number of prefixes 2 | |
ubuntu# show ipv6 route | |
Codes: K - kernel route, C - connected, S - static, R - RIPng, O - OSPFv3, | |
I - ISIS, B - BGP, * - FIB route. | |
B>* ::/0 [20/0] via fe80::a00:27ff:fe02:e9f2, eth0, 00:04:42 | |
C>* ::1/128 is directly connected, lo | |
C>* 2001:db8::/48 is directly connected, dummy0 | |
C>* 2001:db8:1::/64 is directly connected, eth0 | |
C * fe80::/64 is directly connected, dummy0 | |
C>* fe80::/64 is directly connected, eth0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
router bgp 64497 | |
! | |
bgp router-id 192.168.1.201 | |
! | |
neighbor 2001:DB8:1::64 remote-as 64496 | |
no neighbor 2001:DB8:1::64 activate | |
neighbor 2001:DB8:1::64 description icann | |
! | |
address-family ipv6 | |
neighbor 2001:DB8:1::64 activate | |
neighbor 2001:DB8:1::64 default-originate | |
neighbor 2001:DB8:1::64 soft-reconfiguration inbound | |
exit-address-family |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ubuntu# show interface | |
Interface eth1 is up, line protocol detection is disabled | |
index 2 metric 1 mtu 1500 | |
flags: <UP,BROADCAST,RUNNING,MULTICAST> | |
HWaddr: 08:00:27:02:e9:f2 | |
inet 192.168.1.201/24 broadcast 192.168.1.255 | |
inet6 2001:db8:1::1/64 | |
inet6 fe80::a00:27ff:fe02:e9f2/64 | |
ubuntu# show ipv6 bgp summary | |
BGP router identifier 192.168.1.201, local AS number 64497 | |
RIB entries 1, using 64 bytes of memory | |
Peers 1, using 2524 bytes of memory | |
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd | |
2001:db8:1::64 4 64496 19 20 0 0 0 00:02:54 1 | |
Total number of neighbors 1 | |
ubuntu# show ipv6 bgp | |
BGP table version is 0, local router ID is 192.168.1.201 | |
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, | |
r RIB-failure, S Stale, R Removed | |
Origin codes: i - IGP, e - EGP, ? - incomplete | |
Network Next Hop Metric LocPrf Weight Path | |
*> 2001:db8::/48 2001:db8:1::64 0 0 64496 i | |
Total number of prefixes 1 | |
ubuntu# show ipv6 route | |
Codes: K - kernel route, C - connected, S - static, R - RIPng, O - OSPFv3, | |
I - ISIS, B - BGP, * - FIB route. | |
C>* ::1/128 is directly connected, lo | |
B>* 2001:db8::/48 [20/0] via fe80::7c52:97ff:fe39:f4b7, eth1, 00:02:59 | |
C>* 2001:db8:1::/64 is directly connected, eth1 | |
C>* fe80::/64 is directly connected, eth1 | |
ubuntu# quit | |
root@ubuntu:~# ping6 -c1 2001:DB8::42 | |
PING 2001:DB8::42(2001:db8::42) 56 data bytes | |
From 2001:db8:1::1 icmp_seq=1 Destination unreachable: Address unreachable | |
--- 2001:DB8::42 ping statistics --- | |
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
show interface | |
Interface eth1 is up, line protocol detection is disabled | |
index 2 metric 1 mtu 1500 | |
flags: <UP,BROADCAST,RUNNING,MULTICAST> | |
HWaddr: 08:00:27:02:e9:f2 | |
inet 192.168.1.201/24 broadcast 192.168.1.255 | |
inet6 2001:db8:1::1/64 | |
inet6 fe80::a00:27ff:fe02:e9f2/64 | |
Interface lo is up, line protocol detection is disabled | |
index 1 metric 1 mtu 16436 | |
flags: <UP,LOOPBACK,RUNNING> | |
inet 127.0.0.1/8 | |
inet6 ::1/128 | |
ubuntu# show ipv6 bgp summary | |
BGP router identifier 192.168.1.201, local AS number 64497 | |
RIB entries 1, using 64 bytes of memory | |
Peers 1, using 2524 bytes of memory | |
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd | |
2001:db8:1::64 4 64496 31 34 0 0 0 00:02:57 1 | |
Total number of neighbors 1 | |
ubuntu# show ipv6 bgp | |
BGP table version is 0, local router ID is 192.168.1.201 | |
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, | |
r RIB-failure, S Stale, R Removed | |
Origin codes: i - IGP, e - EGP, ? - incomplete | |
Network Next Hop Metric LocPrf Weight Path | |
*> 2001:db8::/48 2001:db8:1::64 0 0 64496 i | |
Total number of prefixes 1 | |
ubuntu# show ipv6 route | |
Codes: K - kernel route, C - connected, S - static, R - RIPng, O - OSPFv3, | |
I - ISIS, B - BGP, * - FIB route. | |
C>* ::1/128 is directly connected, lo | |
B>* 2001:db8::/48 [20/0] via fe80::a00:27ff:fe15:bd18, eth1, 00:03:02 | |
C>* 2001:db8:1::/64 is directly connected, eth1 | |
C>* fe80::/64 is directly connected, eth1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The primary network interface | |
auto eth1 | |
iface eth1 inet static | |
address 192.168.1.201/24 | |
gateway 192.168.1.1 | |
iface eth1 inet6 static | |
address 2001:DB8:1::1/64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ubuntu# show interface | |
Interface eth1 is up, line protocol detection is disabled | |
index 2 metric 1 mtu 1500 | |
flags: <UP,BROADCAST,RUNNING,MULTICAST> | |
HWaddr: 08:00:27:02:e9:f2 | |
inet 192.168.1.201/24 broadcast 192.168.1.255 | |
inet6 2001:db8:1::1/64 | |
inet6 fe80::a00:27ff:fe02:e9f2/64 | |
ubuntu# show ipv6 bgp summary | |
BGP router identifier 192.168.1.201, local AS number 64497 | |
RIB entries 1, using 64 bytes of memory | |
Peers 1, using 2524 bytes of memory | |
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd | |
2001:db8:1::64 4 64496 9 10 0 0 0 00:06:25 1 | |
Total number of neighbors 1 | |
ubuntu# show ipv6 bgp | |
BGP table version is 0, local router ID is 192.168.1.201 | |
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, | |
r RIB-failure, S Stale, R Removed | |
Origin codes: i - IGP, e - EGP, ? - incomplete | |
Network Next Hop Metric LocPrf Weight Path | |
*> 2001:db8::/48 2001:db8:1::64 0 0 64496 i | |
Total number of prefixes 1 | |
ubuntu# show ipv6 route | |
Codes: K - kernel route, C - connected, S - static, R - RIPng, O - OSPFv3, | |
I - ISIS, B - BGP, * - FIB route. | |
C>* ::1/128 is directly connected, lo | |
B>* 2001:db8::/48 [20/0] via fe80::a00:27ff:fe15:bd18, eth1, 00:06:38 | |
C>* 2001:db8:1::/64 is directly connected, eth1 | |
C>* fe80::/64 is directly connected, eth1 | |
root@ubuntu:~# ping6 -c 1 2001:DB8::42 | |
PING 2001:DB8::42(2001:db8::42) 56 data bytes | |
64 bytes from 2001:db8::42: icmp_seq=1 ttl=255 time=0.416 ms | |
--- 2001:DB8::42 ping statistics --- | |
1 packets transmitted, 1 received, 0% packet loss, time 0ms | |
rtt min/avg/max/mdev = 0.416/0.416/0.416/0.000 ms | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment