免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 950 | 回复: 3
打印 上一主题 下一主题

请求wind521版主帮助解决isdn在linux下上网的问题? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-09-28 11:01 |只看该作者 |倒序浏览
配置:
Redhat Linux 8.0、isdn4k-utils-3.1-58、isdn4k-utils-devel-3.1-58
上海贝尔生产的ISDN内置卡,型号为SBT6021,使用的芯片为Winbond W6692,外加智能网络终端(NT1+C)


一、isdn4linux安装:
  [wind@NetShare isdn]$ rpm -qa|grep isdn
  isdn4k-utils-3.1-53
  isdn4k-utils-devel-3.1-53
 确认这两包已经安装!

二、isdn拨号调试过程:
1、告诉内核使用动态IP地址:
执行echo 1 >; /proc/sys/net/ipv4/ip_ dynaddr
;无返回信息

2、安装ISDN卡的驱动程序
执行modprobe hisax type=36 protocol=2
;无返回信息

3、告诉内核ISDN通过同步“PPP”方式上网
执行isdnctrl addif ippp0
;返回信息为:ippp0 added

4、指明拨叫的电话号码
执行isdnctrl addphone ippp0 out 163
;无返回信息

5、指明ISDN的电话号码为8732916
执行isdnctrl eaz ippp0 8732916
;返回信息为:EAZ/MSN for ippp0 is 8732916

6、指明第2层协议用的是“hdlc”
执行isdnctrl l2_prot ippp0 hdlc
;返回信息:layer-2-protocol for ippp0 is hdlc

7、指明第3层协议用的是“trans”
执行isdnctrl l3_prot ippp0 trans
;返回信息为:layer-3-protocol for ippp0 is trans

8、指明用同步PPP方式传输
执行isdnctrl encap ippp0 syncppp
;返回信息:Encapsulation for ippp0 is syncppp

9、指明为手工拨号方式
执行isdnctrl dialmode ippp0 manual
;无返回信息

10、重拨次数,规定了最多重拨3次。
执行isdnctrl dialmax ippp0 3
;返回信息:Dialmax for ippp0 is 3 times

11、线路空闲一段时间后,会自动挂断
执行isdnctrl huptimeout ippp0 500
;返回信息:Hangup-timeout for ippp0 is 500 sec

三、网络配置

1、添加ppp协议
执行ifconfig ippp0 0.0.0.0 pointopoint 0.0.0.0 netmask 0.0.0.0
;返回信息:SIOCSIFDSTADDR:cannot assign reguested address

此时用ifconfig查看,得到如下类似信息:

eth0 Link encap:Ethernet HWaddr 00:20:AF:F1:0A:4A
inet addr:203.0.0.1 Bcast:203.0.0.255 Mask:255.255.255.0
...
ippp0 Link encapoint-to-Point Protocol
UP POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:30

2、添加路由
执行route add default ippp0
;无返回信息

(route查看一下情况如何:

Kernel IP routing table

Destination adminway Genmask Flags Metric Ref Use Iface
127.0.0.0 ? 255.0.0.0 U 0 0 0 lo
default ? 0.0.0.0 U 0 0 0 ippp0

3、执行后台服务程序“ipppd”来为ISDN PPP服务:

ipppd user dygdj noipdefault ipcp-accept -local

ipcp-accept-remote defaultroute mru 1500 mtu 1500 /dev/ippp0
;无返回信息

4、/etc/ppp/ pap-secrets文件如下:
# Secrets for authentication using PAP
# client server secret IP addresses
dygdj ? 123456



四、测 试
1、执行isdnctrl dial ippp0
;返回信息:Dialing of ippp0 triggered

用ifconfig查看一下,得到下面的信息:
ippp0 Link encapoint-to-Point Protocol
UP POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
RX packets:22 errors:0 dropped:0 overruns:0 frame:0
TX packets:21 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:30
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:3924 Metric:1
RX packets:43 errors:0 dropped:0 overruns:0 frame:0
TX packets:43 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0

“ippp0”没有获得IP地址?

执行route 查看路由表,得到类似下面的信息:

Kernel IP routing table
Destination adminway Genmask Flags Metric Ref Use Iface
127.0.0.0 ? 255.0.0.0 U 0 0 0 lo
default * 0.0.0.0 UG 0 0 0 ippp0

2、测试ISDN的状态
执行imontty
;返回信息:
ISDN channel status:
Channel Usage Type Number
HiSax Out Net 163
HiSax Off

我是完全按照你的《linux上应用isdn的解决方案》操作的,可最终结果由于不能获得动态地址无法上网??是什么原因呀!!
请帮忙解决!!!!

论坛徽章:
0
2 [报告]
发表于 2003-09-28 14:24 |只看该作者

请求wind521版主帮助解决isdn在linux下上网的问题?

有人指导吗?

论坛徽章:
0
3 [报告]
发表于 2003-09-28 21:16 |只看该作者

请求wind521版主帮助解决isdn在linux下上网的问题?

给个答复好吗?!!!

论坛徽章:
0
4 [报告]
发表于 2003-09-29 11:18 |只看该作者

请求wind521版主帮助解决isdn在linux下上网的问题?

wind521版主在吗?给我一个答案吧!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP