I am connecting two PC's to each other trough an Ethernet cable in order to share files, this is working as intended. If relevant, I am doing it like this.
The problem: The first PC (PC1) is intended to access shared files from PC2 and is connected with an Ethernet cable to internet, and with an another Ethernet cable straight to the PC2. I have two network connections, the first one is called Internet and the second one I call PCConn (which is the PC2).
When the file-sharing connection is disabled internet is available and working, the problem occur once I enable the second connection (called PCConn) in Network Connections which make the computer, PC1, lose internet. It says it is connected to both as intended but I cannot browse internet. PC2 is not connected to internet at all if that is relevant.
As soon as I disable the connection to PC2 internet will start working again.
In order for you to help me I have relevant info from ipconfig -all
on PC1 which is connected to the internet and the other computer:
Windows IP Configuration:
PC2:
Ethernet Adapter PCConn:
DHCP Enabled: No
Autoconfiguration Enabled: Yes
IPv4 Address: 192.168.1.21<Preferred>
Subnet mask: 255.255.255.0
Default gateway: 192.168.1.20
Internet
link, and not set onPCConn
. By setting a default gateway onPCConn
, you are telling the machine that thePCConn
link is a way to reach the broader internet--which it is not. Thus you lose internet connectivity because PC1 is attempting to reach (for example)superuser.com
on your ethernet link now.