LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   what i should to do with "Ddtermining IP information for eth0...failed (https://www.linuxquestions.org/questions/linux-newbie-8/what-i-should-to-do-with-ddtermining-ip-information-for-eth0-failed-201263/)

Steve Han 07-05-2004 05:13 AM

what i should to do with "Ddtermining IP information for eth0...failed
 
i have fixed the problem "Bringing up interface eth0:failed",but i got the other one "Determining IP information for eth0...failed".

i used commands "ifconfig" "route" to configure my IP address,gatway and netmask;but these information i made had not been saved when restart the computer.What wrong with me and how to ?

Please help and thank.

steve

Demonbane 07-05-2004 05:21 AM

which distro are you using and are you trying to use dhcp or static ip?

Steve Han 07-05-2004 10:27 PM

i am using RedHat Linux 9. I don't know which one that fit to me,maybe static ip better for a newbie?

steve han

snakeo2 07-06-2004 07:44 AM

If you have DSL or Cable you'll need to set up DHCP.

wijnands 07-06-2004 07:47 AM

Quote:

Originally posted by snakeo2
If you have DSL or Cable you'll need to set up DHCP.
Possbily. There's also DSL providers that issue static IP addresses.

Mathieu 07-06-2004 09:07 AM

Since you are using RedHat 9, you can use the Network Configuration GUI.
Take a look at this HowTO.
http://www.redhat.com/docs/manuals/l...rk-config.html

Or if you decide to do it manually and you require DHCP (best choice and most likely DHCP is what you need)
you will need to edit /etc/sysconfig/network-scripts/ifcfg-eth0 by adding the following:
Code:

DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes

Now you need to restart the network connection
Code:

service network restart

Steve Han 07-07-2004 12:53 AM

Thank you Mathieu,Demonbane
Till now i have done the following work:

code:
#ifconfig eth0 up
#ifconfig eth0 10.1.9.2
#ifconfig eth0 netmask 255.255.255.0
#route add default gw 10.1.9.1(my Intranet server)

#ifconfig lo 127.0.0.1
#route add 127.0.01 lo

(i had "DEVICE=eth0 BOOTPROTO=dhcp ONBOOT=yes" in /etc....../ifcfg-eth0)
and i typed
#service network restart

It said that:
Shutting down inferface eth0 OK
Shutting down loopback interface OK
Setting network parameters OK
Bringing up loopback interface OK
Bringing up interface eth0:
Determining IP information for eth0... failed

Mathieu 07-07-2004 11:12 AM

Ok. Does your Intranet server have DHCP ?

If not, then you will need to setup a static IP.
Edit /etc/sysconfig/network-scripts/ifcfg-eth0 and add the following:
Code:

DEVICE=eth0
onBOOT=yes
BOOTPROTO=none
IPADDR=10.1.9.2
NETMASK=255.255.255.0
TYPE=Ethernet
NETWORK=10.1.9.0
BROADCAST=10.1.9.255

If you want to specific a default gateway, you can edit /etc/sysconfig/network by adding the following:
Code:

GATEWAYDEV=eth0

Steve Han 07-08-2004 02:25 AM

Thank you very much Mathieu,and i fixed the problem on bringring up interface eth0 by following your tips,that is OK.

But i wander (1)where i can myself find the relevant documents about what that you tald me above(i got some supports like as RedHat's documenttation online,book"RedHat Linux 7.2 Unleashed"by Bill Ball,etc),maybe i need to walk carefully through the stuff about DHCP and static IP?;(2)Now can i navigate Internet using command line and how to?

hasnain 07-08-2004 04:21 AM

IP determinig problem
 
hello


well ur problem is simple ...u just want to get a statis IP every tiime you bool....right?


heres the command

[root @ localhost root] ifconfig eth0:0 172.16.13.101 netmask 255.255.0.0 up



after doind that make sure that uve get the newly assigned IP

[root @localhost root] service network restart

[root @ localhost root] ipconfig

i hope it would work

regards,

Steve Han 07-08-2004 04:42 AM

Please Mathieu,
i have checked up the file /etc/resolv.conf,it said that "search localdomain". Might it means that i neet to edit the file with"nameserver xxx.xxx.xxx.xxx(my ISP's DNS)"?

And which commands i should use to surf Internet and to download data as ftp file etc from there.

Mathieu 07-08-2004 07:23 PM

Yes, add your ISP's DNS to the /etc/resolv.conf file.
Code:

nameserver x.x.x.x
nameserver y.y.y.y
nameserver z.z.z.z

Quote:

(1)where i can myself find the relevant documents about what that you tald me above
Red Hat Linux Manuals
http://www.redhat.com/docs/manuals/linux/

The info you want can be found in the Red Hat Linux 9 Reference Guide (Network Interfaces)
http://www.redhat.com/docs/manuals/l...ual/ref-guide/

Quote:

(2)Now can i navigate Internet using command line and how to?
Yes, you can use lynx. It is a text web browser.
Simply install the RPM.
If you are running X with a desktop environment like KDE or Gnome, you can use Mozilla, Konqueror, etc.

As for FTP, you should have ftp installed, type: ftp
But if you want a more robust ftp client, try ncftp
There are many FTP clients avaiable.

Steve Han 07-08-2004 09:13 PM

Thank you Mathieu,
Thank you Penguin,
I will try it and learn more.


All times are GMT -5. The time now is 09:29 AM.