Networking
--
Questions
--
Followers
Top Experts
Say we have 2 interconnected PCs, with 2 NICs each. We connect both NICs of both PCs. For example an ethernet connection with a patch cable, and an ad-hox WiFi connection.
Each PC has its own IP address and/or its NetBIOS name. Say PCs both run windows, with windows networking (file sharing).
My question is, at a first level, if we copy a file from one pc to another, which connection it will use and why?
Is this a silly question?!?! :/
Zero AI Policy
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
the slowest connection usually has the highest "cost"
so, if using a 10mbit ethernet, and a 11mbit wireless, then the wireless, but if using a 100mbit ethernet, and an 11mbit wireless, then the ethernet






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
Actually you can assign multiple IPs to a NIC, but only one primary; the others will be aliases and therefore the same NIC.
Steven: Who decides upon the cost?
cdsmark, ellesd: I insist on windows file sharing, where the IP addresses are transparent to the user. E.g. I am copying a file to a shared folder... just that.
ellesd: Same question again: how do you define "appropriate" NIC upon establishing a share? Who and how decides?
(As soon as I get a patch cable, I will try myself. However, the only thing I will be able to see is each NICs activity from the icon.)
the operating system.

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
Is your comment "authoritative"? Can you provide resources or bibliography? I still cannot understand which is or where is the mechanism that does this kind of "routing". If it's the OS in general, do all OS's do that?
Steve






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
There has been an implication! After all, the system doesn't seen to be very concerned. In the above configuration, the system prefers the slow (11M) connection, and doesn't user the fast (100M) at all. In other circumstances it did use the fast interface, but it looks like it chooses in random.
I presume that only with some static routing I will overcome the problem. If you're reading this, do u have any ideas?
I have also tried a simple persistent static route, but doesn't work (unless I do it wrong).
use route print

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
Interface List
0x1 ..........................
0x1000003 ...00 50 bf 58 81 30 ...... Realtek RTL8139/810x Family Fast Ethernet NIC
0x1000004 ...00 09 5b 0c 8b a0 ...... NETGEAR MA101 USB Adapter
==========================
==========================
Active Routes:
Network Destination     Netmask      Gateway    Interface  Metric
     0.0.0.0      0.0.0.0    192.168.0.1   192.168.0.3    1
    127.0.0.0     255.0.0.0     127.0.0.1    127.0.0.1    1
   192.168.0.0   255.255.255.0    192.168.0.3   192.168.0.3    1
   192.168.0.3  255.255.255.255     127.0.0.1    127.0.0.1    1
  192.168.0.255  255.255.255.255    192.168.0.3   192.168.0.3    1
   192.168.1.0   255.255.255.0    192.168.1.1   192.168.1.1    1
   192.168.1.1  255.255.255.255     127.0.0.1    127.0.0.1    1
   192.168.1.2  255.255.255.255    192.168.1.1   192.168.1.1    1
  192.168.1.255  255.255.255.255    192.168.1.1   192.168.1.1    1
    224.0.0.0     224.0.0.0    192.168.0.3   192.168.0.3    1
    224.0.0.0     224.0.0.0    192.168.1.1   192.168.1.1    1
 255.255.255.255  255.255.255.255    192.168.1.1   192.168.1.1    1
Default Gateway: Â Â Â 192.168.0.1
==========================
Persistent Routes:
 Network Address      Netmask  Gateway Address  Metric
   192.168.1.2  255.255.255.255    192.168.1.1    1
0.3 and 1.1 for the first pc
0.6 and 1.2 for the 2nd.
So I need traffic between those two to go via the 1.1-1.2 interface.
Network Address      Netmask  Gateway Address  Metric
   192.168.1.2  255.255.255.255    192.168.1.1    1
it is a host address
a valid netwowrk address would be 192.168.0.0
but both 192.168.1.2 and 192.168.1.1 are on the same subnet
route add 192.168.0.0 mask 255.255.255.0 192.168.1.1
(if the 192.168.1.1 NIC is on this machine)






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
So I need traffic between those two to go via the 1.1-1.2 interface
traffic destined for the local network will stay in the local network, and will not use a gateway unless the ip address is not on the local net
so, if no gateway is defined, traffic for the 192.168.0 network will use the 192.168.03 NIC and traffic destined for the 192.168.1 network will use the 192.168.1.1 NIC

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
Networking
--
Questions
--
Followers
Top Experts
Networking is the process of connecting computing devices, peripherals and terminals together through a system that uses wiring, cabling or radio waves that enable their users to communicate, share information and interact over distances. Often associated are issues regarding operating systems, hardware and equipment, cloud and virtual networking, protocols, architecture, storage and management.