LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-03-2008, 06:11 AM   #1
skob
LQ Newbie
 
Registered: Dec 2008
Posts: 6

Rep: Reputation: 0
Question using two NIC with two IPs to connect


Hello

I wonder if there is the possibility to use two NIC (eth0 and eth1) to connect to the same website. Eg. have two browser instances, one takes eth0 and the other eth1.

The reason is, that I'm developing a multi user web application that i need to test online, and i don't have a second machine at home. But my ISP provides me with two dynamic IPs and my machine has two NICs, so i could connect both of them trough a switch to my modem, which is only a bridge, no router, to get two different IPs. Not quite sure about that, didn't buy the switch so far.

Is there a way to point with two connections to the same web application? Is special software, configuration hacks or something like that needed?

Many thanx in advance
skob


OS:
Ubuntu 8.04 (hardy) 64bit

NICs:
Marvell Yukon 88E8001/8003/8010 PCI
Marvell Yukon 88E8056 PCI-E

Diagramm:
Code:
      _________
      |       |
/---> | Modem | <--------> Internet
|     |_______|
| 			
|     __________         |-----------|
|     |        | <---> eth0  Linux   |
\---> | Switch |         |   Box     |
      |________| <---> eth1  2x FF   |
                         |-----------|

Last edited by skob; 12-03-2008 at 06:16 AM. Reason: forgot addition infos
 
Old 12-03-2008, 09:20 AM   #2
miedward
Member
 
Registered: Feb 2007
Distribution: RHEL 4, SOLARIS 10
Posts: 91

Rep: Reputation: 15
I think you are probably over engineering this. HTTP is fairly dumb and deals with connections individually anyway. If what you want is to test higher volumes of connections just open a couple different browsers or write a script to send requests more quickly (wget or somesuch).

If you really want to have the connections come from separate IP addresses, I would suggest using VMware (or some other virtualization product) and bind a virtual machine to the other IP address. Basically what this does is give you a second computer without needing a separate stack of hardware. I don't think you probably even need the network card, just assign the other IP address to the VM.
 
Old 12-03-2008, 11:51 AM   #3
skob
LQ Newbie
 
Registered: Dec 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Thanx for your fast answer. I will try it with VM.

The thing i want to test is a login, which is bound to an IP address. The application should not allow login of more than one user per IP address.
 
Old 12-04-2008, 07:36 AM   #4
miedward
Member
 
Registered: Feb 2007
Distribution: RHEL 4, SOLARIS 10
Posts: 91

Rep: Reputation: 15
VMware should work fine for that if you used "bridged networking" and then set up the network on the virtual machine to use your other IP.

VMware is really handy anyway.
 
  


Reply

Tags
network


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to assign two IPs on same NIC arvind_77_99 Linux - Newbie 10 01-09-2008 06:25 PM
Multiple IPs On One NIC? dirtmaster88 Slackware 14 09-21-2007 01:56 PM
2 DHCP IPs, one NIC? lil_drummaboy Linux - Networking 1 10-24-2005 04:36 PM
2 IPs on 1 NIC mephitic Linux - Networking 6 07-19-2004 03:39 PM
multiple IPs, one nic v4lu3s Linux - Networking 4 02-07-2004 11:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration