Connecting linux to gateway router to cable modem

I'm newbie to Linux so bare with me. I have connected a Windows XP machine already to this gateway router and had no problems. I was getting an instant flow of data from the cable modem to router to my machine. Next I tried the Linux box. When I open the mozilla browser I can't reach any other websites. I tried pinging the linux box because a site suggested it and it returned that I was getting a ping at 64kb/s I think. Thats all the info I have. Any advice, suggestions to gwt things running would help. thanks in advance.
gabulishAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Nick AccadSystems AdministratorCommented:
on the windows machine, open a dos box/prompt
and type
ipconfig /all

this should give you what nameserver the windows machine is
using

next go to the linux machine and type

cat /etc/resolv.conf
/sbin/ifconfig -a

post the ouput from these commands and i will give you more
info, it looks like the linux machine is not using the
nameserver (DNS)

tc
-nick
0
gabulishAuthor Commented:
Here it is hope it helps:

Windows IP configuration

Host Name .........................: TITAN
Primary Dns Suffix.................:
Node Type..........................:Unknown
IP Routing Enabled.................:No
WINS Proxy Enabled.................:No

Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix.....:msns.leh.ptd.net
Description........................:Intel(R) PRO/100 VE Network Connection
Physical Address...................:00-07-E9-E5-21-D6
Dchp Enabled.......................:Yes
Autoconfiguration Enabled..........:Yes
IP Address.........................:192.168.0.2
Subnet Mask........................:255.255.255.0
Default Gateway....................:192.168.0.1
DHCP Server........................:192.168.0.1
DNS Server.........................:192.168.0.1
Lease Obtained.....................:Tuesday, February 25, 2003 4:35:01 PM
Lease Expires......................:Monday, January 18, 2038 10:14:07 PM

I tried it in both "/" and "root" and got nothing

[root@localhost /]# cat/etc/resolv.conf
bash: cat/etc/resolv.conf:No such file or directory
[root@localhost /]# cat/etc/resolv.conf/sbin/ifconfig -a
bash: cat/etc/resolv.conf/sbin/ifconfig:No such file or directory

[root@localhost root]# cat/etc/resolv.conf
bash: cat/etc/resolv.conf:No such file or directory
[root@localhost root]# cat/etc/resolv.conf/sbin/ifconfig -a
bash: cat/etc/resolv.conf/sbin/ifconfig:No such file or directory
0
Nick AccadSystems AdministratorCommented:
these are two commands:
1:
cat [space] /etc/resolv
2:
/sbin/ifconfig [space] -a

[space] means leave a space :)

/etc/resolv should contain the following

nameserver 192.168.0.1

if not, type the exact following command

echo [space] "nameserver 192.168.0.1" [space] > /etc/resolv.conf

(all on one line)

try again
-nick
0
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

gabulishAuthor Commented:
1:
cat[space]/etc/resolv
    -I still get:
bash: cat/etc/resolv: No such file or directory

2:/sbin/ifconfig -a
   Link encap:Local Loopback
   inet addr:127.0.0.1
   UP LOOPBACK RUNNING MTU:16436 Metric:1
   RX packets:130 errors:0 dropped:0 overruns:0 frame:0
   TX packets:130 errors:0 dropped:0 overruns:0 carrier:0
   collisions:0 txqueuelen:0
   RX bytes:8468 (8.2 Kb) TX bytes:8468 (8.2 Kb)

and finally

echo[space]"nameserver 192.168.0.1"[space>/etc/resolv.conf

whats next? :)
   

0
siliconjunkieCommented:
instead of typing [space] hit the space bar, just like you do between words.
0
siliconjunkieCommented:
try 'cat /etc/resolv.conf


[root@balder root]# cat /etc/resolv.conf
search siliconjunkie.net
nameserver 10.0.0.1
nameserver 10.0.0.3
[root@balder root]#
0
siliconjunkieCommented:
try 'cat /etc/resolv.conf


[root@balder root]# cat /etc/resolv.conf
search siliconjunkie.net
nameserver 10.0.0.1
nameserver 10.0.0.3
[root@balder root]#
0
gabulishAuthor Commented:
This command:
echo[space]"nameserver 192.168.0.1"[space>/etc/resolv.conf

now contains the following:

nameserver 192.168.0.1

0
Nick AccadSystems AdministratorCommented:
hi gabulish

ok, you do not have a network connection.
ifconfig -a shows me what network cards are installed
and which ones are running, in your case it only shows
the loopback device (127.0.0.1) which is a VIRTUAL interface,
not a real one, its only used to connect to the same box
(too complicated, nevermind anyway)

what i *should* have seen in addition to the loopback device
is an ethernet device, usually called eth0.

now, when u said u tried pinging the linux box, where
did u ping it from? because unless u tried to ping it from
the windows box, everything is bogus :)

i assume you already installed the network card, meaning
the hardware, if not, go and get one, if yes, we need to
work on configuring that.

I need to know which distribution you are using (RedHat,
Mandrake, Debian....?), and if the network card is ISA or
PCI.

good luck
-nick
0
gabulishAuthor Commented:
I am running a redhat version 7.2. How can I tell if my NIC is a ISA or a PCI?
0
Nick AccadSystems AdministratorCommented:
if this is not a VERY old machine, you are prolly running
on PCI anyways,

give me the output of this (as root)

lspci [space] -v

this should list all the devices in your pc, and give me
a hint on what netword card is there and how to configure
it

-nick
0
gabulishAuthor Commented:
Well I'm cant get to my machine right now. Probably not until about 5pm just wanted to let you know. Then possibly we can fire messages back and forth and get this taken care of. naccad, thanks for all the help so far. :)
0
gabulishAuthor Commented:
There are some other devices but I thought this was the stuff you were probably looking for. If not I can give you the other hardware. Also if you need other details for these just let me know

Host bridge: Intel Corporation 440BX/ZX Host bride(rev 02)

PCI bridge: Intel Corporation 440BX/ZX Host bride(rev 02)

ISA bridge: Intel Corporation 82371AB PIIX4 ISA (rev 02)

IDE Interface: Intel Corporation 82371AB PIIX4 IDE (rev 01)

Bridge: Intel Corporation 82371AB PIIX4 ACPI (rev 02)

Ethernet controller: RealTek Semiconductor Co., Ltd. RTL-8029(AS)




0
Nick AccadSystems AdministratorCommented:
ok, it seems that you have a very basic ethernet card,
I wonder why redhat did not autodetect it.

anyway, log in as root, and try this

modprobe -a -v ne2k-pci

and post the output here, if all goes well, you should
get a eth0 in addition to the loopback when u do /sbin/ifconfig -a

good luck
i know its going to be a while for u to get back to your
linux box.

-nick
0
gabulishAuthor Commented:
yea not until 5. Should it be eth0 though because I have my windows machine in the first port of my router? Just an aside do you have any suggestions for a good red hat networking book?
0
Nick AccadSystems AdministratorCommented:
A very good book is the Linux Network Admin guide, its
free online at
http://www.oreilly.com/catalog/linag2/book/index.html

another good book is Learning Redhat Linux
http://www.oreilly.com/catalog/redhat3/

tc
-nick
0
gabulishAuthor Commented:
Here's the output

/sbin/insmod /lib/modules/2.4.7-10/kernal/drivers/net/8390.o
Using /lib/modules/2.4.7-10/kernal/drivers/net/8390.0
Symbol version perfix ''
/sbin/insmod /lib/modules/2.4.7-10/kernal/drivers/net/8390.o
Using /lib/modules/2.4.7-10/kernal/drivers/net/8390.0

/sbin/ifconfig -a

eth 0
       Link encap:Ethernet HWaddr 00:4F:49:OC:A6:4C
       BROADCAST MULTICAST MYU:1500 Metric:1
       RX packets:130 errors:0 dropped:0 overruns:0   frame:0
  TX packets:130 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0
  RX bytes:8468 (8.2 Kb) TX bytes:8468 (8.2 Kb)
0
gabulishAuthor Commented:
Here's the output

/sbin/insmod /lib/modules/2.4.7-10/kernal/drivers/net/8390.o
Using /lib/modules/2.4.7-10/kernal/drivers/net/8390.0
Symbol version perfix ''
/sbin/insmod /lib/modules/2.4.7-10/kernal/drivers/net/8390.o
Using /lib/modules/2.4.7-10/kernal/drivers/net/8390.0

/sbin/ifconfig -a

eth 0
       Link encap:Ethernet HWaddr 00:4F:49:OC:A6:4C
       BROADCAST MULTICAST MYU:1500 Metric:1
       RX packets:130 errors:0 dropped:0 overruns:0   frame:0
  TX packets:130 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0
  RX bytes:8468 (8.2 Kb) TX bytes:8468 (8.2 Kb)
0
Nick AccadSystems AdministratorCommented:
great, you got your network card up, now all you have to do
is give it an ip address, since your router is already
acting as a dhcp server, all you have to do is

dhcpcd eth0

and you should be on your way
good luck.

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
gabulishAuthor Commented:
That did it thanks a ton! Everything is a go.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Networking

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.