Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Please help me on this
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.

Please help me on this

feelapifeelapi Member
edited April 2012 in General

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

  • AldryicAldryic Member
    edited April 2012

    @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:

    auto eth0
    iface eth0 inet static
            address 205.B.C.D
            netmask 255.255.255.0
            network 205.B.C.0
            broadcast 205.B.C.255
            gateway 205.B.C.1
            dns-nameservers 8.8.8.8 8.8.4.4 4.2.2.1
    
    auto eth0:internal
    iface eth0:internal inet static
            address 172.B.C.D
            network 172.B.C.0
            broadcast 172.B.C.255
            netmask 255.255.0.0
    
  • feelapifeelapi Member
    edited April 2012

    @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.

  • prometeusprometeus Member, Host Rep

    please run:
    ifconfig -a

    route -n

    and show the output here?

    What virtualization is used for your vps?

  • feelapifeelapi Member
    edited April 2012

    I got 3 pictures from VNC screen.

    --deleted--

    Thank you all. I have to use the pictures.
    My box is KVM.

  • quirkyquarkquirkyquark Member
    edited April 2012

    @feelapi said: I got 3 pictures from VNC screen.

    Can't access, sorry:

    Error
    Something went wrong. Don't worry, your files are still safe and the Dropboxers have been notified. Check out our Help Center and forums for help, or head back to home.

  • 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.

  • prometeusprometeus Member, Host Rep

    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.

  • prometeusprometeus Member, Host Rep

    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?

  • feelapifeelapi Member
    edited April 2012

    @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 ^_^

Sign In or Register to comment.