QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 719|回复: 0

笔记本GPRS无线上网问题,老大们指教

[复制链接]
发表于 2004-12-7 23:27:34 | 显示全部楼层 |阅读模式
我的本本是IBM的T41
装了Fedora Core3
现在的问题就是:我是用GPRS无线上网,索爱的GPRS网卡,厂家没有LINUX的驱动,怎么办呢???
网卡驱动已经搞到,就是不会安装了,英文差呀,老大们解释一下吧!请看:

Using the Sony-Ericsson / Anycom GC75 PCMCIA GPRS Card with Linux
=================================================================


The GC75 get recognized as a standard modem with a serial interface.
Installing it under Linux is a matter of setting up ppp correctly and
configuring the ppp chat scripts.
Furthermore the GC75's ppp stack returns an invalid remote address.
Subsequently the 'defaultroute' option does not work. To fix this the
default gateway will be set in the 'ip-up' script.

After inserting the card, use 'cardctl ident' to verify that the card
has been correctly installed.

# cardctl ident
Socket 0:
product info: "Sony Ericsson", "GC75 PC Card", "ML2029"
manfid: 0x0221, 0x2000
function: 2 (serial)

If you encounter any problems at this stage, refer to the PCMCIA-Howto.

Next, use a terminal program like 'minicom' to find out which port the
card uses and to make sure you can talk to it using AT-commands. On my
system the port is /dev/ttyS2. Port settings should be 57600 8N1.

Once these steps have been completed, you can install the supplied
configuration files and chat scripts. It is assumed that you are reasonably
familiar with the Linux ppp daemon, if not please refer to 'man pppd' and
'man chat'. Here is what to do:

1) Install the GC75 configuration script:
- copy the file 'gc75' to the 'peers' directory, typically that is
/etc/ppp/peers
- edit the file 'gc75' as desired. At a minimum you probably have to
adjust the line '/dev/ttyS1' (enter your own port instead)
You also need to enter the correct user name in the line that now says
'user fido' and you may have to adjust the paths in the 'connect' and
'disconnect' lines
Enable the 'persist' option to keep the modem up even if the connection
fails. Once everything runs stable, the 'debug' option can be disabled.

2) Install the Chat scripts
- copy the files 'gc75chat' and 'gc75disc' to the chatscript directory. On
my system that is /etc/chatscripts
- in the 'gc75chat' file you have to replace the current APN
("internet.fido.ca") with the APN of your GPRS service provider.

3) Install the password file
- copy the file 'pap-secrets' to the ppp directory (/etc/ppp on my machine)
- change the user name and password accordingly. The supplied sample file
was used to connect to the Microcell network using uname 'fido' and
password 'fido'

4) Install the ip-up and ip-down files in the /etc/ppp directory
- as mentioned above, the 'defaultroute' option can not be used with the
GC75 card since it returns an invalid remote address during PPP
negotiation (127.0.0.2). Therefore the supplied 'ip-up' and 'ip-down'
scripts will take care of this. However, on some systems 'ip-up' and
'ip-down' files already exist in the /etc/ppp directory. In that case
it may be better to not replace them with the files from this archive, but
rather to add the part that sets up the default gateway to the existing
files.

Going Online
============

Go Online by entering 'pppd call gc75'. After a while you can check whether you
are connected by entering 'ifconfig'.

# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 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:0

ppp0 Link encapoint-to-Point Protocol
inet addr:205.151.12.207 P-t-P:127.0.0.2 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:103 errors:0 dropped:0 overruns:0 frame:0
TX packets:109 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3

Check that the routing is set up correctly by entering 'route'.

# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
127.0.0.2 * 255.255.255.255 UH 0 0 0 ppp0
default 205.151.12.207 0.0.0.0 UG 0 0 0 ppp0

The first entry in the routing table comes from the incorrectly assigned
remote address (127.0.0.2), but it doesn't hurt here. What's important is that
the default route is set to the same address as the ppp0 interface address.

Do a ping test to verify that the link is working and also that DNS name
resolution is working

# ping www.cisco.com
PING www.cisco.com (198.133.219.25): 56 data bytes
64 bytes from 198.133.219.25: icmp_seq=0 ttl=240 time=1096.6 ms
64 bytes from 198.133.219.25: icmp_seq=1 ttl=240 time=960.2 ms
64 bytes from 198.133.219.25: icmp_seq=2 ttl=240 time=1080.2 ms
64 bytes from 198.133.219.25: icmp_seq=3 ttl=240 time=980.2 ms

--- www.cisco.com ping statistics ---
5 packets transmitted, 4 packets received, 20% packet loss
round-trip min/avg/max = 960.2/1029.3/1096.6 ms

Congratulations - your GC75 is working!


Debugging
=========

If things don't work as desired, make sure the 'debug' option is turned on in
the 'gc75' file. Then check the system log for errors.


Written by Wolfgang Tolkien - no rights reserved, use at your own risk!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-24 13:42 , Processed in 0.040335 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表