LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   New Question..."Bringing Up Eth0"...FAILURE (https://www.linuxquestions.org/questions/linux-newbie-8/new-question-bringing-up-eth0-failure-60152/)

RJWMU 05-16-2003 01:24 PM

New Question..."Bringing Up Eth0"...FAILURE
 
Ok for those who've read my other posts I now have the ethernet card activated but I can't get a connection to my network. I ran netconfig and changed it so it would automatically obtain my stuff but I always hang during the initialization part of startup and am forced to reboot. Any idea how I can get this set up? I am a college student in an apartment complex that provides us with the ethernet hookup so I don't know much about what they use for their server or who they go through etc...any suggestions would be appreciated. Read my other post about running Kudzu if you have any questions...There's a lot of info in those posts. Thanks in advance.

~RJ
:newbie:

bulliver 05-16-2003 02:57 PM

what is the output of ifconfig?
did you set up eth0 to use dhcp?
do you have a dhcp client running so you can get your ip address?

RJWMU 05-16-2003 03:29 PM

[root@localhost root]# id
uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys)(wheel)
[root@localhost root]# uname -a
Linux localhost 2.4.18-19.8.0 #1 Thu Dec 12 05:39:29 EST 2002
i686 i686 i386 GNU/Linux
[root@localhost root]# cat /etc/modules.conf
alias parport_lowlevel parport_pc
alias eth0 eepro100
[root@localhost root]# lsmod
Module Size Used by Not tainted
nls_iso8859-1 3516 1 (autoclean)
nls_cp437 5148 1 (autoclean)
vfat 13084 1 (autoclean)
fat 38712 0 (autoclean) [vfat]
soundcore 6532 0 (autoclean)
mousedev 5524 1 (autoclean)
input 5920 0 (autoclean) [mousedev]
autofs 13348 0 (autoclean) (unused)
ds 8712 1
yenta_socket 12960 1
pcmcia_core 54784 0 [ds yenta_socket]
eepro100 22264 1
iptable_filter 2412 0 (autoclean) (unused)
ip_tables 14936 1 [iptable_filter]
ide-scsi 10512 0
scsi_mod 107240 1 [ide-scsi]
ide-cd 33608 0
cdrom 33696 0 [ide-cd]
ext3 70336 1
jbd 52212 1 [ext3]
[root@localhost root]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:02:A5:99:9E:04
inet addr:127.0.0.1 Bcast:127.255.255.255 Mask:255.0.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:493 errors:0 dropped:0 overruns:0 frame:0 TX packets:4 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100
RX bytes:56305 (54.9 Kb) TX bytes:168 (168.0 b)
Interrupt:9 Base address:0x6000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:248 errors:0 dropped:0 overruns:0 frame:0 TX packets:248 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:16884 (16.4 Kb) TX bytes:16884 (16.4 Kb)

This is what shows up...

bulliver 05-16-2003 03:39 PM

ok, so it is setting up eth0 with the ip address 127.0.0.1 which is localhost.

This is a guess, but I think you need to get your dhcp client up and running, else, you can not get your ip address from your isp.

What distro are you using? usually this is set up for you during installation.

read 'man dhcpcd' for setting up dhcp, allthough depending on your distro, there is likely a tool that will do this for you

bradfisher 05-16-2003 04:31 PM

Have you confirmed the physical network connectivity? Can
you plop windoze laptop on the same connection (config'd to
use dhcp of course) and get an assigned ip? (ipconfig/all or winipcfg).

Is there a link status light on you net card showing you that
you have a connection. Point is, the dhcp server can't assign you an addy if it can't talk to you over the wire ;)

Once it doles out the info you'll have the following file ....

/etc/dhcpc/dhcpcd-eth0.info

which will have all the network ip info in it.

RJWMU 05-16-2003 09:52 PM

I unfortunatly didn't set up my network settings upon installation because I did it in a campus computer lab and my laptop wasn't connected to any sort of network. As for the connection, I know that everything is working because I use it daily under win2k. I'm using redhat 8.0 and I don't really know how to go about getting the dhcp set up. Every time I reboot so the settings will work it hangs. Anything???

bulliver 05-16-2003 11:16 PM

hmmm, when I installed redhat I told it I was using dhcp during installation, not sure how to do it after the fact...

This is just conjecture, but you could try running:
Code:

/usr/sbin/dhcpcd -n eth0
Then restart your network:
Code:

network restart
If that doesn't work I don't know what to tell you. Someone must know how to tell Redhat to use dhcp after the fact...

PS, you really don't need to reboot at all, just restart your network to see if your changes have worked.


All times are GMT -5. The time now is 07:37 PM.