Discussion:
[rancid] Multiple devices, multiple ports, one hostname
Jeremy Visser
2014-03-28 02:00:07 UTC
Permalink
I have a number of branch locations, each with a single public IPv4 address, and am given a corresponding DNS name (siteXX.customer.com).

TCP port 22 is the SSH interface to the branch router, and TCP port 222 is NAPT-forwarded to a phone system sitting behind the router.

Currently the router is being tracked by RANCID, but I would like to track the phone system too. But I fail to see how I could do that, given they would end up having the same hostname.

Any suggestions?
Alan McKinnon
2014-03-28 06:02:23 UTC
Permalink
Post by Jeremy Visser
I have a number of branch locations, each with a single public IPv4 address, and am given a corresponding DNS name (siteXX.customer.com).
TCP port 22 is the SSH interface to the branch router, and TCP port 222 is NAPT-forwarded to a phone system sitting behind the router.
Currently the router is being tracked by RANCID, but I would like to track the phone system too. But I fail to see how I could do that, given they would end up having the same hostname.
Any suggestions?
Add a customized entry to DNS for the phone system, perhaps something
along the lines of siteXX.YY.customer.com where YY is a suitable
decorator for the phone system.

If you can't change DNS then you could use the local /etc/hosts file.
Ugly, but works
--
Alan McKinnon
***@gmail.com
Loading...