免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3424 | 回复: 4
打印 上一主题 下一主题

[FreeBSD] ADSL猫的ZIPB模式下设dhcp上网不行?请教 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-05-14 01:52 |只看该作者 |倒序浏览
弄了好长时间,我实在是挺不住了,在win下倒是没问题,想来是我的技术不行

---------------------------------------------------------------------------
ADSL猫,是普天的路由功能的,原先我就是直接设置成路由功能的,在FB5.4及win上都可以免拔号上网,下午刚看到篇文章是将猫设置成ZIPB模式,这是一点说明:Configuring ZIPB Mode
The ADSL/Ethernet router offers a special type of bridging mode called ZIPB (Zero Installation PPP Bridge) mode. An ISP may use this feature to simplify the installation process for customers who will be using the device as a bridge. Contact your ISP to determine if they use this feature before you enable it.

In ZIPB mode, the ADSL/Ethernet router uses its own PPP software to initiate communication at startup with the ISP. The ISP assigns the requested IP information to the device's PPP interface, which then uses its DHCP server to pass the information on to the user's PC. Therefore, the PPP interface and the user's PC both use the same IP address.

Because the ADSL/Ethernet router runs the PPP software, the user does not need to install a PPP client on the PC. (Most bridge products require such an installation.)
Working with your ISP, follow this procedure to enable ZIPB mode:

Ensure that your PCs are configured to accept IP information assigned by a DHCP server. See Configuring TCP/IP on Your Computers for instructions.
Ensure that at least one PPPoE or PPPoA interface has been created on the ADSL/Ethernet router. See Configuring PPP Interfaces for instructions.
If you have more than one computer on your LAN and your ISP provides multiple public IP addresses for those computers, you must establish a PPP interface for each public IP address.

If it does not already exist, create a DHCP server pool on the unit with poolid=0. See Configuring DHCP Server for instructions.
The pool should include at least one unique private IP address for each computer on your LAN. The gateway IP address should be set to the address of the LAN interface, which must be in the same subnet (see Configuring the LAN IP Address for instructions).

Enable DHCP server, as described in Setting the DHCP Mode.

Click the Services tab to display the NAT Configuration page. If the NAT feature is enabled, click the Disable radio button.

Click the Home tab to display the Home page, then select System Mode in the task bar. and then click the ZIPB: Enabled radio button.  

Click the Bridging: Disabled radio button.

Click the Admin tab, and then click Commit & Reboot in the task bar.

Click  to save your changes to permanent memory.


..........................................................
相对应的还需在猫上设置DHCP Server,而后在ppp连接上我是禁用dhcp,路由,启用dns后,
本机网卡直接自动获取IP,并指定dns(这是在windows上),然后就可以上网了,不用PPPoE拔号软件的。


===============================================

好,我怀着激动的心情准备在FreeBSD下也来,结果如下:

/etc/rc.conf

  1. ................
  2. ipv6_enable="NO"
  3. named_enable="NO"
  4. ifconfig_rl0="DHCP"
  5. hostname="aa.bb"
  6. .........
复制代码


/etc/resolv.conf

  1. search HaHaHa
  2. nameserver 202.102.192.68
复制代码

这个文件本来是没内容的,我设置dhcp后,重启FreeBSD,后,他自动填写的

================

这样,我在终端下打入:
ping www.163.com
cannot resolve www.163.com :host name lookup failure

ping 140.252.13.35   <---这个IP不存在是《TCP/IPV1的书上的》
ping:sendto:Invalid argument

ping 61.191.135.4   <--这是我的猫动态分配到的IP
。。。可以ping通


netstat -rn
Internet
default       61.191.135.4    UGS   0  15 rl0
61.191.135.4   127.0.0.1   UGHS  1   2  lo0=>
61.191.135.4/32   link#1     UC    0    0   rl0
127.0.0.1       127.0.0.1        UH   1    2   lo0

Internet6:
..............下面有许多,我明明是不用IP6的,怎么还有?不明白


大致的信息就这么多了,希望大家帮帮我

论坛徽章:
0
2 [报告]
发表于 2006-05-14 09:34 |只看该作者
这是win2000,ipconfig /all的输出:

  1. C:\>ipconfig /all

  2. Windows 2000 IP Configuration

  3.         Host Name . . . . . . . . . . . . : bb-wakye7ug5dx3
  4.         Primary DNS Suffix  . . . . . . . :
  5.         Node Type . . . . . . . . . . . . : Broadcast
  6.         IP Routing Enabled. . . . . . . . : No
  7.         WINS Proxy Enabled. . . . . . . . : No
  8.         DNS Suffix Search List. . . . . . : HaHaHa

  9. Ethernet adapter 本地连接:

  10.         Connection-specific DNS Suffix  . : HaHaHa
  11.         Description . . . . . . . . . . . : Realtek RTL8139(A) PCI Fast Ethernet
  12. Adapter
  13.         Physical Address. . . . . . . . . : 00-E0-4C-E2-C5-51
  14.         DHCP Enabled. . . . . . . . . . . : Yes
  15.         Autoconfiguration Enabled . . . . : Yes
  16.         IP Address. . . . . . . . . . . . : 60.171.132.13
  17.         Subnet Mask . . . . . . . . . . . : 255.255.255.255
  18.         Default Gateway . . . . . . . . . : 60.171.132.13
  19.         DHCP Server . . . . . . . . . . . : 192.168.1.1
  20.         DNS Servers . . . . . . . . . . . : 202.102.192.68
  21.                                             202.102.199.68
  22.         NetBIOS over Tcpip. . . . . . . . : Disabled
  23.         Lease Obtained. . . . . . . . . . : 2006年5月14日 9:32:59
  24.         Lease Expires . . . . . . . . . . : 2006年6月13日 9:32:59
复制代码

论坛徽章:
0
3 [报告]
发表于 2006-05-18 10:05 |只看该作者
顶下

我搜索了贴子看了freebsd的dhclient的配置,弄了弄还是不行,哪位好心人教教我

论坛徽章:
2
IT运维版块每日发帖之星
日期:2015-10-05 06:20:00操作系统版块每日发帖之星
日期:2015-10-05 06:20:00
4 [报告]
发表于 2006-05-18 10:49 |只看该作者
这样做有什么好处呢?

论坛徽章:
0
5 [报告]
发表于 2006-05-18 11:05 |只看该作者
免拔号(让猫上电自己pppoe)

我想学习php,架了apache,可以让别人访问过来。
而原先的路由模式,使用了NAT,别人访问不了,很孤独的说 @.@
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP