[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linux-tr] Linux Routing Problem Between TR0 and ETH0 (fwd)




I  have a Slackware Linux 2.0.34 box with an IBM 16/4 ISA TR card, and a
PCI  NE2000 compatible ethernet card, with each card defined on a
different subnet.  Each card works well on its own subnet, however I
cannot get packets routed between the two subnets.  Although I'm fairly
new to Linux, I believe my rc.inet1 is correct - I've attached it along
with output from route and ifconfig.

Does this problem stem from the fact multicast is not yet available for
Token Ring adapters on Linux?   I'd really appreciate any help with
this.

Thanks,
David Pineau
Waterdown, Ontario, Canada
david.pineau@hwcn.org
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
localnet        *               255.255.255.0   U     0      0        2 tr0
10.7.8.0        *               255.255.255.0   U     0      0        1 eth0
loopback        *               255.0.0.0       U     0      0        2 lo
default         *               0.0.0.0         U     1      0        0 eth0
#! /bin/sh
#
# rc.inet1	This shell script boots up the base INET system.
#
# Version:	@(#)/etc/rc.d/rc.inet1	1.01	05/27/93
#

HOSTNAME=`cat /etc/HOSTNAME`

# Attach the loopback device.
/sbin/ifconfig lo 127.0.0.1
/sbin/route add -net 127.0.0.0 netmask 255.0.0.0 lo

# IF YOU HAVE AN ETHERNET CONNECTION, use these lines below to configure the 
# eth0 interface. If you're only using loopback or SLIP, don't include the
# rest of the lines in this file.
###############################################################
###############################################################
##  Begin tr0 - Token Ring Card
###############################################################
###############################################################


# Edit for your setup.
IPADDR="10.7.7.25"	# REPLACE with YOUR IP address!
NETMASK="255.255.255.0"	# REPLACE with YOUR netmask!
NETWORK="10.7.7.0"	# REPLACE with YOUR network address!
BROADCAST="10.7.7.255"	# REPLACE with YOUR broadcast address, if you
			# have one. If not, leave blank and edit below.
GATEWAY=""	# REPLACE with YOUR gateway address!

# Uncomment the line below to configure your ethernet card.
/sbin/ifconfig tr0 ${IPADDR} broadcast ${BROADCAST} netmask ${NETMASK}

# If the line above is uncommented, the code below can also be uncommented.
# It sees if the ethernet was properly initialized, and gives the admin some
# hints about what to do if it wasn't.
if [ ! $? = 0 ]; then
  cat << END
Your ethernet card was not initialized properly.  Here are some reasons why this
may have happened, and the solutions:
1. Your kernel does not contain support for your card.  Including all the 
   network drivers in a Linux kernel can make it too large to even boot, and
   sometimes including extra drivers can cause system hangs.  To support your
   ethernet, either edit /etc/rc.d/rc.modules to load the support at boottime,
   or compile and install a kernel that contains support.
2. You don't have an ethernet card, in which case you should comment out this
   section of /etc/rc.d/rc.inet1.  (Unless you don't mind seeing this error...)
END
fi

# Uncomment these to set up your IP routing table.
/sbin/route add -net ${NETWORK} netmask ${NETMASK} tr0
if [ ! "$GATEWAY" = "" ]; then
 /sbin/route add default gw ${GATEWAY} netmask 0.0.0.0 metric 1
fi

###############################################################
###############################################################
##  Begin eth0 - Ethernet Card
###############################################################
###############################################################

IPADDR="10.7.8.25"	# REPLACE with YOUR IP address!
NETMASK="255.255.255.0"	# REPLACE with YOUR netmask!
NETWORK="10.7.8.0"	# REPLACE with YOUR network address!
BROADCAST="10.7.8.255"	# REPLACE with YOUR broadcast address, if you
			# have one. If not, leave blank and edit below.
GATEWAY="10.7.8.25"	# REPLACE with YOUR gateway address!

# Uncomment the line below to configure your ethernet card.
/sbin/ifconfig eth0 ${IPADDR} broadcast ${BROADCAST} netmask ${NETMASK}

# If the line above is uncommented, the code below can also be uncommented.
# It sees if the ethernet was properly initialized, and gives the admin some
# hints about what to do if it wasn't.
if [ ! $? = 0 ]; then
  cat << END
Your ethernet card was not initialized properly.  Here are some reasons why this
may have happened, and the solutions:
1. Your kernel does not contain support for your card.  Including all the 
   network drivers in a Linux kernel can make it too large to even boot, and
   sometimes including extra drivers can cause system hangs.  To support your
   ethernet, either edit /etc/rc.d/rc.modules to load the support at boottime,
   or compile and install a kernel that contains support.
2. You don't have an ethernet card, in which case you should comment out this
   section of /etc/rc.d/rc.inet1.  (Unless you don't mind seeing this error...)
END
fi

# Uncomment these to set up your IP routing table.
/sbin/route add -net ${NETWORK} netmask ${NETMASK} eth0
if [ ! "$GATEWAY" = "" ]; then
 /sbin/route add default gw ${GATEWAY} netmask 0.0.0.0 metric 1
fi

###############################################################
###############################################################
##  End eth0 - Ethernet Card
###############################################################
###############################################################

# End of rc.inet1
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Bcast:127.255.255.255  Mask:255.0.0.0
          UP BROADCAST LOOPBACK RUNNING  MTU:3584  Metric:1
          RX packets:69 errors:0 dropped:0 overruns:0 frame:0
          TX packets:69 errors:0 dropped:0 overruns:0 carrier:0
          Collisions:0 

tr0       Link encap:16/4 Mbps TR  HWaddr 10:00:5A:7A:8E:21  
          inet addr:10.7.7.25  Bcast:10.7.7.255  Mask:255.255.255.0
          UP BROADCAST RUNNING  MTU:2000  Metric:1
          RX packets:74 errors:0 dropped:0 overruns:0 frame:0
          TX packets:52 errors:0 dropped:0 overruns:0 carrier:0
          Collisions:0 
          Interrupt:7 Base address:0xa20 

eth0      Link encap:Ethernet  HWaddr 00:60:67:65:61:85  
          inet addr:10.7.8.25  Bcast:10.7.8.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:38 errors:0 dropped:0 overruns:0 frame:0
          TX packets:20 errors:0 dropped:0 overruns:0 carrier:0
          Collisions:1 
          Interrupt:9 Base address:0xd400