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.

My problem is that I ruined my network driver or something like that . I simply sudo vi /etc/network/interfaces and edit the file like

auto eth0
iface eth0 inet static
    address 192.168.1.100
    netmask 255.255.255.0
    network 192.168.1.0
    broadcast 192.168.1.255
    gateway 192.168.1.1

I didn't change netmask and broadcast.

After that I issued the command sudo /etc/init.d/networking restart.

Then Ubuntu crashed. It didn't show a thing only a terminal that's not responding. I restarted the system and there wasn't a sign that he could possibly connect to the Internet. Please help me. How I can make my Ubuntu 12.10 HP laptop and make the IP address a static IP address?

share|improve this question
    
Please, can you specify what kind of Ubuntu distribution you are using. –  martin-mystere Dec 14 '12 at 8:23
    
@martin I installed ubuntu 12.10 and didn't change much or istn't that not what you're meaning –  TimbooXD Dec 14 '12 at 15:27
add comment

1 Answer 1

The default content of /etc/network/interfaces is

auto lo
iface lo inet loopback

If you removed those lines I imagine the lack of a loopback network might well do bad things to linux.

You can configure a static IP using the NetworkManager GUI (Network Icon->Network Settings->(Connection)->IPv4 Settings). If you want to do it manually, the syntax you describe appears correct (see man interfaces for more details).

Typically on a small network it is easier to set up a static IP by leaving the computer to use DHCP and configuring the router to assign a specific IP address based on the computer's MAC address (which the router will probably tell you, and if not can be found with ifconfig ("HWaddr") or lshw -c network ("serial")).

share|improve this answer
add comment

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.