LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-14-2013, 10:14 PM   #1
Huamin
Member
 
Registered: May 2011
Posts: 562

Rep: Reputation: 12
Problem to set static IP


Hi,
I've followed the steps in this to set one static IP for eth0
http://thedaneshproject.com/posts/ho...c-ip-in-linux/

and here is ifcfg-eth0 file
DEVICE=eth0
BOOTPROTO=dhcp
IPADDR=192.168.168.20
NETMASK=255.255.255.0
HWADDR=08:00:27:C8F:01
ONBOOT=yes

but I don't know why I get these
[root@localhost network-scripts]# ifdown eth0
[root@localhost network-scripts]# ifup eth0

Determining IP information for eth0... failed.
 
Old 03-14-2013, 10:20 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Change to
Code:
BOOTPROTO=none
.. and if that fails, also check that your MAC address is correct.
 
1 members found this post helpful.
Old 03-14-2013, 10:20 PM   #3
KinnowGrower
Member
 
Registered: May 2008
Location: Toronto
Distribution: Centos && Debian
Posts: 347

Rep: Reputation: 34
Quote:
and here is ifcfg-eth0 file
DEVICE=eth0
BOOTPROTO=dhcp
IPADDR=192.168.168.20
NETMASK=255.255.255.0
HWADDR=08:00:27:C8F:01
ONBOOT=yes
replace dhcp with static so that it looks like
Code:
BOOTPROTO=none
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Set Static IP Quinlan Linux - Newbie 9 09-18-2010 04:18 AM
Problem to set static IP satimis Linux - Virtualization and Cloud 10 12-15-2009 02:10 AM
how do i set a static ip? ninja master Slackware 9 11-20-2008 08:15 PM
How to set Static IP? maverick_29 Linux - Networking 4 05-25-2007 01:07 AM
FC2 Overriding static if in favor of dhcp system set for static pkraus109 Linux - Networking 8 09-21-2004 11:13 AM

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

All times are GMT -5. The time now is 08:31 AM.

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