亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊(cè) 查看新帖 |

Chinaunix

  平臺(tái) 論壇 博客 文庫(kù)
最近訪(fǎng)問(wèn)板塊 發(fā)新帖
查看: 1352 | 回復(fù): 0
打印 上一主題 下一主題

DSL connection using pppoe kernel-mode, HOW-TO [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2007-06-21 21:04 |只看該作者 |倒序?yàn)g覽

H1, H2, H3 { color: #0000CC; }
SMALL { background-color: silver;
        display: block;
        padding: 5px;
        margin: 5px;
        border: 2px solid grey;
}
PRE { color: black;
      background-color: #CCCCDD;
      padding: 2px;
      margin-right: 15px;
      margin-left:  5px; }
DSL connection using pppoe kernel-mode, HOW-TO
Authors: Fraaz.
Started on dec. 2004.
Introduction
Kernel configuration
Network card configuration
DNS resolvers configuration
Account settings
host.conf
Configuration file for pppoe
Running connection
Stopping the connection
Using a firewall
Introduction
This HOW-TO explains how to set up a DSL connection using the new kernel PPPOE support. The goal is to avoid installation of an external package (such as rp-pppoe) because it tends to be over-complicated, confusing, unreliable, outdated.
Kernel configuration
A proper kernel configuration, with of course ppp support and pppoe support - for example:
CONFIG_PPP=m
CONFIG_PPP_ASYNC=m
CONFIG_PPP_SYNC_TTY=m
CONFIG_PPP_DEFLATE=m
CONFIG_PPP_BSDCOMP=m
CONFIG_PPPOE=m
This can be set to 'y' instead of 'm', according to your needs. You can type grep -i ppp /boot/linux-`uname -r`.config to check you current kernel's options for ppp support.
It's important to remember that you can produce a custom kernel easily anytime using:
Nmake -gb linux-2.6 -p 'wipe install'.
Network card configuration
If you compiled the support of your network card directly in the kernel, nothing is required here.
If you compiled your network card as a kernel module, you must ensure to specify an alias like this in /etc/modprobe.conf alias eth0 via-rhine
Ensure modules loading upon system booting by adding these lines in /etc/sysconfig/modules.d/site: via-rhine
pppoe
You might also need to specify ppp_generic if you built it as a module
via-rhine is given as an example, replace it with the module name that corresponds to your hardware.
You possibly don't have /etc/modprobe.conf yet - create it !
Now here is the configuration required by the network init service. Edit /etc/sysconfig/network.d/ifconfig.eth0/ipv4:
ONBOOT=yes
SERVICE=ipv4-static
IP=192.168.1.1
GATEWAY=
PREFIX=24
BROADCAST=192.168.1.255
DNS resolvers configuration
Edit /etc/resolv.conf with the values provided by your ISP. This is an example for the French ISP Wanadoo:
search wanadoo.fr
nameserver 80.10.246.130 80.10.256.3
Account settings
Edit /etc/ppp/pap-secrets and /etc/ppp/chap-secrets:
"your_isp_login"       *       "password"
host.conf
Edit /etc/host.conf with:
order   hosts,bind
multi   on
Configuration file for pppoe
You must tell ppp to use the plugin rp-pppoe (installed with the ppp package) in /etc/ppp/options: plugin rp-pppoe.so
name
noipdefault
defaultroute
mtu 1492
mru 1492
lock
Running connection
That's all, you are all done! To bring up the DSL line, just type:
pppd eth0
Stopping the connection /usr/sbin/pppd-stopThis command doesn't come with ppp, we added it for convenience, credits does to
http://casteyde.christian.free.fr/online/install_linux/book1.html
Using a firewall
Using a firewall is almost mandatory with DSL lines. Formerly rp-ppoe bundled firewall scripts, we discourage their use at the benefit of either a dedicated software, or our own firewall service 'nanofw' (we bundles it with iptables):
chmod +x /etc/init.d/runlevel.3/nanofw
# if you wan to setup NAT (connection sharing):
nano /etc/sysonfig/nanofw
# Edit the four values of the NAT section
# now run it:
telinit nanofw start


本文來(lái)自ChinaUnix博客,如果查看原文請(qǐng)點(diǎn):http://blog.chinaunix.net/u1/33950/showart_326030.html
您需要登錄后才可以回帖 登錄 | 注冊(cè)

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號(hào)-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號(hào):11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專(zhuān)區(qū)
中國(guó)互聯(lián)網(wǎng)協(xié)會(huì)會(huì)員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過(guò)ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請(qǐng)注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP