Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

trying to install tinc on VPS but config need Subnet which is modem IP i think as they entered on demo. but on my vps ping of either or don't replay. if i put it works ? (i have centOS 6)


[root@vps9605 ~]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface     U     1002   0        0 venet0         U     0      0        0 venet0
share|improve this question

Try running route -n to view your current Kernel routing table. It should list something like this:

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface   U     0      0        0 eth0     U     1002   0        0 eth0         UG    0      0        0 eth0

The value of Gateway in the last line is the "primary" gateway of your VPS (in this case it's

Please note that the /32 mentioned in the example is a so called CIDR subnet notation, it means that 32 subnet bits should be used. For an IPv4 address, there are only 32 bits and a /32 means that only that IP is also the subnet (it's full notation would be

I'm not sure wheter you are trying to setup a VPN to your hardware node or if you want to allow external VPN connections to your VPS. If it's the latter, you should be able to use the external IP address with a /32 suffix. If it's the first you should use as many bits as you want your VPN to be able to access, probably /24, equal to, which is everything that starts with the same 3 octets as your VPS IP (in the example above a subnet of would allow access to all IP's between and

share|improve this answer
i got ! – lary Dec 28 '12 at 14:33
@lary Can you paste the complete output as an update to your question? – Oldskool Dec 28 '12 at 14:35
question has been updated – lary Dec 28 '12 at 14:38
@lary Unfortunately that doesn't clarify much in this case :( I've updated the answer with some additional information about subnets in general though. Maybe it helps you understand the setting a bit more. – Oldskool Dec 28 '12 at 16:28

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.