adding ibgp interface to frrconfig and fixing syntax in up1-interfaces config

This commit is contained in:
toby 2018-10-19 23:01:19 +02:00
parent ea89e74311
commit aa0bef898b
1 changed files with 10 additions and 2 deletions

View File

@ -137,11 +137,11 @@ case "$1" in
cat <<-EOF >>$IFCONFIG
auto $ifname
iface $ifname inet static
address $ipv4
address ${ipv4/\\/}
mtu 9000
iface $ifname inet6 static
address $ipv6
address ${ipv6/\\/}
EOF
@ -150,6 +150,14 @@ case "$1" in
if [[ $ifname = ibgp? ]]; then
## build FRR interface config to enable ND adv for ipv6 unmanaged
FRR_IFS="${FRR_IFS}interface $ifname\n"
FRR_IFS="${FRR_IFS} description $ifalias\n"
FRR_IFS="${FRR_IFS} ipv6 nd ra-interval 10\n"
FRR_IFS="${FRR_IFS} no ipv6 nd suppress-ra\n!\n"
cat <<-EOF >>$IFCONFIG
auto $ifname
iface $ifname inet manual