继续抄
To set up zipb mode, follow these steps..
1. Ensure the Voyager';s DHCP server is enabled..
The external IP is given to the Voyager and then passed on to your device via DHCP, so the Voyager must have its DHCP server enabled. Ensure there is an active DHCP server pool with poolid=0, with at least one free local IP for your device.
create dhcp server pool poolid 0 start-ip 192.168.1.3 end-ip 192.168.1.99 mask 255.255.255.0 gwy 192.168.1.1
you may prefer to specify a smaller pool, or a shorter lease time..
create dhcp server pool poolid 0 start-ip 192.168.1.3 end-ip 192.168.1.5 mask 255.255.0.0 gwy 192.168.1.1 lease 60 mlease 120
Whatever, so long as it works. Now switch the DHCP server on..
modify dhcp server cfg enable
This page will state the DHCP Mode as "DHCP Server".
2. Disable NAT
In a telnet session, do..
modify nat global disable
3. Enable ZIPB mode
The zipb mode admin page will correctly state whether or not zipb mode is enabled, but setting it there doesn';t seem to "stick", so in a telnet session, do..
modify zipb cfg enable
4. Set the PPP interface to "StartOnData"
This will bring up the ppp interface as soon as it detects DHCP requests on the local ethernet. This is generally set when you create the ppp-0 interface, but you can set it separately, just in case..
modify ppp intf ifname ppp-0 startondata
5. Save settings
The important bit that lots of folk forget. In a telnet session, do..
commit
6. Finally, ensure your device is set to be a DHCP client
The router will dynamically assign the device your external IP address, so you need a DHCP client running on that device. If it';s a computer running XP, simply open the properties for your local connection (TCP/IP Properties) and set it to "Obtain an IP address automatically". If it';s a router or similar, tell it to "get IP address via DHCP" or some similarly worded option.
You can probably set the machine';s alternative IP address to your some static LAN IP address, something like 192.168.1.3
That';s it!
If all goes to plan, your device should have been assigned a fresh IP from your ISP';s pool, and you are live on the internet, bypassing the voyager';s NAT altogether.
|