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.
Please help me on this
I have a VPS that I can access it by VNC but it's network is dead.
I changed that IP setting and reboot. I can ping that public gateway but in my VPS, I can not ping any IP.
My IP configure is like this(/etc/network/interfaces)
public IP
auto eth0
iface eth0 inet static
address xx.xx.xx.xx
gateway xx.xx.xx.1
netmask 255.255.255.0
private IP
auto eth0:1
iface eth0:1 inet static
address 172.16.10.xx
gateway 172.16.xx.xx
netmask 255.255.0.0
I'm confused. what can I do? If this is not a good place for asking some help, please tell me.
Thanks.
Comments
@feelapi - I'm assuming this is a debian VM, aye? Remove the gateway from the private IP, it's taking priority.
Edit: Here's an example
/etc/network/interfaces
for ya:@Aldryic, thanks for your help.
Yes, it's a debian box. I followed your guide. but the problem is still there. I can not ping any IP. I also remove all the iptables rules.
Have you restarted the network service?
@Boltersdriveer, every time I changed the interfaces file, I run command: reboot.
please run:
ifconfig -a
route -n
and show the output here?
What virtualization is used for your vps?
I got 3 pictures from VNC screen.
--deleted--
Thank you all. I have to use the pictures.
My box is KVM.
Can't access, sorry:
Wired dropbox. Let me try again.
https://skydrive.live.com/redir.aspx?cid=f2186a87a1fd55cc&resid=F2186A87A1FD55CC!192&parid=F2186A87A1FD55CC!134&authkey=!AEWXhWPXP9flqI0
It's not the first time I got this. At first, I'm happy with dhcp setting. Then one month ago, they told me that I need to setup a static IP in the file. Then I did and was happy again. Today, I lost my ip again. I did nothing just leave the VPS alone. en, it seems I need to switch it to another vendor. Hope I can get back my data.
when you try to ping your default gateway you have no reply?
Did you try to swap eth0 and eth1? (why do you have this second interface?)
@prometeus, Yes, default gateway has no reply.
one month ago. the interfaces file like this:
auto eth0
iface eth0 inet dhcp
Then one day, I lost VPS. The I was told that I need to set the IP static, then like this:
auto eth0
iface eth0 inet static
address xxx.xxx.xxx.xxx
gateway:xxx.xx.xx.xx
netmask:255.255.2550
Then I got my VPS back again. Today, My box lost again. So I have to add another private interface. But this did not work.
iptable rules are also the sources of problem.
do you have tcpdump installed in your box? if yes, try
tcpdump -i eth0
keep it running for one minute and see what happen, then do the same with
tcpdump -i eth1
BTW did you contact your provider about this problem?
@prometeus, Thank you a lots. I will try your advice.
Since my package is an unmanaged VPS, they have limited support about this. I just have little knowledge about linux.
Good news! my vps is back! Backup first ^_^