Another question.

I used pair(4) to create a point to point connection into a different
rdomain from
rdomain 0.  I followed the man page and everything worked as expected.
( That is it worked once I discovered the typo that kept it from
working for 6 days
of banging my head on the wall ;-) )  The man page shows an example pair(4)
link from cli, however things got a little more complicated when I created
/etc/hostname.pairX and /etc/hostnameY.  You can't create a patch connection
until both interfaces are created, so this is what I came up with.  I create the
first pair(4) interfaces, then when the second pair(4) interface comes
up I patch
the first pair(4) interface from a shell command in the second pair(4)
hostname.if.
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
inet 10.1.1.0/31
up
/etc/hostname.pair44
rdomain 44
group pair
patch pair0
lladdr 00:00:C0:44:00:44
inet 10.1.1.1/31
up
!ifconfig pair0 patch pair44
!route -q -T 0 add -inet 44.31.83.0/24 10.1.1.1

73
diana
KI5PGJ

<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virus-free.www.avg.com
<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

Reply via email to