Set ADSL Internet access in centos Linux

Source: Internet
Author: User

[Root @ localhost ~] # Ifconfig

Eth1 link encap: Ethernet hwaddr 78: 2b: CB: 60: D8: EE
Inet ADDR: 192.168.1.2 bcast: 192.168.1.255 mask: 255.255.255.0
Inet6 ADDR: fe80: 7a2b: cbff: fe60: d8ee/64 scope: Link
Up broadcast running Multicast MTU: 1500 Metric: 1
RX packets: 190 errors: 0 dropped: 0 overruns: 0 frame: 0
TX packets: 275 errors: 0 dropped: 0 overruns: 0 carrier: 0
Collisions: 0 FIG: 1000
RX Bytes: 20779 (20.2 kib) TX Bytes: 27343 (26.7 kib)
Interrupt: 122 memory: dc000000-dc012800

Lo link encap: local loopback
Inet ADDR: 127.0.0.1 mask: 255.0.0.0
Inet6 ADDR: 1/128 scope: Host
Up loopback running MTU: 16436 Metric: 1
RX packets: 1041 errors: 0 dropped: 0 overruns: 0 frame: 0
TX packets: 1041 errors: 0 dropped: 0 overruns: 0 carrier: 0
Collisions: 0 txqueuelen: 0
RX Bytes: 1868248 (1.7 MIB) TX Bytes: 1868248 (1.7 MIB)

[Root @ localhost ~] # ADSL-Setup
Welcome to the ADSL Client Setup. First, I will run some checks on
Your system to make sure the pppoe client is installed properly...

Login Name

Enter your login name (Default Root ):Enter your internet account

Interface

Enter the Ethernet interface connected to the ADSL Modem
For Solaris, this is likely to be something like/dev/hme0.
For Linux, it will be ethx, where 'x' is a number.
(Default eth0 ):Eth1 select Nic

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 seconds
After which the link shoshould be dropped. If you want the link
Stay up permanently, enter 'no' (two letters, lower-case .)
Note: Demand-activated links do not interact well with dynamic IP
Addresses. You may have some problems with demand-activated links.
Enter the demand value (default no ):No by default

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 are
Doing and not modify your DNS setup.
Enter the DNS information here:Server

Password

Please enter your password:
Please re-enter your password:

Userctrl

Please enter 'yes' (three letters, lower-case.) If you want to allow
Normal user to start or stop DSL connection (default yes ):No

Firewalling

Please choose the firewall rules to use. Note that these rules are
Very basic. You are strongly encouraged to use a more sophisticated
Firewall setup; however, these will provide basic security. If you
Are running any servers on your machine, you must choose 'none' and
Set up firewalling yourself. Otherwise, the firewall rules will deny
Access to all standard servers like Web, e-mail, FTP, etc. If you
Are Using SSH, the rules will block outgoing SSH connections which
Allocate a privileged source port.

The firewall choices are:
0-None: This script will not set any firewall rules. You are responsible
For ensuring the security of your machine. You are strongly
Recommended to use some kind of firewall rules.
1-standalone: appropriate for a basic stand-alone Web-surfing Workstation
2-masquerade: appropriate for a machine acting as an Internet gateway
For a LAN
Choose a type of firewall (0-2 ):0

Start this connection at boot time

Do you want to start this connection at boot time?
Please enter NO or yes (default no ):Yes

** Summary of what you entered **

Ethernet interface: eth1
User name: 400000134588
Activate-on-demand: No
DNS: Do not adjust
Firewalling: None
User Control: No
Accept these settings and adjust configuration files (y/n )?Y
Adjusting/etc/sysconfig/network-scripts/ifcfg-ppp0
Adjusting/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)

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/ADSL-status/etc/sysconfig/network-scripts/TS'
To see the link status.

[Root @ localhost network-Scripts] #ADSL-start or restart the network by executing the service network restart command. If no error is prompted, the operation is successful.

[Root @ localhost desktop] # ADSL-status
ADSL-status: link is up and running on interface ppp0
7: ppp0: <pointopoint, multicast, noarp, up, lower_up> MTU 1492 qdisc pfifo_fast qlen 3
Link/PPP
Inet 125.33.178.89 peer 125.33.176.1/32 scope global ppp0

[Root @ localhost desktop] # ifconfig: View network devices with ppp0

Eth1 link encap: Ethernet hwaddr 00: 0C: 29: 94: AE: 9d
Inet ADDR: 192.168.1.2 bcast: 192.168.1.255 mask: 255.255.255.0
Inet6 ADDR: fe80: 20c: 29ff: fe94: ae9d/64 scope: Link
Up broadcast running Multicast MTU: 1500 Metric: 1
RX packets: 9665 errors: 0 dropped: 0 overruns: 0 frame: 0
TX packets: 9635 errors: 0 dropped: 0 overruns: 0 carrier: 0
Collisions: 0 FIG: 1000
RX Bytes: 3699301 (3.5 MIB) TX Bytes: 855689 (835.6 kib)

Lo link encap: local loopback
Inet ADDR: 127.0.0.1 mask: 255.0.0.0
Inet6 ADDR: 1/128 scope: Host
Up loopback running MTU: 16436 Metric: 1
RX packets: 1630 errors: 0 dropped: 0 overruns: 0 frame: 0
TX packets: 1630 errors: 0 dropped: 0 overruns: 0 carrier: 0
Collisions: 0 txqueuelen: 0
RX Bytes: 3094136 (2.9 MIB) TX Bytes: 3094136 (2.9 MIB)

Ppp0 link encap: Point-to-Point Protocol
Inet ADDR: 125.33.178.89P-t-P: 125.33.176.1 mask: 255.255.255.255
Up pointopoint running noarp multicast MTU: 1492 Metric: 1
RX packets: 474 errors: 0 dropped: 0 overruns: 0 frame: 0
TX packets: 475 errors: 0 dropped: 0 overruns: 0 carrier: 0
Collisions: 0 txqueuelen: 3
RX Bytes: 36737 (35.8 kib) TX Bytes: 44750 (43.7 kib)

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.