Horst Knobloch wrote:
> On Thursday 04 September 2003 17:00, calle wrote:
>
>
>>Horst Knobloch wrote:
>>
>>>On Thursday 04 September 2003 10:41, calle wrote:
>>>
>>>
>>>>ISDN-router 192.168.1.50 <--> Linux router, eth0 192.168.1.35, eth1
>>>>192.168.2.1 <--> My subnet 192.168.2.0
>>>>
>>>
> [...]
>
>>>>#route -n
>>>>dest gw genmask flags iface
>>>>192.168.2.0 192.168.2.1 255.255.255.0 UG eth1
>>>>192.168.1.0 192.168.1.35 255.255.255.0 UG eth0
>>>>127.0.0.0 0.0.0.0 255.0.0.0 U lo
>>>>0.0.0.0 192.168.1.50 0.0.0.0 UG eth0
>>>
>>>
>>>The first two routes for the Ethernet interfaces are wrong.
>>>The network of these interfaces are directly attached and
>>>therefore don't need a gateway.
>>>
>>>Thus get rid of them, it is sufficient if you properly
>>>configure the interfaces via ifconfig to get the proper
>>>routes in the routing table. Eg. in your case:
>>>
>>>ifconfig eth0 192.168.1.35 netmask 255.255.255.0
>>>ifconfig eth1 192.168.2.1 netmask 255.255.255.0
>>>
>>
>
>>Thank you, but no luck. Don't I need a route between the cards?
>
>
> No. ifconfig enters autonomously the proper routing entries
> for the interfaces. You don't need to enter one via the route
> command yourself. You need to enter an explicit routing entry
> only if you want to reach hosts which are not part of the
> network directly attached.
>
> If you have configured the interfaces correctly, you should
> be able to ping your ISDN router and the hosts on
> 192.168.2.0/24 net from your Linux router. Of course the
> ethernet interface on the hosts must also be configured
> correctly.
>
> If you have entered a default gateway on the hosts in the
> 192.168.2.0 net, you should even be able to ping 192.168.1.35
> and 192.168.1.50 from the hosts.
>
>
>
>>I can't
>>ping between them, not to any of the other machines on the network and I
>>can't ping to the machine, either card! Nothing seems to hit the cable!?
>
>
> Please post the output of "route -n", "ifconfig" and the
> exact (error) output of the ping command on the Linux
> router and from a host which you can't ping.
>
> Also check whether you use the correct cables. If you directly
> connect two devices (without going over a switch or hub) you
> need a cross-over cable, otherwise a straight-through cable.
> Most NICs and Hubs/Switches have a green LED which indicates a
> proper connection. Check this.
>
>
> Ciao, Horst
Yes, leds are lit but not blinking during ping from my intended router.
Pingning from another machine the led is blinking, but not the ones for
the router.
#route -n
dest gw genmask flags iface
192.168.2.0 0.0.0.0 255.255.255.0 U eth1
192.168.1.0 0.0.0.0 255.255.255.0 U eth0
127.0.0.0 0.0.0.0 255.0.0.0 U lo
0.0.0.0 192.168.1.50 0.0.0.0 UG eth0
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:08:A1:18:46:0A
inet addr: 192.168.1.35 Bcast:192.168.1.255 Mask: 255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets: 376 errors:0 dropped:0 overruns:0 frame:0
TX packets: 691 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
RX bytes:52496 (51.2 Kb) TX bytes:105832 (103.3 Kb)
eth1 Link encap:Ethernet HWaddr 00:08:A1:13:06:10
inet addr: 192.168.2.1 Bcast:192.168.2.255 Mask: 255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets: 376 errors:0 dropped:0 overruns:0 frame:0
TX packets: 126 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
RX bytes:52496 (51.2 Kb) TX bytes:19598 (19.1 Kb)
lo Link encap:Local loopback
inet addr: 127.0.0.1 Mask: 255.0.0.0
UP LOOPBACK RUNNING MTU:1500 Metric:1
RX packets: 253 errors:0 dropped:0 overruns:0 frame:0
TX packets: 253 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
RX bytes:23228 (22.6 Kb) TX bytes:23228 (22.6 Kb)
Cables are OK. I have used them with the router machine before, when I
had just the eth0 installed...and working fine!
I use RH 7.2, kernel 2.4.7-10. Is there any recompiling or new modules
required for the routing to work?
/calle
|