LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-06-2004, 07:45 AM   #16
Kryis
LQ Newbie
 
Registered: Aug 2004
Distribution: FC5
Posts: 23

Original Poster
Rep: Reputation: 15

the ipconfig command gives the correct output, as does route print. I know the cable works, casue i've used it already for a few hours this morning. I'm beginning to doubt the network card in the linux machine - its a 3com etherlink III ISA card
 
Old 08-06-2004, 07:56 AM   #17
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
the output of /sbin/route that you post shows that the gateway is not set to 192.168.0.1
 
Old 08-06-2004, 07:58 AM   #18
Kryis
LQ Newbie
 
Registered: Aug 2004
Distribution: FC5
Posts: 23

Original Poster
Rep: Reputation: 15
how do i set the gateway? I tried it with netconfig but it isn't changing anything
 
Old 08-06-2004, 07:59 AM   #19
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
post your /etc/rc.d/rc.inet1.conf please, so we will see.
 
Old 08-06-2004, 08:05 AM   #20
Kryis
LQ Newbie
 
Registered: Aug 2004
Distribution: FC5
Posts: 23

Original Poster
Rep: Reputation: 15
here is /etc/rc.d/rc.inet1.conf

#config information for eth0:
IPADDR [0]="192.168.0.2"
NETMASK[0]="255.255.255.0"
USE_DCHP[0]=""
DCHP_HOSTNAME[0]=""

#Config information for eth1:
DDR [1]=""
NETMASK[1]=""
USE_DCHP[1]=""
DCHP_HOSTNAME[1]=""

#Config information for eth2:
DDR [2]=""
NETMASK[2]=""
USE_DCHP[2]=""
DCHP_HOSTNAME[2]=""

#Config information for eth3:
DDR [3]=""
NETMASK[3]=""
USE_DCHP[3]=""
DCHP_HOSTNAME[3]=""

#Default gateway IP address:
GATEWAY="192.168.0.1"

DEBUG_ETH_UP="no"
 
Old 08-06-2004, 08:12 AM   #21
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
Maybe you have to add route by hand, in slackware machine try :

/sbin/route add -net 192.168.0.0 eth0

then, try to ping 192.168.0.2 from windows xp

[edit]
You can bring the gatway in slackware like this :
/sbin/route add default gw 192.168.0.1 metric 1

Last edited by Cedrik; 08-06-2004 at 08:16 AM.
 
Old 08-06-2004, 08:18 AM   #22
Kryis
LQ Newbie
 
Registered: Aug 2004
Distribution: FC5
Posts: 23

Original Poster
Rep: Reputation: 15
/sbin/route add -net 192.168.0.0 netmask eth0 returns the error:
eth0: Host name lookup failure
 
Old 08-06-2004, 09:27 AM   #23
eldontrent
LQ Newbie
 
Registered: Aug 2004
Distribution: Slackware
Posts: 2

Rep: Reputation: 0
Well, basically you shouldn't need to setup the gateway by hand with route add. If you need it then something is wrong with your installation.
Try:

/etc/rc.d/rc.inet1 stop
/etc/rc.d/rc.inet1 start

then try:

route -n

which should list all of your routes, including a default route (Destination 0.0.0.0) going via eth0. If this is not the case (it means that your installation is not ok and) you shold try with

route add default gw eth0

I'm not sure this last command has correct syntax and I can't check it at the moment, just read 'man route' and play a bit with 'dev' 'netmask' 'gw' and so on. Basically you should have at the end:

Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.0.1 0.0.0.0 UG 1 0 0 eth0

and that's it.

Valerio Daelli
 
Old 08-06-2004, 09:57 AM   #24
Kryis
LQ Newbie
 
Registered: Aug 2004
Distribution: FC5
Posts: 23

Original Poster
Rep: Reputation: 15
I set it up like you said, but the XP machine still doesn't detect the linux machine at all, it says that a network cable is disconnected
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
network dead ?! otoomet Linux - Networking 2 01-03-2005 03:15 PM
RH9 Network Device Control issues/modem: on BUSY, can't deactivate; NOW NDC dead! vinylone Linux - Networking 4 08-10-2004 06:22 AM
CD-Rom dead, trying to install RedHat via network on a Xircom PCMCIA crimzor Red Hat 0 11-08-2003 11:19 AM
Squid:2nd Browser access Internet SPEED dead becomes dead slow mwj Linux - Software 1 10-04-2003 01:40 PM
Recompiled kernels and dead network connections. ritz22 Linux - Networking 4 05-25-2002 04:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration