On Tue, 2003-08-26 at 07:58, Rik Thomas wrote:
> On Mon, 2003-08-25 at 06:24, Jason Dixon wrote:
> > On Sun, 2003-08-24 at 23:35, Rodolfo J. Paiz wrote:
> > > At 8/24/2003 19:48 -0700, you wrote:
> > > >Question, i have a server that i would like to use
> > > >two nics.  i have two ips that are on the same subnet
> > > >and they both have the same default route.
> > > >
> > > >how do i tell traffic that comes to one ip that is assigned
> > > >to eth0 to go back through eth0  and one ip that is assigned
> > > >to eth1 to go back trhoug eth1 when it goes back out to the
> > > >net ?
> > > 
> > > I'm no expert, but... AFAIK, you don't. AFAIK, you can't.
> > > 
> > > You can only have one default route, and that route points to one 
> > > interface. Most people try to have two Ethernet cards on the same subnet so 
> > > they can get double the bandwidth, but it simply does not work. If you want 
> > > double the bandwidth, bond the two interfaces or aggregate them so they act 
> > > like a single one. If you want to offer some services on one IP and other 
> > > services on the other IP, realize that you're going to have to find some 
> > > other way.
> > 
> > Yeah, it's called an alias.  You're right, you can't (AFAIK) have two
> > interfaces with the same default gateway.  If they want to bond the two
> > NICs, great.  But the only way (IIRC) to get multiple IPs working on the
> > same segment is to use aliases (which are easier anyway).
>
> Let's clear a few things up.
> Aliases are on the same NIC, not across multiple NICs unless you are
> bonding.  Yes you can have two NICs on the same subnet with the same
> gateway.  Without getting in to the guts of packets and how they work,
> the packet itself will "know" how to get back out home.  Using a basic
> default route, having no other routing on the machine, all packets will
> go back out the interface it came in.  We do this on countless hosting
> machines on our network.

Sorry if my previous comment was ambiguous, but I *know* that an alias
only exists on a single NIC.  That is the purpose of my suggestion... to
explain that to use 2 IPs on the same subnet, you don't have to use 2
dedicated cards, you can simply use aliases.  As far as the multiple
cards/same gateway argument goes, thanks for clarifying that.

Ever notice how a lack of OP information causes confusion that increases
proportionately to the length of the thread?  ;-)

-- 
Jason Dixon, RHCE
DixonGroup Consulting
http://www.dixongroup.net


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to