- 论坛徽章:
- 0
|
弄了好长时间,我实在是挺不住了,在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
- ................
- ipv6_enable="NO"
- named_enable="NO"
- ifconfig_rl0="DHCP"
- hostname="aa.bb"
- .........
复制代码
/etc/resolv.conf
- search HaHaHa
- 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的,怎么还有?不明白
大致的信息就这么多了,希望大家帮帮我 |
|