Instead of using multiple NIC's a simple solution would be to alias your  LAN 
card with the number of card that you want. You can, by using this aliasing 
feature, create logical 255 NICs (!!!) on your single physical NIC.

Architecture:
connect the cable from your LAN card onto a Switch(recommended)/HUB (costs 
about Rs2000 for a new one or you may use the existing one). Conenct canles 
from the networks that you want to connect to, into this switch/hub. 

Assumptions:
 I assume that you presently have a private network address of 
129.168.3.24/255.255.255.0. 
you want to connect to another network, say 172.16.0.0/255.255.255.0 on which 
you will have an address 172.16.0.3

Try out these commands:
1) to configure your first interface (192.168.3.24):
ifconfig eth0 192.168.3.24 netmask 255.255.255.0

2) to configure your second interface (192.168.3.24) with aliasing using the 
first NIC itself:
ifconfig eth0:1 172.16.0.3 netmask 255.255.0.0

3)[optional]provide your gateway (192.168.3.254):
route add default gw 192.168.3.254

4)check by doing a broadcast ping to both the networks
ping -b 192.168.3.0
ping -b 172.16.0.3

If there are are other hosts on your networks ,your ping should return results 
from other hosts on your networks.

to make the changes permanent, put this commands (not the ping commands ;-) ) 
in your /etc/rc.local file.
                                      
happy aliasing
               -santanu
_________________________________________________________________
Powered by http://www.emailpinoy.com - Your 1 GB mailbox is waiting!
If this e-mail is a spam report it to us and we will delete this user's account 
ASP.

--
To unsubscribe, send mail to [EMAIL PROTECTED] with the body
"unsubscribe ilug-cal" and an empty subject line.
FAQ: http://www.ilug-cal.org/node.php?id=3

Reply via email to