gabulish
asked on
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.
ASKER
Here it is hope it helps:
Windows IP configuration
Host Name .........................: TITAN
Primary Dns Suffix.................:
Node Type...................... ....:Unkno wn
IP Routing Enabled.................:N o
WINS Proxy Enabled.................:N o
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix.....:msns.leh.ptd.n et
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.1 68.0.1
DNS Server.................... .....:192. 168.0.1
Lease Obtained.................. ...:Tuesda y, 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/i fconfig -a
bash: cat/etc/resolv.conf/sbin/i fconfig: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/i fconfig -a
bash: cat/etc/resolv.conf/sbin/i fconfig:No such file or directory
Windows IP configuration
Host Name .........................:
Primary Dns Suffix.................:
Node Type......................
IP Routing Enabled.................:N
WINS Proxy Enabled.................:N
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix.....:msns.leh.ptd.n
Description...............
Physical Address...................
Dchp Enabled...................
Autoconfiguration Enabled..........:Yes
IP Address...................
Subnet Mask......................
Default Gateway...................
DHCP Server....................
DNS Server....................
Lease Obtained..................
Lease Expires...................
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/i
bash: cat/etc/resolv.conf/sbin/i
[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/i
bash: cat/etc/resolv.conf/sbin/i
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
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
ASKER
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/re solv.conf
whats next? :)
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/re
whats next? :)
instead of typing [space] hit the space bar, just like you do between words.
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]#
[root@balder root]# cat /etc/resolv.conf
search siliconjunkie.net
nameserver 10.0.0.1
nameserver 10.0.0.3
[root@balder root]#
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]#
[root@balder root]# cat /etc/resolv.conf
search siliconjunkie.net
nameserver 10.0.0.1
nameserver 10.0.0.3
[root@balder root]#
ASKER
This command:
echo[space]"nameserver 192.168.0.1"[space>/etc/re solv.conf
now contains the following:
nameserver 192.168.0.1
echo[space]"nameserver 192.168.0.1"[space>/etc/re
now contains the following:
nameserver 192.168.0.1
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
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
ASKER
I am running a redhat version 7.2. How can I tell if my NIC is a ISA or a PCI?
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
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
ASKER
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. :)
ASKER
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)
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)
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
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
ASKER
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?
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
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
ASKER
Here's the output
/sbin/insmod /lib/modules/2.4.7-10/kern al/drivers /net/8390. o
Using /lib/modules/2.4.7-10/kern al/drivers /net/8390. 0
Symbol version perfix ''
/sbin/insmod /lib/modules/2.4.7-10/kern al/drivers /net/8390. o
Using /lib/modules/2.4.7-10/kern al/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)
/sbin/insmod /lib/modules/2.4.7-10/kern
Using /lib/modules/2.4.7-10/kern
Symbol version perfix ''
/sbin/insmod /lib/modules/2.4.7-10/kern
Using /lib/modules/2.4.7-10/kern
/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)
ASKER
Here's the output
/sbin/insmod /lib/modules/2.4.7-10/kern al/drivers /net/8390. o
Using /lib/modules/2.4.7-10/kern al/drivers /net/8390. 0
Symbol version perfix ''
/sbin/insmod /lib/modules/2.4.7-10/kern al/drivers /net/8390. o
Using /lib/modules/2.4.7-10/kern al/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)
/sbin/insmod /lib/modules/2.4.7-10/kern
Using /lib/modules/2.4.7-10/kern
Symbol version perfix ''
/sbin/insmod /lib/modules/2.4.7-10/kern
Using /lib/modules/2.4.7-10/kern
/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)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
That did it thanks a ton! Everything is a go.
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