sem# dmesg | grep u3g
u3g0: on usbus1
u3g0: Found 3 ports.
u3g0: at uhub1, port 2, addr 3 (disconnected)
u3g0: on usbus0
u3g0: Found 3 ports.
不知道是不是这些东西。
sem001 于 2011-03-07 18:03:14发表:
前面的帖错了。
default:
set log Phase Chat LCP IPCP CCP tun command
ident user-ppp VERSION
set device /dev/cuau1
set speed 115200
set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
\"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT"
set timeout 180 # 3 minute idle timer (the default)
enable dns # request DNS info (for resolv.conf)
set phone PHONE_NUM
set authname USERNAME
set authkey PASSWORD
这几行PPP配置自己看看吧,设备名正确了?拨号号码,用户名,密码,你一个都没设置。
sem001 于 2011-03-07 16:06:42发表:
我的拨号还是不成功,
我的ppp.conf文件内容如下:
default:
set log Phase Chat LCP IPCP CCP tun command
ident user-ppp VERSION
# Ensure that "device" references the correct serial port
# for your modem. (cuau0 = COM1, cuau1 = COM2)
#
set device /dev/cuau1
set speed 115200
set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
\"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT"
set timeout 180 # 3 minute idle timer (the default)
enable dns # request DNS info (for resolv.conf)
papchap:
#
# edit the next three lines and replace the items in caps with
# the values which have been assigned by your ISP.
#
set phone PHONE_NUM
set authname USERNAME
set authkey PASSWORD
set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
add default HISADDR # Add a (sticky) default route
===
sem# ppp
Loading /lib/libalias_cuseeme.so
Loading /lib/libalias_ftp.so
Loading /lib/libalias_irc.so
Loading /lib/libalias_nbt.so
Loading /lib/libalias_pptp.so
Loading /lib/libalias_skinny.so
Loading /lib/libalias_smedia.so
Working in interactive mode
Using interface: tun0
ppp ON sem> set device /dev/cuau1
ppp ON sem>
ppp ON sem> term
deflink: Entering terminal mode on /dev/cuau1
Type `~?' for help
happy_sky 于 2012-09-20 16:57:58发表:
支持继续讨论,为啥后面没情况了呢!!???
sem001 于 2011-03-07 18:04:48发表:
woodelf :你前面提到设备名。
on usbus1
on usbus0
其实我还真不是很确定。
sem# dmesg | grep u3g
u3g0:
u3g0: Found 3 ports.
u3g0: at uhub1, port 2, addr 3 (disconnected)
u3g0:
u3g0: Found 3 ports.
不知道是不是这些东西。
sem001 于 2011-03-07 18:03:14发表:
前面的帖错了。
default:
set log Phase Chat LCP IPCP CCP tun command
ident user-ppp VERSION
set device /dev/cuau1
set speed 115200
set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
\"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT"
set timeout 180 # 3 minute idle timer (the default)
enable dns # request DNS info (for resolv.conf)
papchap:
set phone *99#
set authname
set authkey
set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
add default HISADDR
===================
没有用户名和密码。
我的qq号是:24234235。
sem001 于 2011-03-07 17:59:22发表:
我的qq:24234235,
哪位兄弟,能否赐教下
woodelf 于 2011-03-07 16:21:26发表:
set device /dev/cuau1
set phone PHONE_NUM
set authname USERNAME
set authkey PASSWORD
这几行PPP配置自己看看吧,设备名正确了?拨号号码,用户名,密码,你一个都没设置。
sem001 于 2011-03-07 16:06:42发表:
我的拨号还是不成功,
我的ppp.conf文件内容如下:
default:
set log Phase Chat LCP IPCP CCP tun command
ident user-ppp VERSION
# Ensure that "device" references the correct serial port
# for your modem. (cuau0 = COM1, cuau1 = COM2)
#
set device /dev/cuau1
set speed 115200
set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
\"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT"
set timeout 180 # 3 minute idle timer (the default)
enable dns # request DNS info (for resolv.conf)
papchap:
#
# edit the next three lines and replace the items in caps with
# the values which have been assigned by your ISP.
#
set phone PHONE_NUM
set authname USERNAME
set authkey PASSWORD
set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
add default HISADDR # Add a (sticky) default route
===
sem# ppp
Loading /lib/libalias_cuseeme.so
Loading /lib/libalias_ftp.so
Loading /lib/libalias_irc.so
Loading /lib/libalias_nbt.so
Loading /lib/libalias_pptp.so
Loading /lib/libalias_skinny.so
Loading /lib/libalias_smedia.so
Working in interactive mode
Using interface: tun0
ppp ON sem> set device /dev/cuau1
ppp ON sem>
ppp ON sem> term
deflink: Entering terminal mode on /dev/cuau1
Type `~?' for help
就卡这这里不动了。
不知道问题出在哪里了。
dx2131 于 2011-03-06 06:14:29发表:
领教了 ~~~~~~~~~~~~~~~!
woodelf 于 2011-03-04 21:31:58发表:
我建议LZ先去看看FreeBSD手册。
loader.conf在手册说得很明白了,是加载模块的一个配置文件,决定了哪些模块需要在开机时候加载。
另外,Pfsense是FreeBSD衍生的衍生,但是它不是FreeBSD。
从dmesg信息来看,网卡可以被系统识别,上网应该没问题。
sem001 于 2011-03-04 19:17:30发表:
还有,我把3G无线上网卡插到 FreeBSD 8.1的电脑上后,屏幕提示如下信息,也请帮忙分析下: at usbus1
at usbus1 (disconnected)
at usbus1
on usbus1
on usbs1
on usbs1
Removable CD-ROM SCSI-2 device
Removable CD-ROM SCSI-2 device
sem# ugen1.2:
uhub_explore: illegal enable change, port 1
ugen1.2:
ugen1.2:
u3g0:
u3g0: Found 3 ports.
umass0:
umass0: SCSI over Bulk-Only; quirks =0x0000
umass1:
umass1: SCSI over Bulk-Only; quirks = 0x0000
(probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0
(probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error
(probe0:umass-sim0:0:0:0): SCSI status: Check Condition
(probe0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Mediunm not present)
cd0: at umass-sim0 bus 0 scbus1 target 0 lun 0
cd0:
cd0: 40.000MB/S transfers
cd0: Attemp to query device size failed: NOT READY, Medium not present
umass1:2:1:-1: Attached to scbus2
uhub_explore: illegal enable change, port 1
(probe0:umass-sim1:1:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0
(probe0:umass-sim1:1:0:0): CAM status: SCSI Status Error
(probe0:umass-sim1:1:0:0): SCSI status: Check Condition
(probe0:umass-sim1:1:0:0): SCSI sense: NOT READY asc:3a,0 (Mediunm not present)
da0: at umass-sim1 bus 1 scbus2 target 0 lun 0
da0:
da0: 40.000MB/S transfers
da0: Attemp to query device size failed: NOT READY, Medium not present
sem001 于 2011-03-04 19:14:11发表:
在FreeBSD 8.1系统中 能找到 /usr/src/sys/i386/conf/GENERIC 这个文件,但是我在Pfsense2.0rc1中却找不到这个文件,然后我用 uname -i 看了下 ,提示的是:pfSense8_SMP,接着我去搜索这个文件,也搜不到。 不知道如何在Pfsense中找到 内核配置文件?
另外, 你说的 loader.conf 文件不知要如何附加上去?
还有当我把 3G无线上网卡插到 FreeBSD8.1 的主机上后,屏幕提示如下信息,也请帮忙分析下:
============
在FreeBSD 8.1系统中 能找到 /usr/src/sys/i386/conf/GENERIC 这个文件,但是我在Pfsense2.0rc1中却找不到这个文件,然后我用 uname -i 看了下 ,提示的是:pfSense8_SMP,接着我去搜索这个文件,也搜不到。 不知道如何在Pfsense中找到 内核配置文件?
另外, 你说的 loader.conf 文件不知要如何附加上去?
woodelf 于 2011-03-04 15:57:12发表:
照着改吧,不需要的注释掉,重新编译下内核,当然,不编译也可以。既然有华为的配置项,相信华为的产品应该可以运行起来。
顺便,我把我的loader.conf附上。把扩展名改为conf。
至于拨号方法和ppp配置文件,相信你已经看到了。
# USB support
options USB_DEBUG # enable debug msgs
device uhci # UHCI PCI->USB interface
device ohci # OHCI PCI->USB interface
device ehci # EHCI PCI->USB interface (USB 2.0)
device usb # USB Bus (required)
#device udbp # USB Double Bulk Pipe devices
device uhid # "Human Interface Devices"
device ukbd # Keyboard
#device ulpt # Printer
device umass # Disks/Mass storage - Requires scbus and da
device ums # Mouse
#device urio # Diamond Rio 500 MP3 player
# USB Serial devices
device u3g # USB-based 3G modems (Option, Huawei, Sierra)
#device uark # Technologies ARK3116 based serial adapters
#device ubsa # Belkin F5U103 and compatible serial adapters
#device uftdi # For FTDI usb serial adapters
#device uipaq # Some WinCE based devices
#device uplcom # Prolific PL-2303 serial adapters
#device uslcom # SI Labs CP2101/CP2102 serial adapters
#device uvisor # Visor and Palm devices
#device uvscom # USB serial support for DDI pocket's PHS
# USB Ethernet, requires miibus
#device aue # ADMtek USB Ethernet
#device axe # ASIX Electronics USB Ethernet
#device cdce # Generic USB over Ethernet
#device cue # CATC USB Ethernet
#device kue # Kawasaki LSI USB Ethernet
#device rue # RealTek RTL8150 USB Ethernet
#device udav # Davicom DM9601E USB
# USB Wireless
#device rum # Ralink Technology RT2501USB wireless NICs
#device uath # Atheros AR5523 wireless NICs
#device ural # Ralink Technology RT2500USB wireless NICs
#device zyd # ZyDAS zb1211/zb1211b wireless NICs
[attach]33866[/attach]
sem001 于 2011-03-04 14:28:21发表:
我的FreeBSD版本是:
FreeBSD 8.1-RELEASE
我的3G无线网卡型号是:
华为E176G
/usr/src/sys/i386/conf/GENERIC这个文件的USB部分如下:
=========================================
# USB support
options USB_DEBUG # enable debug msgs
device uhci # UHCI PCI->USB interface
device ohci # OHCI PCI->USB interface
device ehci # EHCI PCI->USB interface (USB 2.0)
device usb # USB Bus (required)
#device udbp # USB Double Bulk Pipe devices
device uhid # "Human Interface Devices"
device ukbd # Keyboard
device ulpt # Printer
device umass # Disks/Mass storage - Requires scbus and da
device ums # Mouse
device urio # Diamond Rio 500 MP3 player
# USB Serial devices
device u3g # USB-based 3G modems (Option, Huawei, Sierra)
device uark # Technologies ARK3116 based serial adapters
device ubsa # Belkin F5U103 and compatible serial adapters
device uftdi # For FTDI usb serial adapters
device uipaq # Some WinCE based devices
device uplcom # Prolific PL-2303 serial adapters
device uslcom # SI Labs CP2101/CP2102 serial adapters
device uvisor # Visor and Palm devices
device uvscom # USB serial support for DDI pocket's PHS
# USB Ethernet, requires miibus
device aue # ADMtek USB Ethernet
device axe # ASIX Electronics USB Ethernet
device cdce # Generic USB over Ethernet
device cue # CATC USB Ethernet
device kue # Kawasaki LSI USB Ethernet
device rue # RealTek RTL8150 USB Ethernet
device udav # Davicom DM9601E USB
# USB Wireless
device rum # Ralink Technology RT2501USB wireless NICs
device uath # Atheros AR5523 wireless NICs
device ural # Ralink Technology RT2500USB wireless NICs
device zyd # ZyDAS zb1211/zb1211b wireless NICs
=========================================
这个3G有自带RedHat的驱动,但是不知道如何在FreeBSD下运行起来,望指点。
nxzcc 于 2011-03-03 08:54:32发表:
也想知道呀
woodelf 于 2011-03-02 16:41:34发表:
[i=s] 本帖最后由 woodelf 于 2011-3-2 16:51 编辑 [/i]
换版本吧,FreeBSD 7.x版本内核似乎不支持3G modem,8.0-8.2测试无问题。另外,也可以考虑OpenBSD 4.7以上版本,4.7-4.8测试通过,4.6未有测试,而且确实太老了。
当然,最好把/usr/src/sys/i386/conf/GENERIC这个文件的USB相关内容贴给我看看。