Connect dual NIC using one cable... possible?


Recommended Posts

Hi guys,

I've been googling for ages. NIC#1 is connected normally through a cable, with IP assigned by DHCP server. Is it possible to get NIC#2 to connect via NIC#1 and obtain another IP via DHCP? Any ideas? I'm running Vista x64.

Thanks in advance :)

Physically no but I think if you ran sort of a virtual adapter you can .Just how virtual machine software works.

You can have as many IP addresses as you want on virtual interfaces (supported by Linux natively, and through 3rd party stuff in Windows). It has nothing to do with the physical device, as it is a network stack/driver thing.

The ISP is only providing Service for ONE connection.

Thanks for the reply guys.

You can have as many IP addresses as you want on virtual interfaces (supported by Linux natively, and through 3rd party stuff in Windows). It has nothing to do with the physical device, as it is a network stack/driver thing.

Yes, the only thing i can think of so far is to use VM, but the thing is I don't really want to run a full VM with an OS just to get an IP address.

Is there any 3rd party software that only install virtual interfaces?

VirtNet is the only one i found but it doesn't support vista x64 :|

Are you just wanting multiple IPs? You do not need a virtual interface for that -- you can put many IPs on one interface.

post-14624-1227191548_thumb.jpg

Im not sure what your trying to accomplish exactly?? But you do not need any 3rd party software or running virtual machines to give your machine more than 1 IP.. You just can not be running dhcp and then add multiples.. Change to static - ie assign the IP on your machine, and then you can add lots more.

All I'm trying to do is get 2 dynamic IP from DHCP on one computer, without additional hardware.

If you're feeling really adventurous, you could split the pairs to accomplish this.

Why not just get a small switch?

lol actually I did try that when running 10/100 LAN, but for something else. cut open my cat5 cable and use the 2 unused pairs. Now I'm running gigabit lan so all pairs are used.

I have a switch, but it's too much work to run another cable to that switch. I guess it'll work if i get another switch and let it sit beside my computer. I'm hoping to get this done by software though. :)

And for what possible reason could you need 2 dhcp IPs from the same dhcp server for? Utterly pointless!!

This is just a possible workaround to a problem I have, so I just wanna see if anyone know a simple way to get 2 IP. I guess there isn't any, at least not on vista x64 :shifty:

I already told you how to get 2 IPs, or 3 or 4 or 7, etc.. Just set your IP as static -- and then add more. But no you can not get multiple IPs from dhcp to the same interface.

And I am with Sawyer12 -- what is the problem your trying to workaround exactly??

And I am with Sawyer12 -- what is the problem your trying to workaround exactly??

Well that's kinda off topic but anyway,

I have a second PC(winxp) which is used roughly once a week. My network setup is simple, both PC are connected to a swtich and the switch goes to a cable modem. My ISP provides 2 dynamic public IP. That's means the IP on my 2nd PC changes everytime I turn it on. I don't want that to happen since I have quite a few settings tied to that IP (firewall, routes, etc).

So possible solutions are:

1. leave 2nd PC on all the time

2. get addtional hardware

3. write some automation script to change all the settings tied to that IP, and run it on both computers whenever i turn 2nd PC on.

4. hold the IP (and of course i'll disable this virtual interface before i turn 2nd PC on)

I won't consider #1 and #2.

I'm not sure how to do #4 so I'm here to see if it's possible. I guess now i'm left with #3.

If you know any other possible solutions, please share ;)

btw thanks for all the input :)

Would option 4 even work? Most ISP's will change the Dynamically assigned IP if the MAC Address of the hardware changes, I suppose you could spoof a MAC address if you really wanted to, but this seems way overly complicated for what you want to do. You really should just get static IP's.

Bgnn32 exactly -- he would have to set the MACs of the different interfaces to be the same.

Even though he does not like the option -- I see little point to having machines directly connected to the net, I would get a router or run a linux distro as his router that allows for multiple IPs on the wan side interface. This should keep his public IPs pretty much the same since it would not go offline.

I'd love to get static IP if I can... but no unless i upgrade to some high end business internet plan, with a static IP at an additional cost.

gigabit routers are kinda pricey. I sometimes do transfer large amount of data between computers and my apt doesn't have space for another computer to run linux...

I should start writing some automation script :rolleyes:

Who said anything about a gig router?? Use a gig switch to connect your machines -- I also do large file transfers and backups, etc. and would never go back to 100mbit on the lan.

But we are not talking about the lan, we are talking about your public side -- I am quite sure you do not have anything close to a gig connection on the public side.. so your router does not need gig interfaces anywhere on it ;)

On the cheap its possible using dd-wrt or openwrt running on say a wrt54g to allow for multiple wan IPs - more often then not these are static IP.. But have a search and you will find some threads where they talk about using dhcp on the public side..

Here is a wiki page from openwrt showing using dhcp on the wan side.. This is more often then not used with multiple ISPs -- but should work just fine with same ISP, etc.

http://wiki.openwrt.org/OpenWrtDocs/Kamika...ion/MultipleWan

snippet;

--

This first is to create vlan (one per WAN connection)

in the /etc/config/network for two wan you'll have:

config switch eth0

option vlan0 "2 3 4 5*"

option vlan1 "0 5"

option vlan2 "1 5"

...

#### WAN configuration

config interface wan

option ifname "eth0.1"

option proto dhcp

config interface wan2

option ifname "eth0.2"

option proto dhcp

During this tutorial I'lL consider both your ISPs use DHCP, but you can easily change it to static IP.

--

So looks like to me for the cost a wrt54GL router your problem would be solved ;)

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • The problem isn't with Epic, it's with the platform holders like Steam and Nintendo, they should be a lot more strict in their review process.
    • Hello, Installed here without issue. Regards, Aryeh Goretsky
    • Microsoft updates Visual Studio Code with easier language model discovery and in-app search by Paul Hill Microsoft has released Visual Studio Code 1.125, its latest weekly release. This week, the company has focused on discovering and installing extra language models via the Marketplace; searching the web and securely browsing over remote connections without leaving VS Code; choosing how long VS Code waits before installing extension updates; and delivering managed Copilot settings through existing device management tooling. In older versions of VS Code, extensions could contribute their own model providers, but to find these extensions, you needed the right tags to search for in the Extension view. Now, the Language Models editor gives you an Install Model Providers button that opens the Extensions view, which is filtered to extensions that contribute model providers, making it easier to find and install them. Once you install a provider, its model will appear in the model picker. If you use the integrated browser much, you can now look up information without leaving VS Code by typing a query into the integrated browser’s address bar. It will use your configured search engine, the same way a standalone browser does. You can use workbench.browser.searchEngine to pick a search engine. When the browser is opened in a remote workspace, it's now possible to proxy HTTP(S) traffic via the remote connection. This allows you to connect to any ports or services that can only be accessed from the remote machine. If you read our coverage from two weeks ago about VS Code 1.123, you might have seen that extension updates have a two-hour delay as a safety measure. In this update, Microsoft is giving you the ability to configure the time of the delay. You can find it under extensions.autoUpdateDelay. Finally, with this update, admins can deliver managed GitHub Copilot settings through native device management (MDM) channels on Windows and macOS, in addition to account-based enterprise settings files. Settings delivered via MDM appear as policy-enforced in VS Code and can’t be overridden locally. Future updates will extend the supported policy keys across Copilot surfaces. You can download the update from the Visual Studio Code website now.
    • "it opens up new doors for people who prefer using Edge, but cannot be bothered to configure a Microsoft account" You already have a Microsoft account if you are using Windows 11, because you can't set it up without one.
  • Recent Achievements

    • Week One Done
      Classifyskilleducation earned a badge
      Week One Done
    • One Month Later
      eurospharma62 earned a badge
      One Month Later
    • Week One Done
      With What earned a badge
      Week One Done
    • Week One Done
      Harris Gilbert earned a badge
      Week One Done
    • One Month Later
      Vincian earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      543
    2. 2
      +Edouard
      171
    3. 3
      PsYcHoKiLLa
      84
    4. 4
      ATLien_0
      64
    5. 5
      neufuse
      64
  • Tell a friend

    Love Neowin? Tell a friend!