Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Alright, I'll try to explain as best I can what's going on here - I'm relatively new to Linux, but I am familiar with networking.

I'm setting up an old work box as a home-based web server. I started setting it up at the office, and was puzzled that it wouldn't take my static IP - instead, it would receive a DHCP address. No problem, I thought - I'll sort that out at home.

Now that I'm at home, I can't even get it to take a DHCP address within the scope of my home network. I've been through post after post looking for a solution over the past week, all to no avail. In fact, the only times I've been able to see the internet from this thing, ifconfig and the NM GUI have reported the machine as having an IP that looks an awful lot like my external Comcast IP ... which I don't even understand.

I'm not sure what all people might want to see for diagnostic purposes, but I'll post the contents of /etc/network/interfaces, /etc/NetworkManager/NetworkManager.conf and ifconfig for you to start, even though it's all going to reflect the static address that doesn't work. I'll change it around again if anyone would like to see that - I must have changed ifupdown:managed from false to true and back again a hundred times. Anything else you need, please ask!

Just to be clear, the ultimate goal here is to sit this guy at a static address (my preference is 215, just fyi) on my LAN and to set up port forwarding so I can SSH into it remotely and hit it from the web using a domain I have sitting around.

Thanks again for your help!

/etc/network/interfaces

# Loopback
auto lo
iface lo inet loopback

# Primary
auto eth0
iface eth0 inet static
address 192.168.1.215
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 8.8.8.8 192.168.1.1

/etc/NetworkManager/NetworkManager.conf

[main]
plugins=ifupdown,keyfile
dns=dnsmasq

[ifupdown]
managed=true

ifconfig

inet addr:192.168.1.215  Bcast:192.168.1.255  Mask:255.255.255.0
UP BROADCAST MULTICAST  MTU:1500  Metric:1
(all the packet info is 0)
Interrupt:21  Memory:f7fe0000-f8000000
share|improve this question
    
Oh, jeez. In my attempt to be thorough, I left out another confusing component. I've started getting these system notifiers saying "System program problem detected. Do you want to report the problem now?", but I can't get it to give me any details about it. It's frustratingly vague :/ I'm debating a clean install - I just have to make another disc or USB thing. –  Ratmak Jul 6 '13 at 2:44
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.