HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   Changed ip, internet connection problem (http://www.howtoforge.com/forums/showthread.php?t=40084)

Eric Pinxteren 13th October 2009 20:52

Changed ip, internet connection problem
 
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

Franz 13th October 2009 20:56

did you change DNS record, or external IP was not changet?

Eric Pinxteren 13th October 2009 22:46

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

Franz 13th October 2009 22:51

can you ping, like ping google.com?

Eric Pinxteren 14th October 2009 09:07

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

till 14th October 2009 09:10

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.


All times are GMT +2. The time now is 16:46.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.