Find the answer to your Linux question:
Results 1 to 3 of 3
I setup a server last night and was able to remotely connect to it and access the internet with it. However, now that I have setup /etc/network/interfaces so that the ...
  1. #1
    Linux Enthusiast flipjargendy's Avatar
    Join Date
    Aug 2004
    Location
    Xanadu, Titan, Saturn
    Posts
    610

    Server setup with static IP not accessible and cannot access internet

    I setup a server last night and was able to remotely connect to it and access the internet with it. However, now that I have setup /etc/network/interfaces so that the server will have a static IP address, I cannot access the server remotely. Also, from the server itself, I cannot access the internet. Ping provides "unkown host" for any website I try. How do I fix this?! I don't know why this is happening.

    Here is my interfaces file:

    Code:
    ...
    #The primary network interface
    allow-hotplug eth0
    # also tried with and without auto eth0
    # auto eth0
    iface eth0 inet static
      address 192.168.133
      netmask 225.225.225.0
      gateway 192.168.1.1
    This is the only NIC on the server. Here is ifconfig:

    Code:
    eth0
    Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:xx
    inet addr: 192.168.1.133 Bcast:192.168.1.225 Mask:225.225.225.0
    UP BROACAST MULTICAST MTU:1500 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 txpueuelen:1000
    RX bytes:0 (0.0 B) TX bytes: 0 (0.0 B)
    Interupt: 29
    
    lo ....
    Last edited by flipjargendy; 01-22-2011 at 05:46 PM.
    Running Linux Since 2001®
    Registered Linux User #430868 - Since 9•12•06

  2. #2
    Linux Enthusiast flipjargendy's Avatar
    Join Date
    Aug 2004
    Location
    Xanadu, Titan, Saturn
    Posts
    610
    Okay, that was stupid. From now on I will only be using a subnet mask of 255.255.255.0 instead of 225...etc.
    Running Linux Since 2001®
    Registered Linux User #430868 - Since 9•12•06

  3. #3
    Trusted Penguin elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    2,296
    IP Address looks odd too unless that's a shorthand notation?
    If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)


    My new blog. It's probably not as good as I think it is.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •