You are not logged in.

#1 2011-11-11 00:21:38

aviynw
Member
Registered: 2009-04-01
Posts: 26

Obtaining two ip addresses on one interface using dhcp

I have one network interface on my computer and I would like to obtain two ip addresses from a dhcp server.  I read about ip address aliasing, but since that doesn't create two mac addresses, and as I understand it dhcp servers distinguish clients by mac address, I think this would be impossible.  I also read about using vlans for this and I got one set up following the directions here https://wiki.archlinux.org/index.php/VLAN.  However, if I change my mac address on my new vlan and then I run dhcpcd on that vlan I receive no response from the dhcp server.  Is there a way to accomplish what I'm trying to do?  I'm pretty sure virtualbox does this with the bridged networking option.

And here is why I want to do this.  I'm running a multiseat setup, running wine on both machines, and am trying to play steam games online simultaneously from each session in the multiseat.  However, steam only allows one of my sessions to connect at a time, even when each sessions is using a separate steam account.  I assume this is because both sessions share an ip address, steam recognizes that two separate accounts are trying to connect to a server from the same ip address, and doesn't allow it

Thanks for any help.

Now that I realize virtualbox does do the same thing with something called bridged networking I have a new search term to use.  I'll see what else I can find!

Offline

#2 2011-11-11 00:41:41

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Obtaining two ip addresses on one interface using dhcp

Ehmm... bridged networking is two (or more) interfaces using a single IP address, so not what you're looking for.

Do you have to use dhcp? or could you configure two static ip addresses using aliases?

Offline

#3 2011-11-11 01:17:55

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,237
Website

Re: Obtaining two ip addresses on one interface using dhcp

VLAN is definitely not what you want. It creates two virtual devices on logically separate Layer 2 networks. The reason you didn't get a response to the DHCP is because the reply from the DHCP server didn't have a VLAN tag in the packet header, so the reply was sent to the "other" NIC, not the VLAN NIC that made the request.

I am not aware of any way to do what you are after. Static Addressing will be the simplest way to achieve what you need. It would probably be a good idea to at least just try static addresses first to see if that actually solves your problem with steam before you invest a whole lot of time trying to figure out the DHCP part.

Offline

#4 2011-11-11 01:30:34

aviynw
Member
Registered: 2009-04-01
Posts: 26

Re: Obtaining two ip addresses on one interface using dhcp

tomk wrote:

Ehmm... bridged networking is two (or more) interfaces using a single IP address, so not what you're looking for.

Do you have to use dhcp? or could you configure two static ip addresses using aliases?

Really? from vbox website "With bridged networking, VirtualBox uses a device driver on your host system that filters data from your physical network adapter. This driver is therefore called a "net filter" driver. This allows VirtualBox to intercept data from the physical network and inject data into it, effectively creating a new network interface in software." - http://www.virtualbox.org/manual/ch06.html#idp12181312

"Bridged networking connects a virtual machine to a network using the host computer's Ethernet adapter. The virtual machine is seen by the network as having its own IP address and ethernet hardware address as if it were an autonomous physical machine."  - http://kb.mit.edu/confluence/pages/view … Id=4259952

And yeah, I'm connected to a college network and I have to use dhcp.

Last edited by aviynw (2011-11-11 01:32:56)

Offline

#5 2011-11-11 02:57:18

aviynw
Member
Registered: 2009-04-01
Posts: 26

Re: Obtaining two ip addresses on one interface using dhcp

BTW, it turns out the reason I'm getting kicked on steam has nothing to do with the ip address thing.  My wine config must be slightly different on each user account.

I would still like to do the two ip address thing anyways though.

Offline

Board footer

Powered by FluxBB