subnet-up invocations
Nikolaus Rath
Nikolaus at rath.org
Fri Jul 20 15:38:09 CEST 2012
Guus Sliepen <guus-NnCthlHDAqpg9hUCZPvPmw at public.gmane.org> writes:
> On Tue, Jul 17, 2012 at 09:29:11AM -0400, Nikolaus Rath wrote:
>
>> I'm confused by the subnet-up calls made by tinc. I was assuming that
>> I'd be called once when it connects to another node. However, subnet-up
>> appears to be called much more often than that.
>>
>> For example, I have the following configuration:
>>
>> ,----
>> | $ cat tinc.conf
>> | ConnectTo = spitzer
>> | Name = chronos
>> | Mode = switch
>> |
>> | $ cat hbt/hosts/spitzer
>> | address = spitzer.ap.columbia.edu
>> | Compression = 11
>> | Cipher = AES128
>> | Subnet = 192.168.1.2/32
>> | Subnet = 192.168.1.0/24#15
>
> You are using Mode = switch. This means tinc nodes are learning MAC addresses,
> and they are spread around as Subnets. That is why you are seeing MAC addresses
> when subnet-up is called.
>
> Note that in switch mode, tinc never looks at the IP header, so the Subnet
> statements you put in the host config file do not have any effect (except that
> they do cause subnet-up to be called for them).
Ah, I see. Makes sense, thanks!
Best,
-Nikolaus
--
»Time flies like an arrow, fruit flies like a Banana.«
PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6 02CF A9AD B7F8 AE4E 425C
More information about the tinc
mailing list