/etc vs /usr/local/etc
frr n00b here setting up frr as a debian12 amd64 kvm image. and it was working from the packaged binary. cool beans. except i run is-is, which means i had to build from source (which jammed on `rtrlib` needing a version of `libssh` i still need to find. but i disabled rpki <blush>), and completed the build and install on branch `stable/10.0`. it blows chunks on start cannot run start: /usr/local/etc/frr/daemons does not exist the binary package for deb12 put configs in `/etc/frr`, not `/usr/local/etc/frr`, and that's kinda the debian way. (yes, i used to love freebsd, but ...) a bit of poking finds that it installed and expects `/usr/local/...` for everything. and i see no `./configure` option to set `PREFIX`. so i hack `./configure` - ac_default_prefix=/usr/local + ac_default_prefix= it builds and installs, but then i find myself at the top of what looks like a much deeper rabbit hole. frr.service: Failed to locate executable /usr/local/sbin/frrinit.sh: No such file or directory clue bat appreciated. randy
On 05 May 2024, at 20:54, Randy Bush <randy@psg.com> wrote:
frr n00b here
setting up frr as a debian12 amd64 kvm image. and it was working from the packaged binary. cool beans.
except i run is-is, which means i had to build from source
Hmm… Which binary package and version did you use that you required to rebuild for IS-IS ? Been testing it using the FRR deb packages and the ones in ProxMox/Debian (think 8.5) and I was using/testing/working with IS-IS, unless you are using diffrent settings than the default
this whole thing was my bad. i read that isisd needed to be started before zebra, tried to start it manually, and it was not on system `$PATH`. i should have trusted frr to just start the darned thing from `/usr/lib/frr` because it was in `/etc/frr/daemons`. r2# show isis database Area p1: IS-IS Level-2 link-state database: LSP ID PduLen SeqNumber Chksum Holdtime ATT/P/OL r1.dfw.00-00 185 0x00046bb4 0xb3dc 1193 0/0/0 r3.dfw.rg.net.00-00 * 122 0x00000010 0x9c53 973 0/0/0 r3.dfw.rg.net.02-00 * 73 0x00000006 0xedb3 935 0/0/0 r4.dfw.00-00 179 0x000001d9 0x37e6 950 0/0/0 r2.dfw.00-00 204 0x000467e1 0xbf7e 950 0/0/0 5 LSPs as i said, frr n00b here. apologies. randy
fwiw, from no previous hands on with frr, i now have is-is and bgp v4 and v6 peerings up against junos and ios/xr routers and running quite happily color me impressed still a lot to learn, of course. this evening's nit is why does the result of `show running-config` and a `write mem` differ from `/etc/frr/frr.conf` in minor ways, such as % diff -u sh-run frr.conf --- sh-run 2024-05-05 16:25:30 +++ frr.conf 2024-05-05 16:24:13 @@ -3,8 +3,8 @@ hostname r3.dfw.rg.net log syslog informational service password-encryption -hostname r3 -domainname dfw.rg.net +hostname r2 +domainname iad.rg.net service integrated-vtysh-config randy
% diff -u sh-run frr.conf --- sh-run 2024-05-05 16:25:30 +++ frr.conf 2024-05-05 16:24:13 @@ -3,8 +3,8 @@ hostname r3.dfw.rg.net log syslog informational service password-encryption -hostname r3 -domainname dfw.rg.net +hostname r2 +domainname iad.rg.net service integrated-vtysh-config
doh. /etc/frr/vtysh.conf <blush>
On 06 May 2024, at 01:28, Randy Bush <randy@psg.com> wrote:
still a lot to learn, of course. this evening's nit is why does the result of `show running-config` and a `write mem` differ from `/etc/frr/frr.conf` in minor ways, such as
% diff -u sh-run frr.conf --- sh-run 2024-05-05 16:25:30 +++ frr.conf 2024-05-05 16:24:13 @@ -3,8 +3,8 @@ hostname r3.dfw.rg.net log syslog informational service password-encryption -hostname r3 -domainname dfw.rg.net +hostname r2 +domainname iad.rg.net service integrated-vtysh-config
Hmmm… it seems that hostname/dommainname aren’t saved (at least for 10.0.0) from vtysh, and it’s also note persistent, ie, you exit the vtysh, and it’s gone the next invocation of vtysh
participants (2)
-
hvjunk -
Randy Bush