View Single Post
Old 02-29-2016, 06:12 PM   #8
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Ah, so - A networking new comer.

The "Device" does not have an address (although Windows sort of smooths that over by assuming: Device == 1 Interface == 1 address per Interface)

Each network interface on a device has one (or more - even under Windows) addresses.

You showed the panel to setup the Wifi interface address -
And you wrote about setting the USBnetwork interface address in its config file.

If both IP address numbers where the same - -
for instance,
how would your router know if a packet should be sent out over the air (wifi) or over a wired connection to reach the Kindle?

Yes, the minimum is the 1-to-1 relationship: one address == one interface (one for USBnet, one for Wifi, one for 3G (if you have 3G), etc).

That is the **minimum** required, not the maximum limit.

Without **any** (external) networking running:
Code:
[root@kindle bin]# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
which is 256*256*256 IPv4 addresses on the local (within the device itself) network.

The device itself has a name (the host name) and there is a look-up for name to IP address:
Code:
[root@kindle bin]# cat /etc/hostname
kindle

[root@kindle bin]# cat /etc/hosts
127.0.0.1       localhost.localdomain localhost kindle
192.168.15.200  usbnet-host-gw
There is more, a lot more (lots of books written on the subject) -
Just post when your head stops spinning and we will give you another dose.
(There is also IPv6 and with the 7th gen devices, the kernel supports network namespaces, and . . . . )

Last edited by knc1; 02-29-2016 at 06:24 PM.
knc1 is offline   Reply With Quote