[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re : Two Ethernet Cards



Hi!
   I guess you know that each ethernet card(or network device, in general) 
has an IP no. associated with it. Since your kernel is detecting the cards, 
you shouldn't have a problem. You don't ping an Ethernet card, but the IP 
no. associated with it. To start a configuration affresh, you could start 
with
#ifconfig eth0 down
#ifconfig eth1 down
Then, associate each ethernet card with an IP.
#ifconfig eth0 192.168.0.1 netmask 255.255.255.0 up
#ifconfig eth1 192.168.1.1 netmask 255.255.255.0 up
( The ethernet cards are assumed part of a Class-C network ie. x.y.z.1 - 
x.y.z.254 ).
Then check your routing table to check for entries for eth0 and eth1.
If no entry for a card exists,
# route add -net 192.168.0.0 netmask 255.255.255.0 eth0
# route add -net 192.168.1.0 netmask 255.255.255.0 eth1
After all this, we have eth0 associated with 192.168.0.1 and eth1 associated 
with 192.168.1.1. Then you could try
#ping 192.168.0.1
#ping 192.168.1.1
to check the configuration on your system. Gateways could then be setup.

Maybe you should take a look at /usr/doc/HOWTO/NET3-HOWTO...

Vimal Mathew
Model Engg. College
Cochin


______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

- --------------------------------------------------------------------
For more information on Linux in India visit http://www.linux-india.org/

------------------------------