Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

Update1:

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

1 Answer

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
10.118.136.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     1002   0        0 eth0
0.0.0.0         10.118.136.1    0.0.0.0         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 10.118.136.1).

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 255.255.255.255).

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 255.255.255.0, which is everything that starts with the same 3 octets as your VPS IP (in the example above a subnet of 10.118.136.0/24 would allow access to all IP's between 10.118.136.0 and 10.118.136.255).

share|improve this answer
    
i got 0.0.0.0 ! –  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
add comment

Your Answer

 
discard

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.