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

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

问题解决了方法如下

在/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地址等等 。

如何低价香港服务器购买?有没有便宜的香港服务器推荐?

如何低价香港服务器购买?想要做一个个人博客,想用香港服务器,避免繁琐备案,性能不需要多高,只是记录一些日常而已,也没啥视频之类的东西,想问问各位大佬有没有低价的香港服务器推荐?香港距大陆近,相比美国服务器最大的优势在于延迟低,ping值低,但是带宽紧张,普遍都是1M,一般戏称其为“毛细血管”。同时价格普遍高,优质稳定的一般价格不菲。大厂云梯队阿里云、腾讯云两家都有香港服务器,要注意的是尽量不要选择...

HyperVMart:加拿大vps,2核/3G/25G NVMe/G口不限流量/季付$10.97,免费Windows系统

hypervmart怎么样?hypervmart是一家成立了很多年的英国主机商家,上一次分享他家还是在2年前,商家销售虚拟主机、独立服务器和VPS,VPS采用Hyper-V虚拟架构,这一点从他家的域名上也可以看出来。目前商家针对VPS有一个75折的优惠,而且VPS显示的地区为加拿大,但是商家提供的测速地址为荷兰和英国,他家的优势就是给到G口不限流量,硬盘为NVMe固态硬盘,这个配置用来跑跑数据非常...

DiyVM:香港VPS五折月付50元起,2核/2G内存/50G硬盘/2M带宽/CN2线路

diyvm怎么样?diyvm这是一家低调国人VPS主机商,成立于2009年,提供的产品包括VPS主机和独立服务器租用等,数据中心包括香港沙田、美国洛杉矶、日本大阪等,VPS主机基于XEN架构,均为国内直连线路,主机支持异地备份与自定义镜像,可提供内网IP。最近,DiyVM商家对香港机房VPS提供5折优惠码,最低2GB内存起优惠后仅需50元/月。点击进入:diyvm官方网站地址DiyVM香港机房CN...

网页打开速度慢为你推荐
ddr2内存价格DDR1内存和DDR2内存为什么价钱差距那么大p图软件哪个好用新手用哪个软件p图较好?燃气热水器和电热水器哪个好电热水器和燃气热水器哪一个更安全,且更节省能源?等额本息等额本金哪个好等额本息和等额本金哪个好?电动牙刷哪个好飞利浦电动牙刷哪款好?求推荐美国国际东西方大学美国大学一年学费是多少?51空间登录51空间,怎么添加啊?怎么登陆?qq空间登录网页版求这张图的原图,是QQ空间最近网页版登录界面的背景qq空间登录不上qq空间登不上去qq空间登录界面怎样进入自己qq空间
个人域名备案流程 中国万网域名 星星海 site5 mach5 国外空间服务商 线路工具 免费个人空间 softbank邮箱 idc资讯 国外代理服务器地址 购买国外空间 爱奇艺会员免费试用 卡巴斯基是免费的吗 超级服务器 网通服务器 深圳域名 域名转入 域名和主机 杭州电信 更多