How to enable broadband dial-up Internet access under redhat

Source: Internet
Author: User
How can I find a job in Beijing with a broadband dial-up access under redhat? I have been using a redhat system, so I need to dial the Internet. 1. check whether your machine has installed rp-pppoe [html] [root @ hadoop1Desktop] # rpm-qarp-pppoerp-pppoe-3.8-5.fc10 ....
How can I find a job in Beijing with a broadband dial-up access under redhat? I have been using a redhat system, so I need to dial the Internet. 1. check whether your machine has installed rp-pppoe [html] [root @ hadoop1 Desktop] # rpm-qa rp-pppoe rp-pppoe-3.8-5.fc10.i386 2. if rp-pppoe is not installed, install [html] [root @ hadoop1 Downloads] # rpm-ivh rp-pppoe-3.8-5.fc10.i386.rpm 3. run asdl-setup. if this command is not run, run pppoe-setuppppoe-setup: Set the dialing parameters and use it once. Pppoe-connect: enter in the terminal for dial-up access. Www.2cto.com pppoe-stop: it is easy to understand. this is used to disconnect the link. [Root @ hadoop1 ~] # Pppoe-setup then you will see that pppoe-setup will output the following prompt. Welcome to the PPPoE client setup. first, I will run some checks onyour system to make sure the PPPoE client is installed properly... now it prompts you to enter the user name (also called the account, for example, the landline number in my house) you use at your ISP ). Login name Enter your Login Name (default work): 051212345678 then you will see the following prompt. at this time, he will prompt you to Enter the connected Ethernet interface. you do not need to Enter anything. the default value is enough. INTERFACEEnter the Ethernet interface connected to the PPPoE modemFor Solaris, this is likely to be something like/dev/hme0.For Linux, it will be ethX, where 'X' is a number. (default eth0): the system now asks you if you want to automatically disconnect the connection from the same network after the system is idle for a period of time without network connection. I don't like this. I hope to manually disconnect the connection when I don't need it. Select the default value and press enter.
Do you want the link to come up on demand, or stay up continuously? If you want it to come up on demand, enter the idle time in secondsafter which the link shoshould be dropped. if you want the link tostay up permanently, enter 'no' (two letters, lower-case .) NOTE: Demand-activated links do not interact well with dynamic IPaddresses. you may have some problems with demand-activated links. enter the demand value (default no): Next, you are required to Enter how to set DNS parameters. I chose the input server. Www.2cto.com DNS Please enter the IP address of your ISP's primary DNS server. if your ISP claims that 'the server will provide dynamic DNS address', enter 'server' (all lower-case) here. if you just press enter, I will assume you know what you aredoing and not modify your DNS setup. enter the DNS information here: the server now requires you to Enter the password corresponding to the account. the system will ask you to Enter the password twice for confirmation. PASSWORDPlease enter your Password: xxxxxxPlease re-enter your Password: xxxxxx you can ignore the following questions and use the default system parameters. USERCTRLPlease enter 'yes' (three letters, lower-case .) if you want to allownormal user to start or stop DSL connection (default yes): you are required to enter the firewall option below. I chose not to use the firewall. FIREWALLING Please choose the firewall rules to use. note that these rules arevery basic. you are stronugly encouraged to use a more sophisticatedfirewall setup; however, these will provide basic security. if youare running any servers on your machine, you must choose 'none' andset up firewalling yourself. otherwise, the firewall rules will denyaccess to all standard servers like Web, e-mail, ftp, Etc. if youare using SSH, the rules will block outgoing SSH connections whichallocate a privileged source port. the firewall choices are: 0-NONE: This script will not set any firewall rules. you are responsiblefor ensuring the security of your machine. you are STRONGLYrecommended to use some kind of firewall rules.1-STANDALONE: Appropriate for a basic stand-alone web-surfing workstation2-MASQU ERADE: Appropriate for a machine acting as an Internet gatewayfor a LANChoose a type of firewall (0-2): 0 www.2cto.com now it requires you to determine whether to automatically dial when the system starts, generally speaking, this is a waste, so we choose to enter the default value and press enter directly. Start this connection at boot timeDo you want to start this connection at boot time? Please enter no or yes (default no): Now, the system begins to summarize the parameters you set. Ask you to confirm. at this time, you can enter a small y to confirm. ** Summary of what you entered ** Ethernet Interface: eth0User name: * sunzhou_110Activate-on-demand: NoDNS addresses: Supplied by ISP's serverFirewalling: NONEUser Control: yesAccept these settings and adjust configuration files (y/n )? YAdjusting/etc/sysconfig/network-scripts/ifcfg-ppp0Adjusting/etc/ppp/chap-secrets and/etc/ppp/pap-secrets (But first backing it up to/etc/ppp/ chap-secrets.bak) (But first backing it up to/etc/ppp/pap-secrets.bak) Well, when you see this sentence, your parameter settings are over. Congratulations, it shocould be all set up! Type '/sbin/ifup ppp0' to bring up your xDSL link and '/sbin/ifdown ppp0' to bring it down. type '/sbin/pppoe-status/etc/sysconfig/network-scripts/ifcfg-ppp0' to see the link status. however, you cannot connect to the Internet at this time. you must manually establish a connection and run the pppoe-connect command. If you see an output similar to the following, you can access the Internet. Www.2cto.com [root @ cynicholas ~] # Pppoe-connectRTNETLINK answers: No such processUsing interface ppp0Connect: ppp0 <-->/dev/pts/2PAP authentication succeededlocal IP address 121.228.29.197remote IP address 218.4.77.56primary DNS address 61.177.7.1secondary DNS address 221.228.255.1 at this time, you can run the following command, if the domain name is correctly resolved and there is a response, everything is OK [root @ hadoop1 ~] # Ping www. baidu. comPING www.a.shifen.com (119.75.218.45) 56 (84) bytes of data.64 bytes from 119.75.218.45: icmp_req = 1 ttl = 56 time = 29.6 ms64 bytes from 119.75.218.45: icmp_req = 2 ttl = 56 time = 30.2 ms64 bytes from 119.75.218.45: icmp_req = 3 ttl = 56 time = 29.3 ms64 bytes from 119.75.218.45: icmp_req = 4 ttl = 56 time = 29.3 ms64 bytes from 119.75.218.45: icmp_req = 5 ttl = 56 time = 30.0 ms64 bytes from 119.75.218.45: Icmp_req = 6 ttl = 56 time = 28.7 MS www.2cto.com finally, if you need to disconnect the connection, you can run the following command: [root @ cynicholas ~] # Pppoe-stop Terminating on signal 15 Connect time 0.6 minutes. sent 2558 bytes, encoded Ed 2166 bytes. cat:/var/run/pppoe-adsl.pid.start: No such file or directory pppoe: read (asyncReadFromPPP): Session 5001: Input/output error if you see the error report for the last row, ignore it.
If you enter pppoe-connect, you will continue to use the solution network connection-DSL-add the account and password above and perform the link.
 
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.