New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Find the Gateway IP in OpenVZ?
Hi Guys,
I'm trying to find my Gateway IP on an OpenVZ vps, however not having much luck.
joel:/etc# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 venet0
I did a traceroute out of the box as well.
traceroute yahoo.com traceroute to yahoo.com (98.139.180.149), 30 hops max, 60 byte packets 1 ny12.webrulon.com (199.167.198.23) 0.064 ms 0.014 ms 0.012 ms 2 vl204.mag01.jfk01.atlas.cogentco.com (38.104.167.93) 0.951 ms 0.947 ms 0.930 ms 3 te2-1.mpd01.jfk01.atlas.cogentco.com (154.54.80.85) 202.083 ms 202.111 ms 202.293 ms
However i'm guessing that 199.167.180.149 is the Node's IP address. So any pointers as to how I can land the Gateway IP ?
Comments
Take your Vps ip, and change the last digit to .254
@birdie25 not allways... in our case the gateway is the main IP of the cluster finished in .254 but we can provide IP's for the VPS inside the cluster in different class A ranges.
Does the "ifconfig" command show gateway Information?
Hehe, the weird routing in openVZ.
AFAIK, do a traceroute anywhere and take the 1st hop.
I think you're right 199.167.198.23, is the main server's IP.. to get the gateway you would have to do the traceroute from within 199.167.198.23.. or maybe you can just ask AlienVPS?
Thanks guys, i've taken this directly to a Bind9 discussion, any help appreciated.
http://www.lowendtalk.com/discussion/1007/help-setting-up-bind9-what-am-i-doing-wrong