Automatic Start of dial-up Internet access

Source: Internet
Author: User
Because your system is fedora9 + XP SP2, F9 usually asks you if you want to set auto-start upon startup when creating a connection on the Internet. It can be automatically connected every time it is started. However, it is a bit difficult to connect to the Internet on the desktop of XP. Google has found out that Microsoft's built-in rasdial command is used as follows:
1. Create a bat script with the following content:
  1. :::::::::::::::::::::::::::::::::::::::: ::::::::::::::::::::
  2. Rasdial dgLAN01234567@16900.gd 123456 dgLAN01234567@16900.gd
  3. :::::::::::::::::::::::::::::::::::::::: ::::::::::::::::::::

Just one line, where the first dgLAN01234567@16900.gd is the connection name of the 'broadband Connection' on the user desktop (called ISP), the second dgLAN01234567@16900.gd is the connection user name, this password and password 123456 are obtained only after the payment application is made.
2. Set this bat script (I save it as C:/adls_connect.bat) to auto-start upon startup. There are many methods I use: start --> Run --> enter gpedit. MSC --> Computer Configuration --> Windows Settings --> script (start/shut down) --> start --> Add the BAT file just now.
 
Appendix: the dial-up connection under fedora9 is self-started

First find the command:

  1. [Hsxzhe -- 01:25:09 ~] $: Whereis pppoe
  2. Pppoe:/sbin/pppoe/usr/share/man/man8/pppoe.8.gz
  3. [Hsxzhe -- 01:25:31 ~] $: Ls/sbin/| grep pppoe
  4. Pppoe
  5. Pppoe-Connect
  6. Pppoe-relay
  7. Pppoe-Server
  8. Pppoe-Setup
  9. Pppoe-sniff
  10. Pppoe-start
  11. Pppoe-status
  12. Pppoe-stop

Find the command:/sbin/pppoe-Setup
Then the root permission is required:

  1. [Hsxzhe -- 01:26:07 ~] $: Su
  2. Password:
  3. [Hsxzhe -- 01:26:28 hsxzhe] $:/sbin/pppoe-Setup
  4. Welcome to the pppoe Client Setup. First, I will run some checks on
  5. Your system to make sure the pppoe client is installed properly...
  6. The following DSL config was found on your system:
  7. Device: Name:
  8. Ppp0 dslppp0
  9. Please enter the device if you want to configure the present DSL config
  10. (Default ppp0) or enter 'n' if you want to create a new one:
  11. Login Name
  12. Enter your login name (default dgLAN01270661@16900.gd ):
  13. Interface
  14. Enter the Ethernet interface connected to the pppoe Modem
  15. For Solaris, this is likely to be something like/dev/hme0.
  16. For Linux, it will be ethx, where 'x' is a number.
  17. (Default eth0 ):
  18. Do you want the link to come up on demand, or stay up continuously?
  19. If you want it to come up on demand, enter the idle time in seconds
  20. After which the link shoshould be dropped. If you want the link
  21. Stay up permanently, enter 'no' (two letters, lower-case .)
  22. Note: Demand-activated links do not interact well with dynamic IP
  23. Addresses. You may have some problems with demand-activated links.
  24. Enter the demand value (default no ):
  25. DNS
  26. Please enter the IP address of your ISP's primary DNS server.
  27. If your ISP claims that 'the server will provide dynamic dns address ',
  28. Enter 'server' (all lower-case) here.
  29. If you just press enter, I will assume you know what you are
  30. Doing and not modify your DNS setup.
  31. Enter the DNS information here: Server
  32. Password
  33. Please enter your password:
  34. Please re-enter your password:
  35. Userctrl
  36. Please enter 'yes' (three letters, lower-case.) If you want to allow
  37. Normal user to start or stop DSL connection (default yes ):
  38. Firewalling
  39. Please choose the firewall rules to use. Note that these rules are
  40. Very basic. You are strongly encouraged to use a more sophisticated
  41. Firewall setup; however, these will provide basic security. If you
  42. Are running any servers on your machine, you must choose 'none' and
  43. Set up firewalling yourself. Otherwise, the firewall rules will deny
  44. Access to all standard servers like Web, e-mail, FTP, etc. If you
  45. Are Using SSH, the rules will block outgoing SSH connections which
  46. Allocate a privileged source port.
  47. The firewall choices are:
  48. 0-None: This script will not set any firewall rules. You are responsible
  49. For ensuring the security of your machine. You are strongly
  50. Recommended to use some kind of firewall rules.
  51. 1-standalone: appropriate for a basic stand-alone Web-surfing Workstation
  52. 2-masquerade: appropriate for a machine acting as an Internet gateway
  53. For a LAN
  54. Choose a type of firewall (0-2): 0
  55. Start this connection at boot time
  56. Do you want to start this connection at boot time?
  57. Please enter NO or yes (default no): Yes
  58. ** Summary of what you entered **
  59. Ethernet interface: eth0
  60. User name: dgLAN01270661@16900.gd
  61. Activate-on-demand: No
  62. DNS addresses: supplied by ISP's server
  63. Firewalling: None
  64. User Control: Yes
  65. Accept these settings and adjust configuration files (y/n )? Y

Enter: 1. enter; 2.dgLAN01270661@16900.gd (here I have previously created, by default there is this directly enter); 3. enter; 4. enter; 5. server; 6. enter the password twice. enter; 8.0; 9.yes( set automatic start upon startup); 10.y;
Created

You can start the instance with/sbin/pppoe-start or restart the instance.
View the connection status with/sbin/pppoe-status

  1. [Hsxzhe -- 01:34:40 hsxzhe] $:/sbin/pppoe-status
  2. Pppoe-status: link is up and running on interface ppp0
  3. 3: ppp0: <pointopoint, multicast, noarp, up, lower_up> MTU 1492 qdisc pfifo_fast state unknown qlen 3
  4. Link/PPP
  5. Inet 58.252.31.154 peer 58.252.28.1/32 scope global ppp0
  6. [Hsxzhe -- 01:42:43 hsxzhe] $:

The connection is normal.

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.