?
Solved

Connecting linux to gateway router to cable modem

Posted on 2003-02-25
20
Medium Priority
?
361 Views
Last Modified: 2010-03-18
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.
0
Comment
Question by:gabulish
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 10
  • 7
  • 3
20 Comments
 
LVL 3

Expert Comment

by:naccad
ID: 8017845
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
 

Author Comment

by:gabulish
ID: 8020468
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
 
LVL 3

Expert Comment

by:naccad
ID: 8020636
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
Plug and play, no additional software required!

The ATEN UE3310 USB3.1 Gen1 Extender Cable allows users to extend the distance between the computer and USB devices up to 10 m (33 ft). The UE3310 is a high-quality, cost-effective solution for professional environments such as hospitals, factories and business facilities.

 

Author Comment

by:gabulish
ID: 8022226
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
 

Expert Comment

by:siliconjunkie
ID: 8023101
instead of typing [space] hit the space bar, just like you do between words.
0
 

Expert Comment

by:siliconjunkie
ID: 8023108
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
 

Expert Comment

by:siliconjunkie
ID: 8023315
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
 

Author Comment

by:gabulish
ID: 8024936
This command:
echo[space]"nameserver 192.168.0.1"[space>/etc/resolv.conf

now contains the following:

nameserver 192.168.0.1

0
 
LVL 3

Expert Comment

by:naccad
ID: 8026725
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
 

Author Comment

by:gabulish
ID: 8027243
I am running a redhat version 7.2. How can I tell if my NIC is a ISA or a PCI?
0
 
LVL 3

Expert Comment

by:naccad
ID: 8027301
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
 

Author Comment

by:gabulish
ID: 8027366
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
 

Author Comment

by:gabulish
ID: 8029133
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
 
LVL 3

Expert Comment

by:naccad
ID: 8033831
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
 

Author Comment

by:gabulish
ID: 8033875
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
 
LVL 3

Expert Comment

by:naccad
ID: 8033934
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
 

Author Comment

by:gabulish
ID: 8037279
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
 

Author Comment

by:gabulish
ID: 8037282
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
 
LVL 3

Accepted Solution

by:
naccad earned 800 total points
ID: 8038675
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
 

Author Comment

by:gabulish
ID: 8039250
That did it thanks a ton! Everything is a go.
0

Featured Post

Video: Liquid Web Managed WordPress Comparisons

If you run run a WordPress, you understand the potential headaches you may face when updating your plugins and themes. Do you choose to update on the fly and risk taking down your site; or do you set up a staging, keep it in sync with your live site and use that to test updates?

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses
Course of the Month8 days, 10 hours left to enroll

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question