PDA

View Full Version : [ubuntu] Static IP problems



Shindokaku
January 29th, 2012, 05:47 PM
I'm trying to set up a static IP for my server running Ubuntu Server 10.04. I've tried many google searches but nothing seems to work.
When I try to vi /ect/network/interfaces it tells me that i cannot open file for editing or something like that.
When I try to cd to /ect/network it tells me no such file or directory.

Please note that I am new to the whole server thing so please try to keep answers/replies simple.

Cheesemill
January 29th, 2012, 06:41 PM
Take a look here:
http://www.howtogeek.com/howto/ubuntu/change-ubuntu-server-from-dhcp-to-a-static-ip-address/

2F4U
January 29th, 2012, 06:58 PM
It should be /etc/network/interfaces and you should place sudo before the command, since this is a system file and you need to edit it with administrator privileges.

Shindokaku
January 29th, 2012, 09:04 PM
Take a look here:
http://www.howtogeek.com/howto/ubuntu/change-ubuntu-server-from-dhcp-to-a-static-ip-address/

That's one of the ones I was trying...


It should be /etc/network/interfaces and you should place sudo before the command, since this is a system file and you need to edit it with administrator privileges.

Tried:
sudo vi /ect/network/interfaces didn't work, "E212 Can't open file for writing"
I already tried editing this after I did the "sudo su" command, and the sudo command.

If there's any additional information I need to provide please ask...

shumifan50
January 29th, 2012, 09:36 PM
Watch out for reversed chars it is NOT /ect it IS /etc

Shindokaku
January 29th, 2012, 10:10 PM
Watch out for reversed chars it is NOT /ect it IS /etc

Thank you, i kept reading it as /ect

Before I make any changes could someone look and see if this looks ok:


address 192.168.1.103
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1

shumifan50
January 29th, 2012, 10:59 PM
It looks OK but it will depend on the IPs you are using in your network. The settings you show will work where the IPs are 192.168.1.xxx