LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   newbee need help with "route" (https://www.linuxquestions.org/questions/linux-networking-3/newbee-need-help-with-route-97460/)

janosh 09-27-2003 08:03 AM

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...

david_ross 09-27-2003 08:19 AM

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

janosh 09-27-2003 08:46 AM

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?

david_ross 09-27-2003 09:35 AM

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

And the output of this on windows:
ipconfig /all
route print

janosh 09-27-2003 01:07 PM

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

david_ross 09-27-2003 01:32 PM

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.

janosh 09-27-2003 03:01 PM

Hm, I've allready tried that.
Anyone else who knows what could be wrong

m0rl0ck 09-27-2003 06:10 PM

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


All times are GMT -5. The time now is 03:24 AM.