adding ibgp interface to frrconfig and fixing syntax in up1-interfaces config
This commit is contained in:
parent
ea89e74311
commit
aa0bef898b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue