Chinaunix首页 | 论坛 | 博客
  • 博客访问: 44091
  • 博文数量: 7
  • 博客积分: 10
  • 博客等级: 民兵
  • 技术积分: 99
  • 用 户 组: 普通用户
  • 注册时间: 2011-03-09 21:35
个人简介

主要进行软件应用、常常进行程序设计、偶尔搞点设备驱动。运用批处理辅助办公、管理系统;用VBA处理表格;用C/C++处理图像。。。

文章分类

全部博文(7)

分类: BSD

2014-12-13 15:41:29

根据手册 man urndis 的内容,在freebsd 4.7中就可以使用urndis 了,从但是在release版本中包含驱动的是freebsd 9.3,要使用手机的rndis 功能上网,可以将驱动编译在内核中,也可以在loader.conf中进行配置,手册原文如下:

点击(此处)折叠或打开

  1. To compile this driver into the kernel, place the following lines in your
  2. kernel configuration file:
  3. device ehci
  4. device uhci
  5. device ohci
  6. device xhci
  7. device usb
  8. device urndis
  9. Alternatively, to load the driver as a module at boot time, place the
  10. following line in loader.conf(5):
  11. if_urndis_load="YES"


具体如何编译内核请参考!

在完成驱动加载后,以root身份运行bsdconfig配置网络接口(Network Managment)。

点击(此处)折叠或打开

  1. bsdconfig

依次进入Network Managment ->Network Interfaces ->Networking Devices (ue0) -> DHCP 完成配置后保存退出。

这是Freebsd 10.1 下面的操作,其他版本的参照执行。

测试一下吧: ping  

不出意外的话,你可以愉快地上网了。

(当然,你现在看到的这篇文章就是通过我的手机上网贴上来的。)
阅读(2455) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~