LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-06-2009, 07:02 AM   #1
tebucky
Member
 
Registered: Mar 2004
Posts: 89

Rep: Reputation: 15
Ubuntu static IP address assignment error


I'm trying to assign a static IP to my ubuntu box (8.10). Here are the steps to this point:

cat etc/network/interfaces

#the loopback network interface
auto lo
iface lo inet loopback
#the primary network interface
iface eth0 inet static
address 192.168.1.102
netmask 255.255.255.0
gateway 192.168.1.1

root@chach:/etc# /etc/init.d/networking restart
* Reconfiguring network interfaces...
* Stopping the Firestarter firewall...
...done.
* Starting the Firestarter firewall...
...done.
RTNETLINK answers: No such process
SIOCDELRT: No such process


I'm not sure what these errors are or how to get around them. Can anyone point me in the right direction?

TIA!
 
Old 08-06-2009, 09:40 AM   #2
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Quote:
#the loopback network interface
auto lo
iface lo inet loopback
#the primary network interface
iface eth0 inet static
address 192.168.1.102
netmask 255.255.255.0
gateway 192.168.1.1
you have a line missing;

#the loopback network interface
auto lo
iface lo inet loopback
#the primary network interface
->auto eth0; missing line
iface eth0 inet static
address 192.168.1.102
netmask 255.255.255.0
gateway 192.168.1.1

Restart networking; if still fails then do ifconfig -a and see if udev is seeing this card and allocating a different eth number to it; you can then replace the number (0) with the number assigned by udev.
 
Old 08-06-2009, 10:43 AM   #3
tebucky
Member
 
Registered: Mar 2004
Posts: 89

Original Poster
Rep: Reputation: 15
Worked like a charm! Many thanks......
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Do I have to have static IP assignment to auto-mount Samba shares? buccaneere Linux - Networking 1 03-31-2009 12:29 PM
Static IP address in Ubuntu Russ Linux - Networking 3 03-01-2009 07:27 AM
No Internet access after static IP assignment tron_thomas Linux - Networking 7 05-30-2007 01:30 AM
Assignment of IP-Address santosh_pn Linux - Software 4 06-16-2005 11:22 AM
static local ip assignment??? dslboy Linux - Networking 1 08-29-2004 03:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration