more 3C900-combo data points

Piotr Kasprzyk kwadrat@homer.iinf.polsl.gliwice.pl
Sat May 15 06:20:50 1999


Hi !
> Still, I do want it to work as eth1.  So I'll ask a (slightly off-topic)
> routing question: I first set up the ne2k-pci card as eth0 (cable modem
> WAN) with:
> 
> ifconfig eth0 ${IPADDR_0} netmask ${NETMASK_0} broadcast ${BROADCAST_0}
> route add -net ${NETWORK_0}
> route add default gw ${GATEWAY_0} metric 1
> 
> 
> Then I try to set up eth1 (192.168.4 LAN) with:
> 
> ifconfig eth1 ${IPADDR_1} netmask ${NETMASK_1} broadcast ${BROADCAST_1}
> route add -net ${NETWORK_1}
> 
> 
> But that's not enough.  Do I need something like:
> 
> route add 192.168.4 gw 192.168.4.1 metric 1
            ^^^^^^^^^
> 
> ?

  I would add such a line:

  route add 192.168.4.0 netmask ${NETMASK_1} eth1
  in order to say that this route is on eth1.
  BTW, the short form "192.168.4" is incorrect, because
  is is treated as HOST "192.168.0.4".

  Piotr Kasprzyk