Changed ip, internet connection problem

Discussion in 'Installation/Configuration' started by Eric Pinxteren, Oct 13, 2009.

  1. Eric Pinxteren

    Eric Pinxteren New Member

    Hallo,

    I recently installed a new server with ispconfig 3, everything worked fine. I run multiple websites with different clients and multiple mail and ftp users. But I just changed my server ip address and gateway configuration, and can’t connect to server with ftp or send/receive mail.

    I think I don’t have internet connection on my linux system, what is strange because I can connect to the different websites on server and get a connection with putty. if I am logged on the server, I can’t get a connection with different aps like apt-get update,links, or wget.

    This are the configurations I changed:

    From:
    Code:
    # This file describes the network interfaces available on your system
    # and how to activate them. For more information, see interfaces(5).
    
    # The loopback network interface
    auto lo
    iface lo inet loopback
    
    # The primary network interface
    #allow-hotplug eth0
    auto eth0
    iface eth0 inet static
            address 192.168.120.120
            netmask 255.255.255.0
            network 129.168. 120.0
            broadcast 192.168. 120.255
            gateway 192.168. 120.1
    
    To:
    Code:
    # This file describes the network interfaces available on your system
    # and how to activate them. For more information, see interfaces(5).
    
    # The loopback network interface
    auto lo
    iface lo inet loopback
    
    # The primary network interface
    #allow-hotplug eth0
    auto eth0
    iface eth0 inet static
            address 192.168.2.120
            netmask 255.255.255.0
            network 129.168.2.0
            broadcast 192.168.2.255
            gateway 192.168.2.254
    
    After that I did:
    Code:
    /etc/init.d/networking restart
    
    And changed the host
    From:
    Code:
    127.0.0.1       localhost.localdomain   localhost
    192.168.120.120   LinuxServer.j2e.nl      LinuxServer
    
    To:
    Code:
    127.0.0.1       localhost.localdomain   localhost
    192.168.2.120   LinuxServer.j2e.nl      LinuxServer
    
    And did:
    Code:
    echo LinuxServer.j2e.nl      > /etc/hostname
    /etc/init.d/hostname.sh start
    
    I hope you can help me, thanks in advance
     
  2. Franz

    Franz Member

    did you change DNS record, or external IP was not changet?
     
  3. Eric Pinxteren

    Eric Pinxteren New Member

    I’m new to servers and Linux, i did not work with the tab DNS in ISPconfig. And yes my external ip has changed, but I don’t think that’s the problem?, I don’t have internet from inside the server..
     
  4. Franz

    Franz Member

    can you ping, like ping google.com?
     
  5. Eric Pinxteren

    Eric Pinxteren New Member

    No i can't ping any website on wan.., i can ping in the lan.
     
  6. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    Please make sure that you entered the IP of a working and reachable external DNS Server in the /etc/resolv.conf file on your Linux server.
     

Share This Page