|
發表於 2019-2-14 17:35:10
|
顯示全部樓層
vhs 發表於 2019-2-14 16:48
Would you please provide me with the instruction to bridge two network adapters in Snake-oil OS so ...
If you want to create a network bridge you have to go here to download a "full network stack" kernel. Pretty sure this kernel supports the newer Intel NIC, but can't confirm at this stage (going out again soon).
IMO a network bridge is used when you want to bridge two different networks with different protocols together to the same physical layer. Bridging is a very expensive process as it takes up some CPU time to copy the data from one stack to another. Bridging is combining two network interface as if they are one. There are used in some things like Docker where this is needed. But not the right solution for almost everything else.
I suspect what you want to do really is IP routing, this is more efficient.
To set this up, let's say your phone is 192.168.1.100/24 (this is your primary network). On this network you server has an IP of 192.168.1.101/24
You then set your Server's second port to static IP of 192.168.2.1/24 and the other machine to 192.168.2.2/24. You'd also need to use the "full network stack" kernel as that includes the IP routing module. That way you talk to the server on 192.168.1.101, and the server communicates with the other machine via the 192.168.2.0/24 network.
Note this 2nd machine (192.168.2.2) can't connect to the Internet like this. You have to set the gateway on 192.168.2.2 to be 192.168.2.1, and then on your main router, add a static route to route 192.168.2.0/24 to 192.168.1.101.
I'm using VLAN instead as I think it'd scale better. |
評分
-
2
查看全部評分
-
|