Skip to content

Instantly share code, notes, and snippets.

@dagrons
Last active October 6, 2021 06:20
Show Gist options
  • Select an option

  • Save dagrons/273fe811189b7729bddfd23af1772969 to your computer and use it in GitHub Desktop.

Select an option

Save dagrons/273fe811189b7729bddfd23af1772969 to your computer and use it in GitHub Desktop.
分享无线网连接到有线网 tutorial
原理应该类似于NAT实现机制
1. control panel => 网络与共享中心 => 更改适配器设置 => 某网卡属性 => 分享 => 分享到(需要被分享的网卡)(这张网卡作为NAT中心使用)
2. 见到提示信息,就知道该网卡类似于NAT机制,所以需要根据提示信息去设置对应被分享的网卡的IP,网关可以缺省
3. 此时,被分享的网卡就是NAT中心了,然后将需要上网的主机和本机通过网线连接,就可以上网了
总结
WIFI <-> Ethernet(as NAT server) <-> Other PC(as NAT Client)
Refs
[1]https://www.tomshardware.com/how-to/share-internet-connection-windows-ethernet-wi-fi
[2]https://www.cnblogs.com/handsome1013/p/13957581.html#:~:text=z%2Fq714850777.htm-,win10%E6%97%A0%E6%B3%95%E5%90%AF%E7%94%A8internet%E8%BF%9E%E6%8E%A5%E5%85%B1%E4%BA%AB%EF%BC%8C%E4%B8%BAlan%E8%BF%9E%E6%8E%A5%E9%85%8D%E7%BD%AE,%E4%BD%BF%E7%94%A8%E8%87%AA%E5%8A%A8ip%E5%AF%BB%E5%9D%80%E3%80%82&text=%E8%A7%A3%E5%86%B3%E6%96%B9%E6%B3%95%EF%BC%9A%E6%8A%8A%E7%BD%91%E5%8D%A12,%E6%AD%A3%E7%A1%AE%E7%9A%84%EF%BC%8C%E5%B0%B1OK%E4%BA%86%E3%80%82
[3] (没有共享选项) https://zhidao.baidu.com/question/812007664331169972.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment