Sharp SL-5500 File Manager Guide Uživatelský manuál Strana 40

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 48
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 39
CHAPTER 11. USE 11.3. GLOBAL NETWORKING
ifconfig
Bring interface interfacename up:
ifconfig interfacename up
or
ifup interfacename
Bring interface interfacename down:
ifconfig interfacename down
or
ifdown interfacename
11.3.2 With USB
However, many people with conventional PDA devices will connect using USB to the desktop or
laptop computer. In this scenario, your host computer will serve as a router for your
˚
Angstr
¨
om
device, and so must be configured accordingly: you must enable IP forwarding and NAT on it.
Please consult your Linux distribution manual on how to make such changes permanent, to be
able to connect the device to the Internet without manual setup in the future. We here assume that
you are using a Linux server. If you are using a Windows one, you need to enable
ICS
(Internet
Connection Sharing) to achieve the similar functionality. If you are already using
ICS
for a different
interface than the one you projected to work with, consider the use of a simple proxy such as
AnalogX’s
, for giving other cards access to the Internet. It is due to the fact that
ICS
can only deal
with a couple (of two) devices.
11.3.2.1 On the Server
To activate NAT, you could do
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
assuming eth0 is your external interface.
To activate IP forwarding, you then edit /etc/sysctl.conf, adding
net.ipv4.ip_forward = 1
to it, or replacing
net.ipv4.ip_forward = 0
by
net.ipv4.ip_forward = 1
if
36
Zobrazit stránku 39
1 2 ... 35 36 37 38 39 40 41 42 43 44 45 46 47 48

Komentáře k této Příručce

Žádné komentáře