📄 readme
字号:
Installation of pppsetup!------------------------------To install the compiled ppp, run 'make install'.To compile ppp.c run 'make clean' 'make', then 'make install' as root.Now run 'ppp -s' as root and answer the four questions, loginname, password, isp phone number, and modem device.You'll be asked where your modem device is, answerttyS[0-3].ttyS0 = com1 under dosttyS1 = com2 under dosttyS2 = com3 under dosttyS3 = com4 under dosThe files created when you run 'ppp -s' are '/etc/ppp/options,chat-script, pap-secrets, chap-secrets, and ip-up.You should have a recent version of pppd v2.3.8 or laterin /usr/sbin.# pppd --versionpppd version 2.4.0There's a 'usepeerdns' option in /etc/ppp/options that tells pppd to try and get a dns ip address from your service provider when it connects, then /etc/ppp/ip-up puts it in /etc/resolv.conf. If this doesn't work for whatever reason, remove the 'usepeerdns' option and put a ip address of your choice in /etc/resolv.conf. nameserver 205.252.116.61 <For example> If something in the above files is not correct you can change it by hand, or run 'ppp -s' again. # ppp -h <For help!>Run 'ppp -c' to connect and 'ppp -d' to disconnect.When you run 'ppp -c' you'll be droped back to #, you'll hear the modem dialing, in about 30 seconds you should see a local and remote ip address printed to the screen, like this below. 205.115.312.56 > 216.324.119.81 ppp0 If you don't make the ppp connection take a look at the /var/log/messages and debug files, they should have a record of the attempted ppp connection. Sample /var/log/messages file. pppd[562]: Serial connection established. pppd[562]: Using interface ppp0 pppd[562]: Connect: ppp0 <--> /dev/ttyS1 pppd[562]: local IP address 215.87.78.18 pppd[562]: remote IP address 205.94.97.35 You don't have a successful ppp connection until you receive a local & remote ip address like above. If you have the x window system you can connect in a xterm. # startx # ppp -c # netscape If you run 'ppp -c' in x windows you'll see the local & remote ip address printed in a little xmessage box, if you have /usr/X11R6/ bin/xmessage. You can run 'ifconfig' anytime to see if you're ppp connected. # ifconfig You should see something like this if you're ppp connected. ppp0 Link encap:Point-to-Point Protocol inet addr:105.207.127.86 P-t-P:205.252.116.61 Mask:255.0.0.0 Linux has some support for winmodems. If you have a winmodem that has a LUCENT chipset you might be able to get it working on linux, you have to get the "ltmodem-5.99b.tar.gz" or later package, see below.You can try this to see if you have a lucent winmodem.# cat /proc/pci ATTENTION! You may not have a /proc/pci, recent kernels 2.2 orlater don't have a /proc/pci unless it's asked for when the kernel is configured.If you see something like this you probably have a lucent modem.PCI devices found:Bus 0, device 10, function 0:Communication controller: Lucent (ex-AT&T) Microelectronics L56xMF (rev1).Medium devsel. Fast back-to-back capable. IRQ 5. Master Capable. No bursts. Min Gnt=252.Max Lat=14.Non-prefetchable 32 bit memory at 0xe6000000 [0xe6000000].I/O at 0xe800 [0xe801].I/O at 0xec00 [0xec01].You can use lspci from the pciutils package to list anypci devices, if you don't have /proc/pci.# lspci -vvYou can get the lucent winmodem driver here.http://walbran.org/sean/linux/stodolsk http://www.physcip.uni-stuttgart.de/heby/ltmodem "ltmodem-5.99b.tar.gz"# tar xzvf ltmodem-5.99b.tar.gz "Extract it!" You should have the kernel source in /usr/src/linux, if you're running a 2.2.19 kernel it should be the 2.2.19 source etc.If you don't have /usr/src/linux/include/linux/autoconf.h orversion.h, do this./usr/src/linux# make oldconfig /usr/src/linux# make include/linux/version.hltmodem-5.99b# ./build_module "Compile it!"ltmodem-5.99b# ./ltinst2 "Run this script to install it!" # ./autoloadHave this line in your /etc/modules.conf or conf.modules file.path=/lib/modules/`uname -r` # depmod -a "You only need to do this once!"# modprobe lt_modem "Load the module!"Run setserial and see if your lucent modem is detected, usingthe first I/O above for the port and IRQ 5 for irq.# setserial -v /dev/ttyLT0 uart 16550A port 0xe800 irq 5 Linux does support (p)lug (n) (p)lay modems, but you may need help from 'isapnptools' to get your pnp modem working properly on linux.You can get a compiled version of isapnptools from here. ftp://ibiblio.org/pub/Linux/system/hardwareisapnptools-1.24.bin.tgzhttp://www.roestock.demon.co.uk/isapnptools <Home page>This is the first thing you have to do.# pnpdump -c > /etc/isapnp.confTake a look at /etc/isapnp.conf to see if your pnp modem was found, andwhat IRQ etc. it was found on.# man isapnp <Man pages for the isapnptools package># man isapnp.conf <You have to read this to know how to configure# man pnpdump the /etc/isapnp.conf file> # isapnp /etc/isapnp.conf <After you configured the /etc/isapnp.conf file>Run setserial for your modem to see if it's detected correctly, becauseif setserial can't detect your modem correctly then nothing will.# setserial -v /dev/ttyS1 autoconfig /dev/ttyS1, UART: 16550A, Port: 0x02f8, IRQ: 3End! (6-12-2001) Kent Robotti
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -