LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   Fresh install...but no internet (https://www.linuxquestions.org/questions/red-hat-31/fresh-install-but-no-internet-628367/)

theroot 03-16-2008 01:03 AM

Fresh install...but no internet
 
I just put Red Hat ES on the computer next to me. I have a DSL modem that connects to a router to 3 computers (all of which were windows xp up until an hour ago). When this computer had windows it connected just fine to the internet along with the others, now that I have converted it to linux. It does not seem to get any internet connectivity. I am very new to linux, and the reason i installed it was to learn it. Having this problem alone will help me familiarize myself more with linux more. Thank you for taking the time to read this, and please remember i really am very new to linux and dont really know anything, so details are very welcome :). if you need to know any more information just ask.

AceofSpades19 03-16-2008 01:24 AM

Is the router wireless, or wired?

jschiwal 03-16-2008 03:51 AM

I assume this is a wired Cable/DSL NAT router. Most likely you didn't opt to use DHCP so your hosts don't have the gateway & dns addresses they need to reach the internet.

To check the IP address:
/sbin/ifconfig

To check the default gateway:
/sbin/route

To check the name server (DNS) addresses:
cat /etc/resolv.conf

theroot 03-16-2008 10:48 AM

sorry, it is wired, its a westell DSL 6.0 that goes to a netgear router.


i typed in the commands that you said, and this is what i got back. (no idea how to use this information to help me get internet lol)

/sbin/ifconfig:

Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU: 16436 Metric:1
RX packets: 2091 errors:0 dropped:0 overruns:0 frame:0
TX packets: 2091 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2712177 (2.5 MiB) TX bytes:2712177 (2.5 MiB)

/sbin/route

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface

cat /etc/resolv.conf didnt do anything. it just opened up another terminal line as if i hadnt even typed it.

As far as i know i havent setup anything with DHCP. How would i go about doin that to check if this will resolve the issue.

jschiwal 03-17-2008 08:01 AM

Post the output of "/sbin/lspci -v" and "/sbin/lspci -n". You don't have any NIC device.
You just need to post the part with the controller:
Code:

...
00:0f.0 IDE interface: nVidia Corporation MCP51 Serial ATA Controller (rev a1)
00:10.0 PCI bridge: nVidia Corporation MCP51 PCI Bridge (rev a2)
00:10.1 Audio device: nVidia Corporation MCP51 High Definition Audio (rev a2)
00:14.0 Bridge: nVidia Corporation MCP51 Ethernet Controller (rev a3)
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
...
/sbin/lspci -v | sed -n '/00:14.0/,/^$/p'
00:14.0 Bridge: nVidia Corporation MCP51 Ethernet Controller (rev a3)
        Subsystem: Hewlett-Packard Company Unknown device 2a34
        Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 23
        Memory at fe02b000 (32-bit, non-prefetchable) [size=4K]
        I/O ports at c800 [size=8]
        Capabilities: <access denied>

/sbin/lspci -n | grep '00:14.0'
00:14.0 Class 0680: 10de:0269 (rev a3)

You need to find out what you have and then what kernel module may need to be modprobed so it is recognized.
You might try "sudo /sbin/ifup eth0" in case the device is present but was shutdown with ifdown for some reason.

theroot 03-18-2008 04:48 PM

Sorry about the delay, yesterday my power went out and the computer with XP had lost connection. couldnt get im back up now ;).

So i did the commands that you were askin for. here were the results.

Quote:

/sbin/lspci -v

01:09.0 Ethernet controller: 3Com Corporation 3c905B 100BaseTX [Cyclone] (rev 30)


/sbin/lspci -v | sed -n '/01:09.0/,/^$/p'

01:09.0 Ethernet controller: 3Com Corporation 3c905B 100BaseTX [Cyclone] (rev 30)+
Subsystem: 3Com Corporation 3c905B Fast Etherlink XL 10/100
Flags: bus master, medium devsel, latency 64, IRQ 9
I/O ports at dc00 [size=128]
Memory at ff8ff800 (32-bit, non-prefetchable) [size=128]
Expansion Rom at f6a00000 [disabled] [size=128K]
Capabilities: [dc] Power Management version 1


/sbin/lspci -n | grep '01:09.0'

01:09.0 0200: 10b7:9055 (rev 30)


sudo /sbin/ifup eth0

/sbin/ifup: Configuration for eth0 not found.
Usage: ifup <device name>

jschiwal 03-20-2008 06:01 AM

Check if you have the 3c59x kernel driver loaded. Also look at the output of dmesg or your boot log to see if there were any problems indicated. The kernel source has a "vortex.txt" file that lists some options to try in your modprobe.conf configuration.

DotHQ 03-20-2008 06:56 AM

how about posting the output of this command (it will show your setting for eth0)

cat /etc/sysconfig/network-scripts/ifcfg-eth0

This is where you can turn on or off DHCP.

Common settings:
DEVICE=eth0
BOOTPROTO=static (or you can put DHCP here)
BROADCAST=xxx.xxx.xxx.xxx
IPADDR=xxx.xxx.xxx.173
NETMASK=255.255.255.224
NETWORK=xxx.xxx.xxx.160
ONBOOT=yes
TYPE=Ethernet

the x's were put in to hide my IP info.

theroot 03-20-2008 03:27 PM

Quote:

Originally Posted by jschiwal (Post 3094823)
Check if you have the 3c59x kernel driver loaded. Also look at the output of dmesg or your boot log to see if there were any problems indicated. The kernel source has a "vortex.txt" file that lists some options to try in your modprobe.conf configuration.


i dont know how to do any of that :-/
i looked in the startup for the word dmesg but didnt see it anywhere, and either way didnt notice any errors during startup...
can you please explain how to do it.

and
cat /etc/sysconfig/network-scripts/ifcfg-eth0
says that it doesnt exist. :(...

damn

jschiwal 03-20-2008 07:38 PM

You can list modules with the "lsmod" command. You can filter the results with grep.
lsmod | grep 3c59

If the module isn't loaded run "sudo /sbin/modprobe 3c59x". Hopefully the 3c59x.ko kernel module exists.

If you are successful loading the module or the module exists, then run your systems Network Device setup program.

theroot 03-20-2008 08:32 PM

lsmod | grep 3c59

3c59x 44649 0
mii 9409 1 3c59x


Does that mean that it is found, but its off?

how do i run the network device setup program

jschiwal 03-21-2008 04:23 AM

I think the next step is to run through the network device setup wizard. I don't think that was done.

theroot 03-21-2008 03:06 PM

how do i run the network device setup wizard, i looked everywhere.
the closest thing that i see is in


Place>Network Servers
and that just shows me "Windows network" folder, when i double click that there is nothing inside the folder.

jschiwal 03-22-2008 07:12 AM

It under "system -> administration -> network".

theroot 03-22-2008 01:20 PM

Thank you so much!! lol, when i went to that wizard it showed 2 ethernets inactive. (i still have my old ethernet card that wasnt working on, never took it out when i put the new one in.) so i the good one active (eth1)
and it worked like a charm. Im respondin on my linux box right now. Thanks again man. i know you put in some time in helpin me out an i really appreciate that.


All times are GMT -5. The time now is 11:53 PM.