Manual Chapter :
Configuring BGP and BFD with tmsh
Applies To:
Show Versions
Configuring BGP and BFD with tmsh
ZebOS IMI will still exist in read-only mode, but IMI and tmsh/iControl® REST are mutually exclusive, so you will need to migrate your ZebOS configuration.
Note: The routing configuration cannot
be synchronized across a device cluster.
Move ZebOS BGP and BFD routing configuration to tmsh
The
same commands used in ZebOS imish for BGP and BFD can be used in tmsh with a few exceptions. You will have to create a new deployment
because migration compatibility is not yet available.
Note: Currently BGP
and BFD are the only supported protocols available for configuration in tmsh.
Here is an example of a router and its
configuration in tmsh:
net routing bgp testBGP {
address-family {
ipv4 {
redistribute {
kernel { }
static { }
}
}
ipv6 {
redistribute {
connected { }
}
}
}
graceful-restart {
graceful-reset enabled
restart-time 101
stalepath-time 44
}
local-as 123
neighbor {
5:6:7::8 {
address-family {
ipv4 {
activate disabled
}
ipv6 { }
}
remote-as 114
}
1.2.3.4 {
address-family {
ipv4 { }
ipv6 {
activate disabled
}
}
remote-as 113
}
}
profile bgp
route-domain 0
}
Here
is the above router's ZebOS equivalent
:! service password-encryption ! bgp extended-asn-cap ! router bgp 123 bgp graceful-restart restart-time 101 bgp graceful-restart stalepath-time 44 bgp graceful-restart graceful-reset redistribute kernel redistribute static neighbor 1.2.3.4 remote-as 113 neighbor 5:6:7::8 remote-as 114 no neighbor 5:6:7::8 activate no neighbor 5:6:7::8 capability graceful-restart ! address-family ipv6 redistribute connected no neighbor 1.2.3.4 activate no neighbor 1.2.3.4 capability graceful-restart neighbor 5:6:7::8 activate exit-address-family ! line con 0 login line vty 0 39 login ! end
Restore the original ZebOS routing configuration from tmsh
The routing config sync status is in the prompt.
If you encounter a config sync failure that you are not able to fix, or if you need to
return to your original ZebOS BGP routing configuration, you can restore the ZebOS
configuration with the backed up file. Restoring a UCS should fully restore the ZebOS
configuration. Note that restoring a UCS will interrupt routing. For more information on
restoring using UCS, see https://support.f5.com/csp/article/K13132.