From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steve Wright Date: Mon, 29 Sep 2003 01:36:46 +0000 Subject: Re: [LARTC] Linux router configuration?? MIME-Version: 1 Content-Type: multipart/mixed; boundary="=-Da7IBvOYAX7KezWt0ihS" Message-Id: List-Id: References: In-Reply-To: To: lartc@vger.kernel.org --=-Da7IBvOYAX7KezWt0ihS Content-Type: text/plain Content-Transfer-Encoding: 7bit On Fri, 2003-09-26 at 19:32, Raghuveer wrote: > Can I have both the network cards in the same n/w...? Becoz If I try to > use both NIC's with the same n/w, running <$ route -n> we can see either > eth1 or eth0 repeated twice. Pls let me know where is the problem..? you don't need to do this. just add both IP addresses to the same NIC, viz ; ip address add 192.168.0.254/24 dev eth0 ip address add 10.128.254.254/16 dev eth0 and proceed as usual. The subnet routes are added automatically. /steve --=-Da7IBvOYAX7KezWt0ihS Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit On Fri, 2003-09-26 at 19:32, Raghuveer wrote:

Can I have both the network cards in the same n/w...? Becoz If I try to 
use both NIC's with the same n/w, running <$ route -n> we can see either 
eth1 or eth0 repeated twice. Pls let me know where is the problem..?


you don't need to do this.  just add both IP addresses to the same NIC, viz ;

ip address add 192.168.0.254/24 dev eth0
ip address add 10.128.254.254/16 dev eth0

and proceed as usual.  The subnet routes are added automatically.



/steve

--=-Da7IBvOYAX7KezWt0ihS-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/