Detailed steps for configuring wireless Internet access for ppp instances in ubuntu

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.