连接CentOS5.4打开网页速度慢的解决方法

打开网页速度慢  时间:2021-02-01  阅读:()

问题解决了方法如下

在/etc/mo dprobe.conf 加入下面两行alias ipv6 offalias net-pf-10 offip v6默认是在linux的内核中加载的去掉它仅使用ipv4好了。

Connection-specific DNS Suffix . :

Description. . . . . . . . . . . :WAN(PPP/SLIP

Phys ical Address. . . . . . . . . :00-53-45-00-0

Dhcp Enabled. . . . . . . . . . . :No

IP Addre ss. . . . . . . . . . . . : 10.198.1.26

Subnet Mask. . . . . . . . . . . :255.255.255.2

De fault Gateway. . . . . . . . . : 10.198.1.26

DNS Servers . . . . . . . . . . . : 10.198.1.1

10.198.1.1

NetBIOS over Tcpip. . . . . . . . :Disabledc ento s 5中AD S L共享上网网络环境 2台台式机各自一张网卡一个路由器网络连接概述一台CENTOS5系统做服务器另一台通过路由器连接服务器共享上网

配置

C EN TO S服务器IP地址 172.1.1.1 24子网 255.255.255.0网关无一定不能填写 DNS手动输入

XP客户机 IP 172.1.1.224子网 255.255.255.0网关 172.1.1.1 DNS手动输入没有架设DNS服务器

具体命令(centos5):ifconfig eth0 172.1.1.1 netmask 255.255.255.0iptables -t nat-A POSTROUTING-o ppp0-j MASQUERADE(注意大小写),echo1>>/pro c/s ys/ne t/ip v4/ip_fo rward

路由器方面需要关闭DHCP拨号上网连接选择手动连接。

然后设置PPPOE拨号连接或者直接输入adsl-setup建立

如果遇到verb r0这种网卡只需要禁用XEN D或者删除xe n(虚拟机)即可。具体配置就不多讲了大概步骤就这种。 。 。 。

[root@sample~]#adsl-setup ←建立ADSL连接

Welcome to the ADSL client setup.First, I will run some checks onyour systemto make sure the PPPoE client is installed properly. . .

LOGIN NAME

Enter your Login Name(default root): ←填入ADSL连接的用户名

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): ←指定网络接入设备一块网卡的情况下一般为默认eth0Do 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 should be dropped. If you want the link tostay up permanently,enter'no' (two letters, lower-c ase.)

NOTE:Demand-activated links do not interact well with dynamic IPaddresse s.You may have some prob lems with demand-activated links.

Enter the demand value(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'serve r' (all lo wer-case)here.

If youjust press enter, I will assume you know what you aredoing and not modify your DNS setup.

Enter the DNS information here: ←如果知道DNS服务器的信息在此填入。不知道的情况按回车跳过

PASSWORD

Please enter your Password: ←输入ADSL的连接密码

Please re-enter your Password: ←再次确认输入ADSL的连接密码

USERCTRL

Please enter 'yes' (two letters, lower-case.) if you want to allownormal user to start or stop DSL connection(default yes):no ←填入no不允许一般用户控制PPPoE的连接

FIREWALLING

Please choose the firewall rules to use.Note that these rules arevery basic.You are strongly encouraged to use a more sophisticatedfirewall setup;however, these will provide b asic security. If youare running any servers on your machine,you must choose'NONE'andset up firewalling yourself.O therwise, 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-MASQUERADE:Appropriate for a machine acting as an Internet gatewayforaLAN

Choose a type of firewall (0-2):0 ←输入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 ←填入yes在系统启动时自动连接ADSL

**Summary o f what you entered**

Ethernet Interface:eth0

User name:caun870293@ca.dti.ne.jp

Activate-on-demand:N o

DNS:Do not adjust

F ire wa lli ng:N ON E

User Contro l:no

Accept these settings and adjust configuration files (y/n)?y ←配置信息确认无误后键入y同意设置

Adjus ting/e tc/sysconfig/ne twork-scripts/ifc fg-ppp0

Adj us ting/etc/ppp/chap-s ecrets 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'/sb in/ad s l-status/etc/sysco nfig/netwo rk-scrip ts/ifc fg-ppp0'to see the link status.

然后启动ADSL连接。

[ro ot@samp le~]#adsl-start ←启动ADS L连接

[root@sample~]# ←稍等片刻后若启动成功后出现提示符无任何提示即意味着连接成功

这时通过“ifconfig”命令可以看到各网络接口的信息IP地址等等 。

VPS云服务器GT线路,KVM虚vps消息CloudCone美国洛杉矶便宜年付VPS云服务器补货14美元/年

近日CloudCone发布了最新的补货消息,针对此前新年闪购年付便宜VPS云服务器计划方案进行了少量补货,KVM虚拟架构,美国洛杉矶CN2 GT线路,1Gbps带宽,最低3TB流量,仅需14美元/年,有需要国外便宜美国洛杉矶VPS云服务器的朋友可以尝试一下。CloudCone怎么样?CloudCone服务器好不好?CloudCone值不值得购买?CloudCone是一家成立于2017年的美国服务器...

域名注册需要哪些条件(新手注册域名考虑的问题)

今天下午遇到一个网友聊到他昨天新注册的一个域名,今天在去使用的时候发现域名居然不见。开始怀疑他昨天是否付款扣费,以及是否有实名认证过,毕竟我们在国内域名注册平台注册域名是需要实名认证的,大概3-5天内如果不验证那是不可以使用的。但是如果注册完毕的域名找不到那也是奇怪。同时我也有怀疑他是不是忘记记错账户。毕竟我们有很多朋友在某个商家注册很多账户,有时候自己都忘记是用哪个账户的。但是我们去找账户也不办...

Atcloud:全场8折优惠,美国/加拿大/英国/法国/德国/新加坡vps,500g大硬盘/2T流量/480G高防vps,$4/月

atcloud怎么样?atcloud刚刚发布了最新的8折优惠码,该商家主要提供常规cloud(VPS)和storage(大硬盘存储)系列VPS,其数据中心分布在美国(俄勒冈、弗吉尼亚)、加拿大、英国、法国、德国、新加坡,所有VPS默认提供480Gbps的超高DDoS防御。Atcloud高防VPS。atcloud.net,2020年成立,主要提供基于KVM虚拟架构的VPS、只能DNS解析、域名、SS...

打开网页速度慢为你推荐
麒麟820和980哪个好麒麟980跟骁龙855哪个好一点?莫代尔和纯棉哪个好莫代尔和纯棉内裤哪个好?985和211哪个好高校是985一般专业还是211好专业?电视直播软件哪个好电视直播软件哪个好浮动利率和固定利率哪个好银行贷款是选固定利率好还是浮动利率海克斯皮肤哪个好摄魂使者薇恩和海克斯安妮皮肤哪个好 怎么合成网络机顶盒哪个好哪个品牌的网络机顶盒好用?云盘哪个好网络云盘哪个好用qq空间登录不了登陆不了QQ空间dns服务器故障DNS服务器老是出错 如何从根本上解决??
m3型虚拟主机 重庆vps租用 三级域名网站 拜登买域名批特朗普 购买域名和空间 dns是什么 vps.net mediafire 轻博 服务器cpu性能排行 xen typecho lol台服官网 可外链相册 香港新世界中心 申请网页 七夕快乐英语 vul 独立主机 域名转入 更多