- 论坛徽章:
- 0
|
各位CUer,我用联通的PPPoE拨号,但总是不成功,他那里是拉一条网线过来的,我在windows里局域网地址可以任意设置,拨号成功,但在freeBSD下用10M的网卡拨号总是不成功,地址设为192.168.0.1,请各位帮忙帮忙:
我安装是mini安装的.
ppp.conf 配置如下
default:
set log Phase tun command
set ifaddr 10.0.0.1/0 10.0.0.2/0
enable dns
isp:
set device PPPoE:ed0
set authname mycount
set authkey mypassword
set dial
set login
add default HISADDR
rc.conf: 配置如下
ppp_enable="YES"
ppp_mode="ddial"
ppp_nat="YES"
ppp_profile="isp"
重启后运行ifconfig的结果
ifconfig:
ed0:flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet6 fe00::5050:abff:fe50:e232
inet 192.168.0.1 netmask 0xfffffff00 brardcast 192.168.0.255
ether 52:54:ah:50:e1:32
media: Ethernet autoselect(10base2/BNC)
plip0: flags=108810<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
lo0:flags=8849<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet6 ::1 profixlen 120
inet6 fe00::5050:abff:fe50:e232 profixlen 64 0x3
inet 127.0.0.1 netmask 0xfffffff00
tun0: flags=8851<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
opened by PID 283
然后就是每隔一段时间就会出现以下提示:
#May 20 17:00:03 kernel: ed0:device timeout
may 20 17:00:40 last message repeated 7 times
may 20 17:01:06 last message repeated 13 times
may 20 17:03:59 last message repeated 40 times
may 20 17:04:39 last message repeated 22 times
may 20 17:06:45 last message repeated10 times
may 20 17:08:10 last message repeated 14 times
may 20 17:11:29 last message repeated 8 times
may 20 17:13:03 last message repeated 23 times
may 20 17:15:39 last message repeated 13 times
may 20 17:17:20 last message repeated 22 times
而我输入
#ppp -ddial isp
则提示
Workking in ddial mode
Using interface:tun0
请各位高手帮忙解决,感激不尽 |
|