Using Multiple NetAdapters Concurrently

Welcome Forums General PowerShell Q&A Using Multiple NetAdapters Concurrently

This topic contains 2 replies, has 2 voices, and was last updated by

 
Participant
1 year, 3 months ago.

  • Author
    Posts
  • #73124

    Participant
    Points: 0
    Rank: Member

    This is something I've wondered after for a while and I couldn't think of a different title in under 80 characters. What I'm trying to do is use both my WiFi and Ethernet at the simultaneously, on different networks. Is there a way to have PowerShell open a connection, as if opening a workflow, using the Ethernet for an internal/ad hoc network connection, while maintaining my Internet connection on my WiFi? For example, I'm reprogramming my firewall and don't want to put it on my network yet. Should I just use ROUTE to say anything going to my firewall at IP(a) use InterfaceAlias "eth2" and everything else use InterfaceAlias "WiFi"?
    Ideas?

    Krieger-bot

  • #73133

    Participant
    Points: 0
    Rank: Member

    This isn't a really a powershell question. It's more of a Windows/Networking question. However, you can just configure your LAN NIC with it's IP and Subnet, and not configure a Gateway address on it. That way all traffic for the local network of that interface will go out of that interface. All traffic for the local network of the Wireless network will go out the wireless interface, and all traffic for unknown networks will go to the default gateway, which is on the wireless network.

    • #74038

      Participant
      Points: 0
      Rank: Member

      Not even as something like a PSSession?

The topic ‘Using Multiple NetAdapters Concurrently’ is closed to new replies.