Configuring Network Card

Discussion in 'Installation/Configuration' started by dclardy, Jan 9, 2010.

  1. dclardy

    dclardy Member

    How do I configure a static IP address on a Debian Lenny server?

    I thought that was the correct information.
    Code:
    # The primary network interface
    # allow-hotplug eth0
    #iface eth0 inet dhcp
    auto eth0
    iface eth0 inet static
            address 208.33.73.159
            netmask 255.255.255.192
            gateway 208.33.73.129
    It does not allow me to actually connect to the internet. I can get this setup in my Ubuntu Desktop just fine. Any ideas on what I am missing?

    This is the output of ifconfig:
    Code:
    eth0      Link encap:Ethernet  HWaddr 00:11:85:ea:d2:d2  
              inet addr:208.33.73.159  Bcast:208.33.73.191  Mask:255.255.255.192
              inet6 addr: fe80::211:85ff:feea:d2d2/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:645 errors:0 dropped:0 overruns:0 frame:0
              TX packets:805 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:119708 (116.9 KiB)  TX bytes:109296 (106.7 KiB)
              Interrupt:31 
    
    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:15 errors:0 dropped:0 overruns:0 frame:0
              TX packets:15 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0 
              RX bytes:1262 (1.2 KiB)  TX bytes:1262 (1.2 KiB)
    Thanks.
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Are the netmask and gateway correct? Did your hoster give you these details?

    Here's a useful network calculator: http://subnetmask.info/
     

Share This Page