Page 101 - DCAP602_NETWORK_OPERATING_SYSTEMS_I
P. 101

Unit 5: Connecting to Internet




          The IANA has allocated IP addresses in the range of 192.168.0.0 to 192.168.255.255 for private   notes
          networks.
          Helpful tools
          Network Calculators: Subnet mask calculator, node calculator, mask inverter, ...
          IP subnet calculator

          5.2 connecting to Lan


          For this step, work is needed both on the GNU/Linux host and on the iPAQ.
          usB networking on the gnu/Linux Host

          You need to have a supported USB hub in your PC, and have the kernel module installed for
          it. You should also obtain the kernel module named usbnet, which is bundled in Linux kernel
          since version 2.4.10, but working version is only bundled since 2.4.13. However, I found the
          experimental module in my stock Red Hat 7.2 distribution (kernel 2.4.7), and it seems not to
          behave too badly...

          It is normally found as /lib/modules/kernel_version/kernel/drivers/usb.
          If you cannot find the module, but have a supported kernel, you need to enable the CONFIG_
          USB_USBNET option in the kernel config (from the main config menu, go into “USB Support”,
          you may need the “Code maturity level option” set to “EXPERIMENTAL”), and compile it with
          a command line like:

           bash$ gcc -O2 -I /usr/src/linux/include -DMODULE -D__KERNEL__ -c usbnet.c




             Note     You must have gcc and correct kernel headers installed in order for this to
             work.
          Otherwise, consider upgrading your kernel. As an alternative, you can continue to download all
          the required files using the serial method, it will only be slower.
          Once the module is compiled, copy usbnet.o into the module directories and update the module
          dependencies with:

           bash# cp build_dir/usbnet.o /lib/modules/kernel_version/kernel/drivers/usb
           bash# depmod -a
          You can then insert it with:

           bash# modprobe usbnet


















                                           LoveLy professionaL university                                    95
   96   97   98   99   100   101   102   103   104   105   106