Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Technical

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 14th July 2007, 21:50
ilektrojohn ilektrojohn is offline
Junior Member
 
Join Date: Jul 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Linking 2 internet connections

Good evening.
What I'm trying to accomplish is to bond two ethernet based connections as one. I have two different ip addresses(public) from the same subnet and a server running debian etch. Limitations are I cannot use the tutorial for nic bonding posted here because each connection must be on a unique mac address. Does anyone have an idea?
Reply With Quote
Sponsored Links
  #2  
Old 15th July 2007, 13:49
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Did you take a look at these tutorials? http://www.howtoforge.com/nic_bonding
http://www.howtoforge.com/network_bonding_ubuntu_6.10
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 15th July 2007, 14:51
ilektrojohn ilektrojohn is offline
Junior Member
 
Join Date: Jul 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you Falko, I've seen the first tutorial, it doesn't fit my needs.I ll give a try at the second one but at the first glance, it doesn't seem what i need too.
I have 2 differnet interfaces each one of which has a public ip and a unique mac address.I need to preserve the different mac .
The thing is i live in my university dorms and each room has an ethernet port that connects as to cisco switch at each bulding, and all of them are connected to the unuversity's router. I'm using my neighboor's port now he's gone for summer but the problem is that noc locks every connection to the mac of the interface that was first connected.I can spoof my interface, but it's crucial that my 2 interfaces seem to have different mac, otherwise their dhcp server want give me an ip address.
I'll try the second tutorial and give some feedback late today, thanks for your answer

John
Reply With Quote
  #4  
Old 15th July 2007, 19:35
heymrdj heymrdj is offline
Member
 
Join Date: Feb 2007
Posts: 58
Thanks: 2
Thanked 4 Times in 4 Posts
Default

I may be way out in left field with this but:

Isn't the MAC address of a piece of hardware unchangable because it's coded in.

AND

In that light, doesn't ifenslave just use the bond0 interface (and it's unique MAC address) to talk to the computer like a singular device, but in actuality the two cards are their own entity on a network and told what to do by ifenslave rather than the computer

SO

you should be ok working word for word with that guide.

Sorry if I'm way out here.
Reply With Quote
  #5  
Old 15th July 2007, 20:29
ilektrojohn ilektrojohn is offline
Junior Member
 
Join Date: Jul 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

you are partially right about the mac address.its unique but it can be spoofed. i.e in debian you just need to add
Code:
hwaddress MAC ADDRESS
in the interface's section of /etc/network/interfaces
Maybe I 'm just confused about what ifenslave does. I'll have a second look at it. As i said before, the thing that matters to me, is for as far as the rest network is concerned there are two interfaces with different mac addresses so i'lll get two ip addresses assigned to me.I thought ifenslave bonds the two interfaces in a way so they appear to be the same interface for the rest (outside)network.
Reply With Quote
  #6  
Old 15th July 2007, 21:13
heymrdj heymrdj is offline
Member
 
Join Date: Feb 2007
Posts: 58
Thanks: 2
Thanked 4 Times in 4 Posts
 
Default

Nope ifenslave only bonds to the internal. Say it load balances a webpage with two images. The inside world will see it this way:

Bond0 is requesting image 1 and image 2.

The outside world sees this:

Eth0 is requesting image 1
Eth1 is requesting image 2

The outside world sees two individual cards, and ip's. Only your computer notices a bond.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiplexing 2 or more internet connections into 1! beatty_t Suggest HOWTO 1 11th October 2008 07:55
MySql Master-Master Replication via Internet Rocky Installation/Configuration 3 27th June 2007 15:44
internet sharing with centOS sam_rag Installation/Configuration 6 19th February 2007 14:46
smtp connections to nameservers IP kyriakos Server Operation 10 16th February 2007 18:14
Dns not propagated to internet? Randy Installation/Configuration 3 18th December 2006 17:10


All times are GMT +2. The time now is 17:55.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.