eth0 inet static----THEN WHAT NEXT.?? HEELP

Asked by wendowed

AFTER ENTERING THE DATA THAT IS NEEDED IN TO CHANGE THE DHCP TO STATIC IP, I DONT KNOW HOW TO MOVE ON FROM THERE.

I.E

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

PLEASE HELP.
WHAT SHOULD I DO NEXT TO PROCEED FROM THIS PAGE. AM TOTALLY A NOB WITH UBUNTU. AM A STATER.

THANKS

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
wendowed (nkelem) said :
#1

AFTER ENTERING THE DATA THAT IS NEEDED IN TO CHANGE THE DHCP TO STATIC IP, I DONT KNOW HOW TO MOVE ON FROM THERE.

I.E

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

PLEASE HELP.
WHAT SHOULD I DO NEXT TO PROCEED FROM THIS PAGE. AM TOTALLY A NOB WITH UBUNTU. AM A STATER.

THANKS

Revision history for this message
Sharar Ravitz (jewfro-macabbi) said :
#2

If those are the correct setting, save the file and restart networking:

sudo /etc/init.d/networking restart

But you'll need to add your isp's nameserver settings to resolv.conf:

gksudo gedit /etc/resolv.conf

enter the info

nameserver ip
nameserver ip

save the file.

Revision history for this message
wendowed (nkelem) said :
#3

thanks but how do I save the file before i restart it?

whats the command for save?

Revision history for this message
Sharar Ravitz (jewfro-macabbi) said :
#4

save it in gedit. there's a save button top left.

Can you help with this problem?

Provide an answer of your own, or ask wendowed for more information if necessary.

To post a message you must log in.