ISPConfig 3 server can't reach internet after changing ip

Discussion in 'General' started by zogthegreat, Feb 17, 2011.

  1. zogthegreat

    zogthegreat Member

    Hi everyone;

    Having a problem with my ISPConfig server. I am traveling in India for the next 6 months and I moved my physical server to my sons house. Since my son has a class A network, I changed my settings from 192.168.x.x to 10.x.x.x.

    I can ssh into the server from the local area network, however the server can't reach the internet.

    [root@server1 ~]# ping -c 3 www.google.com
    connect: Network is unreachable

    Here is the output of a couple of relevant files:

    [root@server1 ~]# ifconfig
    eth0 Link encap:Ethernet HWaddr 08:00:27:C6:1D:54
    inet addr:10.x.x.6 Bcast:10.x.x.255 Mask:255.255.255.0
    inet6 addr: fe80::a00:27ff:fec6:1d54/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:99561 errors:4 dropped:0 overruns:0 frame:0
    TX packets:5760 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:24401744 (23.2 MiB) TX bytes:429186 (419.1 KiB)
    Interrupt:169 Base address:0xd020

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

    [root@server1 ~]# cat /etc/hosts
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1 localhost.localdomain localhost
    10.x.x.6 server1.example.com server1
    ::1 localhost6.localdomain6 localhost6

    [root@server1 ~]# cat /etc/resolv.conf
    search example.com
    nameserver 10.x.x.1

    [root@server1 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
    # Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
    DEVICE=eth0
    BOOTPROTO=static
    BROADCAST=10.x.x.255
    IPADDR=10.x.x.6
    NETMASK=255.0.0.0
    NETWORK=10.x.x.1
    ONBOOT=yes
    HWADDR=08:00:27:c6:1d:54

    [root@server1 ~]# cat /etc/sysconfig/network
    NETWORKING=yes
    NETWORKING_IPV6=no
    HOSTNAME=server1.example.com
    GATEWAY=10.x.x.1

    [root@server1 ~]# /sbin/route
    Kernel IP routing table
    Destination Gateway Genmask Flags Metric Ref Use Iface
    10.x.x.0 * 255.0.0.0 U 0 0 0 eth0
    169.254.0.0 * 255.255.0.0 U 0 0 0 eth0


    Does anyone have any suggestions what is wrong?

    Thanks

    zog
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Can you ping IP addresses, e.g.:
    Code:
    ping -c4 74.125.77.99
    ?
    If so, you should try another nameserver in /etc/resolv.conf, for example 8.8.8.8 (Google nameserver).
     
  3. zogthegreat

    zogthegreat Member

    Hi falko,

    Sorry for the slow response, traveling in India, get access to the net can be problematic over here.

    Couldn't ping any external address. However, after doing some more research, I found the suggestion of adding GATEWAY= to /etc/sysconfig/network-scripts/ifcfg-eth0

    # Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
    DEVICE=eth0
    BOOTPROTO=static
    BROADCAST=10.0.x.x
    IPADDR=10.0.x.x
    NETMASK=255.255.255.0
    NETWORK=10.0.x.x
    GATEWAY=10.0.x.x
    ONBOOT=yes
    HWADDR=08:00:27:c6:1d:54

    Seems to be working fine now.

    zog
     

Share This Page