免费注册 查看新帖 |

Chinaunix

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

pppoe怎么都不能上网,我的拓扑结构和其他人不一样。 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-01-08 11:40 |只看该作者 |倒序浏览
我用电信的,adsl,512k,freeBSd6.1,配置了ppp.conf 和 rc.conf
我的modem 的ip是 10.0.0.2 ,连接在交换机上了,我的服务器的两个网卡也连接在交换机上的,其他机器也在交换机上,可能和别人的拓扑不太一样,不知道怎么改一下 。帮忙。
配置如下:
/etc/ppp.conf     /etc/ppp/ppp.conf

default:
set log Phase Chat LCP IPCP CCP tun command
ident user-ppp VERSION (built COMPILATIONDATE)
set device PPPoE:ed1
set speed sync
set mru 1492
set mtu 1492
set ctsrts off
set timeout 60
disable lqr
add default HISADDR                    # Add a (sticky) default route
enable dns
adsl:
set authname xxxxxxx
set authkey xxxxxx
set dial
set login
set ifaddr 10.0.0.2/0 10.0.0.254/0
nat enable yes



rc.conf

#!/bin/sh

# -- sysinstall generated deltas -- # Wed Dec 27 17:21:05 2006
inetd_enable="YES"
defaultrouter="10.0.0.254"
kern_securelevel="2"
kern_securelevel_enable="YES"
nfs_server_enable="no"
sendmail_enable="none"
sshd_enable="YES"
usbd_enable="YES"
moused_enable="YES"
linux_enable="YES"
#ppp start
ppp_enable="YES"
ppp_mode="ddial"
ppp_nat="YES"
ppp_profile="adsl"
named_enable="yes"
#ppp end

router_flags="-q"
router="/sbin/routed"
router_enable="YES"
gateway_enable="YES"
rpcbind_enable="YES"
# -- sysinstall generated deltas -- # Mon Jan  8 10:07:38 2007
ifconfig_ed1="inet 10.0.0.254  netmask 255.255.255.0"
ifconfig_ed0="inet 172.16.16.1  netmask 255.255.255.0"
hostname="Enring.org"


ifconfig 信息:
cy@Enring[/etc]ifconfig
ed0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet6 fe80::5054:abff:fe33:bc43%ed0 prefixlen 64 scopeid 0x1
        inet 172.16.16.1 netmask 0xffffff00 broadcast 172.16.16.255
        ether 52:54:ab:33:bc:43
        media: Ethernet autoselect (10baseT/UTP)
ed1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet6 fe80::5054:abff:fe33:d003%ed1 prefixlen 64 scopeid 0x2
        inet 10.0.0.254 netmask 0xffffff00 broadcast 10.0.0.255
        ether 52:54:ab:33:d0:03
        media: Ethernet autoselect (10baseT/UTP)
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
        inet 127.0.0.1 netmask 0xff000000
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
        Opened by PID 682
tun1: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
        Opened by PID 686

拨号信息
cy@Enring[/etc]ppp -ddial adsl
Working in ddial mode
Using interface: tun2
cy@Enring[/etc]ifconfig
ed0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet6 fe80::5054:abff:fe33:bc43%ed0 prefixlen 64 scopeid 0x1
        inet 172.16.16.1 netmask 0xffffff00 broadcast 172.16.16.255
        ether 52:54:ab:33:bc:43
        media: Ethernet autoselect (10baseT/UTP)
ed1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet6 fe80::5054:abff:fe33:d003%ed1 prefixlen 64 scopeid 0x2
        inet 10.0.0.254 netmask 0xffffff00 broadcast 10.0.0.255
        ether 52:54:ab:33:d0:03
        media: Ethernet autoselect (10baseT/UTP)
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
        inet 127.0.0.1 netmask 0xff000000
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
        Opened by PID 682
tun1: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
        Opened by PID 686
tun2: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
        Opened by PID 725
cy@Enring[/etc]

我拨一次,就多增加一个tun

论坛徽章:
0
2 [报告]
发表于 2007-01-08 12:59 |只看该作者

不大了解这个环境下的pppoe


  1. defaultrouter="10.0.0.254"
复制代码

把网关指向你的猫看看
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP