- 论坛徽章:
- 0
|
配置:
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 encap oint-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 encap oint-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的解决方案》操作的,可最终结果由于不能获得动态地址无法上网??是什么原因呀!!
请帮忙解决!!!! |
|