Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to configure linux to surf the Internet

2025-02-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Editor to share with you how to configure linux to access the Internet, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

It is troublesome to configure ADSL to surf the Internet in Linux. However, after the configuration is completed, it can be turned on automatically to dial up the Internet, which is very convenient. The systems supported are common Linux such as Redhat,CentOS,SuSE,FreeBSD,Ubuntu.

Tools / raw materials ADSL network, telecom, Netcom, mobile and other common broadband.

The installation CD of the Linux system can be downloaded from each mirror site to

Methods / steps

Install the system. You can choose either a graphical installation interface or a text installation interface. For novices and users with high security, it is best to choose a graphical installation interface, because the installation is very simple.

Configure it in the terminal. Enter adsl-setup in the terminal

[root@localhost root] # adsl-setup

Welcome to the ADSL client setup. First, I will run some checks on

System to make sure the PPPoE client is installed properly...

LOGIN NAME

Enter your Login Name (default root): (username) 'enter the user name of ADSL here.

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): 'just use the default eth0.

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 should be dropped. If you want the link to 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): 'enter the default NO

DNS

Please enter the IP address of your ISP's primary DNS server.

If your ISP claims that 'the server will provide dynamic DNS addresses'

Enter

'server' (all lower-case) here. DNS address. The main DNS in Nanjing area is 218.2.135.1 and the secondary DNS is 61.147.37.1. Other areas can refer to the local ISP.

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 'enter your ADSL password, which defaults to your phone number

Please enter your Password: 'enter the password again

Please re-enter your Password:

USERCTRL

Please enter 'yes' (two letters, lower-case.) If you want to allow normal

User to start or stop DSL connection (default yes): whether to allow ordinary users to open or close ADSL connections is allowed by default.

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. 'Select the level of the firewall, 0 to 2, as needed.

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? 'do you want to connect automatically at startup?

Please enter no or yes (default no): y

**

Summary of what you entered * * 'the following is the ADSL account setting information

Ethernet

Interface: eth0

User name: nj007.cn

Activate-on-demand: No

DNS addresses: Supplied by ISP's server

Firewalling: NONE

User Control: y

Accept these settings and adjust configuration files (YBO)? Y'is the above information correct? y save, N re-fill.

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 should 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/ifcfg-ppp0' to see

The link status.

Now that you have finished configuring the ADSL broadband connection, restart LINUX. Command reboot or shutdown-r now

Log in to linux, use the ping command, ping some common websites such as baidu.com, and connect successfully if the returned result has a response time, otherwise check the above steps.

The above is all the contents of the article "how to configure linux to surf the Internet". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report