Belkin PF31 Specifikace Strana 34

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 46
  • Tabulka s obsahem
  • ŘEŠENÍ PROBLÉMŮ
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 33
Basic Configuration and Operation
|
205
You may want to adjust the last two entries in the configuration to suit your
setup: the
ms-dns line specifies the IP address of your DNS server. This will
become useful when you enable routing. The two colon-separated addresses
are the local IP address and the IP address to give the remote device. You
should choose addresses in the 10.x.x.x or 192.168.x.x ranges that don’t
clash with any of your internal subnets.
The dund program can then be invoked with
dund --listen --persist call
dun
. When a remote device connects, the PPP connection is brought up.
Because of the “debug” option to pppd, you should see a verbose report of the
connection in the system log. To confirm that a connection has been estab-
lished, run the ifconfig command and look for the
ppp0 network interface.
Invoke the ping command to confirm that your remote device is reachable:
$ ping 192.168.7.2
PING 192.168.7.2 (192.168.7.2): 56 data bytes
64 bytes from 192.168.7.2: icmp_seq=0 ttl=255 time=77.8 ms
64 bytes from 192.168.7.2: icmp_seq=1 ttl=255 time=80.5 ms
64 bytes from 192.168.7.2: icmp_seq=2 ttl=255 time=78.3 ms
The final step is to ensure that your Linux box can route for the remote
device, so it can take advantage of your network facilities. Various Linux dis-
tributions have their own way of doing this in their network configuration,
but to test you can enable it by issuing the command
echo 1 > /proc/sys/
net/ipv4/ip_forward
. Further instructions on routing can be found on the
iptables home page (http://www.netfilter.org) and also in “Sharing a Net-
work Connection over IrDA” in Chapter 8. There are a few ways to set up
this kind of routing, depending on your distribution and kernel version, but
make sure that other machines on your network know how to route to your
connected Bluetooth device.
If you are connecting to a device running Microsoft soft-
ware, you should pass the
--ms-dun option to dund. This
enables the extra negotiation required to talk to the Win-
dows dial-up networking implementation.
crtscts
lock
local
proxyarp
ms-dns 192.168.0.5
# local : remote
192.168.7.1:192.168.7.2
Example 7-7. PPP daemon configuration for LAN access (continued)
Zobrazit stránku 33
1 2 ... 29 30 31 32 33 34 35 36 37 38 39 ... 45 46

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

Žádné komentáře