Am 24.03.2025 00:24 schrieb Diana Eichert:
Am I missing something or is this the only way to automatically bring up a pair(4) patch?find /etc -name '*.pair*' -print -exec cat {} \; /etc/hostname.pair0 rdomain 0
group pair lladdr 00:00:C0:44:44:00
group and lladdr is optional
inet 10.1.1.0/31 up
up is implied when setting inet/inet6
/etc/hostname.pair44 rdomain 44 group pair patch pair0
this is the key line to "patch" those two together
lladdr 00:00:C0:44:00:44 inet 10.1.1.1/31 up !ifconfig pair0 patch pair44
and the above would just do the same again as 'patch pair0'
!route -q -T 0 add -inet 44.31.83.0/24 10.1.1.1
So not much to reduce - yet that extra !ifconfig could be painful when you start changing things inconsistently -- pb

