LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-27-2003, 08:03 AM   #1
janosh
LQ Newbie
 
Registered: Sep 2003
Location: Oslo, Norway
Distribution: Debian
Posts: 8

Rep: Reputation: 0
newbee need help with "route"


I'm trying to connect my little debian box to our home network, but i'm having some trouble.

Our network consist of two windows computers
(10.0.0.2 & 10.0.0.3), and a router (10.0.0.1)....
I've set my computer to 10.0.0.4.

All computers are connected trough a switch

Now the problem is that i can't ping any of the computers on the network (I can ping 10.0.0.4 (myself)).
I believe this is a routing problem.

This Is my ifconfig:
InetAddr: 10.0.0.4 -- Bcast:10.0.0.255 -- Mask:255.255.255.0

This is the info I get when i just type route
Dest. Gatew. Genmask. ......................................
localnet * 255.255.255.0 U
default 10.0.0.1 0.0.0.0 UG

Both on eth0

The first line pops right up, but second one comes up after a couple of seconds (I don't know if this is part of the problem)

Can anyone please help me...
 
Old 09-27-2003, 08:19 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
It probably is part of the problem since it doesn't know the route to the 10. network. Try adding:
route add -net 10.0.0.0 netmask 255.255.255.0 dev eth0
 
Old 09-27-2003, 08:46 AM   #3
janosh
LQ Newbie
 
Registered: Sep 2003
Location: Oslo, Norway
Distribution: Debian
Posts: 8

Original Poster
Rep: Reputation: 0
The "localnet" entry in the route table seems to be the route to 10.0.0.0... When I added the line you said, i just got another one . Can It be something else?
 
Old 09-27-2003, 09:35 AM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Can you post the entire output of:
route -n
ifconfig

And the output of this on windows:
ipconfig /all
route print
 
Old 09-27-2003, 01:07 PM   #5
janosh
LQ Newbie
 
Registered: Sep 2003
Location: Oslo, Norway
Distribution: Debian
Posts: 8

Original Poster
Rep: Reputation: 0
DEBIAN:
Route -n:
Dest. GW Genmask Fla. Metr. Ref. Use IF
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0

0.0.0.0 10.0.0.1 0.0.0.0 UG 0 0 0 eth0


ifconfig:
eth0
Link encap:Ethernet HWaddr: 00:08:A1:22:57:25
inet addr: 10.0.0.4 Bcast: 10.0.0.255 Mask: 255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:14764 errors:0 dropped:0 overruns:0 frame:0
TX packets:155 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txquelen:100
RX bytes 898975 (877.9 KiB) TX bytes:9195 (8.9 KiB)
Interrupt: 10 Base address:0x4000

lo
Link encap:Local Loopback
inet addr: 127.0.0.1 Mask: 255.0.0.0
UP LOOPBACK RUNNING MTU:3924 Metric:1
RX packets:1 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txquelen:0
RX bytes 83 (83.0 b) TX bytes:83 (83.0 b)

WINDOWS:
route print:
===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x2 ...00 04 e2 1b 1e c2 ...... SMC EZ Card 10/100 Fast Ethernet PCI Network Adapter - Packet Scheduler Miniport
===========================================================================
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 10.0.0.1 10.0.0.2 20

10.0.0.0 255.255.255.0 10.0.0.2 10.0.0.2 20

10.0.0.2 255.255.255.255 127.0.0.1 127.0.0.1 20

10.255.255.255 255.255.255.255 10.0.0.2 10.0.0.2 20

127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1

224.0.0.0 240.0.0.0 10.0.0.2 10.0.0.2 20

255.255.255.255 255.255.255.255 10.0.0.2 10.0.0.2 1

Default Gateway: 10.0.0.1
===========================================================================
Persistent Routes:
None



ipconfig /all:
Windows IP Configuration

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

Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : SMC EZ Card 10/100 Fast Ethernet PCI Network Adapter
Physical Address. . . . . . . . . : 00-04-E2-1B-1E-C2
Dhcp Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 10.0.0.2
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 10.0.0.1
DNS Servers . . . . . . . . . . . : 217.13.4.21
217.13.7.136




Thats All, hope someone can give me some help
 
Old 09-27-2003, 01:32 PM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Your settings look fine. Have you verified the connection is ok? Are you getting link lights? perhaps you could swap the cables for one that works with a windows machine to make sure it is not faulty.
 
Old 09-27-2003, 03:01 PM   #7
janosh
LQ Newbie
 
Registered: Sep 2003
Location: Oslo, Norway
Distribution: Debian
Posts: 8

Original Poster
Rep: Reputation: 0
Hm, I've allready tried that.
Anyone else who knows what could be wrong
 
Old 09-27-2003, 06:10 PM   #8
m0rl0ck
Member
 
Registered: Nov 2002
Distribution: A totally 133t distro :)
Posts: 358

Rep: Reputation: 31
Do you have routed on your machine?
If you do start it bytyping "routed" and enter at a prompt.
Your missing an entry in your routing table for 127.0.0.0, routed might fix it, if not add it manually and see what happens.


So it looks like this:

(my routing table on my desktop)
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.23.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 10.0.23.1 0.0.0.0 UG 0 0 0 eth0
 
  


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
Route to subnet exists but I get "Network unreachable" when adding default route fciuffani Linux - Networking 4 08-18-2004 02:11 PM
ADSL problems - Possibly "Route" issuses not sure :S Dataforce Linux - Networking 33 02-07-2004 02:11 PM
could "no route to host" be caused by non-crossover cable? brandonweinberg Linux - Networking 13 01-31-2004 09:47 AM
Permanently set "route add" -host and default gw sacants Linux - Newbie 1 07-18-2003 04:04 AM
where can I find good information on "route"? magnakuz Linux - Networking 5 03-11-2002 12:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:30 PM.

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