On Wed, 21 Feb 2018 02:46:02 -0800 (PST),
grantjohnbagwell@gmail.com declaimed the
following:
Looking here: Internet sharing - ArchWiki I can
see there is some talk of DHCP on the client PC but my assumption is that
this is always provided as 192.168.7.1 via the Ethernet over USB
connection.
That IS what either the BBB provides to the rndis connection (or the
rndis driver provides a value to the BBB).
I've not tried to set up one of mine for such sharing -- normally I
don't even use the USB connection for anything other than power when at my
computer; I've got a CAT-5 running from the switch to the top of the desk
for use with BBB and RPi boards.
With the USB connected, and looking at connection details from the
network connections settings on Win10 (comparing my NIC to the USB device):
NIC USB
Realtek PCIe GBE Linux USB Ethernet/RNDIS Gadget
DHCP Enabled YES YES
IPv4 Address 192.168.2.109 192.168.7.1
IPv4 Gateway 192.168.2.1 <blank> <===========
IPv4 DHCP 192.168.2.1 192.168.7.2
IPv4 DNS Server 8.8.8.8 <blank> <===========
192.168.0.1
192.168.2.1
My DNS servers are coming from:
8.8.8.8 static configuration set up in my WiFi router
192.168.0.1 my DSL adapter apparently sends itself to the WiFi
router as a DNS server
192.168.2.1 is the router itself -- apparently it passes on the
DSL address, along with itself as a name server to Windows
Lack of a Gateway and DNS servers might inhibit Windows from accessing
anything except the BBB -- since the gateway specifies the next machine
down the line to handle any non-direct IP addresses (192.168.7.1 can talk
to 192.168.7.2, but needs to send any other address to the gateway for
handling; lack of DNS means it can't even get an IP address from a domain
name).
This might be part of the DHCP configuration on the BBB -- it needs to
provide the gateway and DNS server information to the Win10 box. OR you may
need to manually set those using the Windows network properties (and hope
they stay set between connections of the BBB). That might be the first
thing to try:
Right click the network icon on the lower right of the task bar:
Open Network & Internet Settings
Change Adapter Options
Right click the RNDIS device
Properties
Highlight
Internet Protocol Version 4
[Properties]
* Use the following IP address
192.168.7.1
255.255.255.0
192.168.7.2
* Use the following DNS server addresses
8.8.8.8 {Google's DNS}
?.?.?.? {pick one from your ISP connection}
If manually setting the RNDIS device such doesn't make Windows find the
Internet, there may be some Linux stuff on the BBB -- again for setting
gateway and DNS information to Windows and for forwarding packets.