- 论坛徽章:
- 0
|
我装了solaris9 x86之后,要用adsl拨号上网,在网上找了一些相关的文章,看后进行配置,但好几天了,还是不行.
配置是否主要是建
1 建一个连接isp的配置文件/etc/ppp/peers/adsl,内容大致就是
sppptun # what device to use
plugin pppoe.so # initialize the
connect "/usr/lib/inet/pppoec pcn0" #注意这里和pppd带的模板文件中不同
persist # if the connection dies, bring it back up
user "username"
noauth
# Do not make the other side authenticate itself
noipdefault
# Let them give you what IP they want to give you
noccp # No compression
novj # No compression
noaccomp # No compression
nopcomp # No compression
defaultroute # add an appropriate default route
2 改用户验证文件/etc/ppp/pap-secrets和/etc/ppp/chat-secrets
#user isp password
username * passwd
username, *, passwd之间使用 [TAB] 而不是空格
3 最后拨号
/usr/bin/pppd call adsl
而且我用pppoec -i pcn0查看链路,可以看到类似0:90:1a:10:11:f6 Name:"GZ-700_01" Uniq:00000001 Svc:"" coki:F3CA05F5973E967476DD6DAB3C4B3362(具体没有拷贝下来,但大致是这样),链路应该没问题的,为什么拨号后却不行呢?始终看不到
sppp0: flags=10008d1 mtu 1492 index 3
inet 218.108.204.62 -->; 210.83.128.121 netmask ffffff00
ether 0:0:0:0:0:0
这样的信息,只有我自己设的地址类似
pcn0: flags=1000843 mtu 1500 index 2
inet 192.168.0.119 netmask ffffff00 broadcast 192.168.0.255
ether 0:50:56:40:0:53
到底是哪里出了问题呢?我在网上查了很长时间也没解决,看了很多相关文章配置大都类似.有谁配通过,或者见过类似这样问题的帮帮我. |
|