After configuring ppp, follow these steps to enable wireless Internet access.
Step 1:
# Nano/etc/network/interfaces
Auto eth1
Iface eth1 inet dhcp
Wireless_mode managed
Wireless_essid ******
[@-@] Modify the interfaces file, set the Nic mode to managed, and specify the automatically assigned IP address. ***** is the ssid name. If the user's Nic is built in, the interface is ath0
Step 2:
Create a file/etc/ppp/options.ppt p. File content:
Lock
Noauth
Nobsdcomp
Nodeflate
Step 3:
Modify/etc/ppp/chap-secrets and set the user name and password.
# Secrets for authentication using CHAP
# Client server secret IP addresses
Username * password *
Step 4:
Create a peers file/etc/ppp/peers/wlan
Pty "pptp login. fb3.wlan -- nolaunchpppd"
Name username
Remotename PPTP
Require-mppe-128
File/etc/ppp/options.ppt p
Ipparam wlan
The login server address in the file is changed as needed
Step 5:
Create two scrip files:/etc/ppp/ip-up.d/wlan and/etc/ppp/ip-down.d/wlan:
#! /Bin/sh
If [$ {PPP_IPPARAM} = "wlan"]; then
Route del default
Route add default $ {IFNAME}
Echo "search informatik.uni-bremen.de">/etc/resolv. conf
Fi
Step 6:
# Chmos + x wlan
Set the wlan file to executable
Step 7:
Use pon and poff to establish connections with terminals
# Pon wlan
# Poff wlan