- 论坛徽章:
- 0
|
用gentoo两个月了,以前用vmware在xp上跑,用的是局域网,设置好ip, netmask,route后上网一直没有问题,最近想直接在linux下用pppoe连接,但一直不成功,google了两天都没有找到解决方法。
以下是一一些信息.
root ~#cat /etc/conf.d/net
# This blank configuration will automatically use DHCP for any net.*
# scripts in /etc/init.d. To create a more complete configuration,
# please review /etc/conf.d/net.example and save your configuration
# in /etc/conf.d/net (this file :]!).
#modules_eth0=( "ifconfig" )
# Here is setup for LAN
#config_eth0=( "172.16.20.20 netmask 255.255.255.0 broadcast 172.16.20.255" )
#routes_eth0=( "default via 172.16.20.10" )
# Here is setup for PPPoE/ADSL
config_eth0=( "null" )
config_ppp0=( "ppp" )
link_ppp0="eth0"
plugins_ppp0=( "pppoe" )
#username and password already double checked!
username_ppp0='234575438754'
password_ppp0='dfsg353e'
pppd_ppp0=(
"noauth"
"defaultroute"
"usepeerdns"
"holdoff 3"
"child-timeout 60"
"lcp-echo-interval 15"
"lcp-echo-failure 3"
noaccomp noccp nobsdcomp nodeflate nopcomp novj novjccomp
)
depend_ppp0() {
need net.eth0
}
root ~#ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:0c:29:55:ed:31
inet addr:172.16.20.20 Bcast:172.16.20.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe55:ed31/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:192 errors:0 dropped:0 overruns:0 frame:0
TX packets:161 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:15146 (14.7 KiB) TX bytes:11224 (10.9 KiB)
Interrupt:18 Base address:0x2000
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:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:280 (280.0 B) TX bytes:280 (280.0 B)
root ~#ls /etc/init.d/net* -l
lrwxrwxrwx 1 root root 6 2009-04-30 06:27 /etc/init.d/net.eth0 -> net.lo
-rwxr-xr-x 1 root root 15179 2009-05-04 07:51 /etc/init.d/net.lo
-rwxr-xr-x 1 root root 2074 2009-05-04 07:51 /etc/init.d/netmount
lrwxrwxrwx 1 root root 6 2009-05-13 00:37 /etc/init.d/net.ppp0 -> net.lo
root ~#/etc/init.d/net.ppp0 start
* Bringing up interface ppp0
* Starting pppd in ppp0... [ ok ]
* Backgrounding ...
* WARNING: net.ppp0 has started, but is inactive
root ~#/etc/init.d/net.ppp0 stop
* Bringing down interface ppp0
* Stopping pppd on ppp0 [ ok ]
* Removing addresses
ppp0: error fetching interface information: Device not found
ppp0: error fetching interface information: Device not found
请大家帮帮忙看是什么问题。非常感谢!!
[ 本帖最后由 liulihua 于 2009-5-13 08:39 编辑 ] |
|