summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Jakma <paul.jakma@sun.com>2008-06-12 18:53:09 +0000
committerPaul Jakma <paul.jakma@sun.com>2008-06-12 18:53:09 +0000
commitce9c3cc5d96ea417727347923a42f10d56e631fd (patch)
treed43a3214b29dd29fa2ac53a317d19f0702f95381
parent3d8d4b23029250be2e3dfc285279b931feb6d7b9 (diff)
[tools/multiple-bgpd] setup IPv6 advertisments
-rw-r--r--tools/multiple-bgpd.sh19
1 files changed, 18 insertions, 1 deletions
diff --git a/tools/multiple-bgpd.sh b/tools/multiple-bgpd.sh
index a91e496b..001e91c6 100644
--- a/tools/multiple-bgpd.sh
+++ b/tools/multiple-bgpd.sh
@@ -9,6 +9,7 @@ BGPD=/path/to/bgpd
PREFIX=192.168.145
CONFBASE=/tmp
PIDBASE=/var/run/quagga
+CHOWNSTR=quagga:quagga
for H in `seq 1 ${NUM}` ; do
CONF="${CONFBASE}"/bgpd${H}.conf
@@ -41,8 +42,24 @@ for H in `seq 1 ${NUM}` ; do
neighbor ${NEXTADDR} peer-group default
neighbor ${PREVADDR} remote-as ${PREVAS}
neighbor ${PREVADDR} peer-group default
+ !
+ address-family ipv6
+ network fffe:${H}::/48
+ network fffe:${H}:1::/48 pathlimit 1
+ network fffe:${H}:2::/48 pathlimit 3
+ network fffe:${H}:3::/48 pathlimit 3
+ neighbor default activate
+ neighbor default capability orf prefix-list both
+ neighbor default default-originate
+ neighbor ${NEXTADDR} peer-group default
+ neighbor ${PREVADDR} peer-group default
+ exit-address-family
+ !
+ line vty
+ !
+ end
EOF
- chown quagga:quagga "$CONF"
+ chown ${CHOWNSTR} "$CONF"
fi
# You may want to automatically add configure a local address
# on a loop interface.