Community discussions

MikroTik App
 
krakenant
Member Candidate
Member Candidate
Topic Author
Posts: 135
Joined: Sat Feb 06, 2010 6:32 am

EOIP Tunnel ID

Tue Dec 04, 2012 8:33 pm

Would it be possible to increase the allowable numbers for the tunnel ID above 65,535?
 
User avatar
cbrown
Trainer
Trainer
Posts: 1839
Joined: Thu Oct 14, 2010 8:57 pm
Contact:

EOIP Tunnel ID

Tue Dec 04, 2012 11:53 pm

Why does it matter? Just curious..
 
krakenant
Member Candidate
Member Candidate
Topic Author
Posts: 135
Joined: Sat Feb 06, 2010 6:32 am

Re: EOIP Tunnel ID

Thu Dec 06, 2012 10:24 pm

We have a database we keep all of our units in, we use an arbitrary (read sequential) numbering system. We use these arbitrary numbers as reference numbers and as the tunnel ID in reference to the unit. We are nearing the point where any new units won't be able to use existing scripts and EOIP tunnels due to this.
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: EOIP Tunnel ID

Fri Dec 07, 2012 12:11 pm

I think, there's only 2 bytes in EoIP header for TunnelID, so it's not possible to increase the limit
 
syadnom
Forum Veteran
Forum Veteran
Posts: 802
Joined: Thu Jan 27, 2011 7:29 am

Re: EOIP Tunnel ID

Fri Dec 28, 2012 11:29 pm

We have a database we keep all of our units in, we use an arbitrary (read sequential) numbering system. We use these arbitrary numbers as reference numbers and as the tunnel ID in reference to the unit. We are nearing the point where any new units won't be able to use existing scripts and EOIP tunnels due to this.
do not use foreign data as your unique id in your database. id should be it's own thing, usually start at 1 increment by 1, and a different column should store your tunnel id. This way you can set the tunnel id as the lowest available number and recycle ids. also, this is good db design so do it anyway.

Who is online

Users browsing this forum: Bing [Bot], connectlife, critter, maigonis, mfischer, mquan1984, Nullcaller, raimondsp and 85 guests