免费注册 查看新帖 |

Chinaunix

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

[FreeBSD] 我的freebsd机器,可以ping 通局域网机器,不通路由? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-03-23 10:13 |只看该作者 |倒序浏览
我的freebsd机器,可以ping 通局域网机器,不通路由?
望帮忙!!!

论坛徽章:
0
2 [报告]
发表于 2008-03-23 10:15 |只看该作者
/etc/rc.conf
/etc/resolv.conf
ifconfig
帖出来。

论坛徽章:
0
3 [报告]
发表于 2008-03-23 10:18 |只看该作者
rc.conf
# -- sysinstall generated deltas -- # Sun Dec 17 18:36:55 2006
# Created: Sun Dec 17 18:36:55 2006
# Enable network daemons for user convenience.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# This file now contains just the overrides from /etc/defaults/rc.conf.
inetd_enable="YES"
sshd_enable="YES"
# -- sysinstall generated deltas -- # Sun Dec 17 18:42:13 2006
ifconfig_fxp0="inet 192.168.1.88 netmask 255.255.255.0"
defaultrouter="192.168.1.1"
~

resolv.conf
nameserver 219.150.32.132
nameserver 202.99.160.68

# ifconfig
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=8<VLAN_MTU>
        inet6 fe80::250:70ff:fe00:f8ef%fxp0 prefixlen 64 scopeid 0x1
        inet 192.168.1.88 netmask 0xffffff00 broadcast 192.168.1.255
        ether 00:50:70:00:f8:ef
        media: Ethernet autoselect (10baseT/UTP)
        status: active
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 0x3
        inet 127.0.0.1 netmask 0xff000000

论坛徽章:
0
4 [报告]
发表于 2008-03-23 10:22 |只看该作者
路由是不是禁PING了,其他机器能通么?外网连接正常么?
/etc/netstart重新读下试试

论坛徽章:
0
5 [报告]
发表于 2008-03-23 10:25 |只看该作者
其它机器到路由一切正常
C:\Documents and Settings\Lsn>ping 192.168.1.1

Pinging 192.168.1.1 with 32 bytes of data:

Reply from 192.168.1.1: bytes=32 time<10ms TTL=64
Reply from 192.168.1.1: bytes=32 time<10ms TTL=64

外网正常

bsd 机器
# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 data bytes
ping: sendto: Host is down
ping: sendto: Host is down

# ping 192.168.1.101
PING 192.168.1.101 (192.168.1.101): 56 data bytes
64 bytes from 192.168.1.101: icmp_seq=0 ttl=128 time=0.568 ms
64 bytes from 192.168.1.101: icmp_seq=1 ttl=128 time=0.538 ms
64 bytes from 192.168.1.101: icmp_seq=2 ttl=128 time=0.535 ms
64 bytes from 192.168.1.101: icmp_seq=3 ttl=128 time=0.584 ms
64 bytes from 192.168.1.101: icmp_seq=4 ttl=128 time=0.535 ms
64 bytes from 192.168.1.101: icmp_seq=5 ttl=128 time=0.533 ms
64 bytes from 192.168.1.101: icmp_seq=6 ttl=128 time=0.526 ms
64 bytes from 192.168.1.101: icmp_seq=7 ttl=128 time=0.543 ms

通局域网主机,不通路由,外网不正常

[ 本帖最后由 SwordNorth 于 2008-3-23 10:37 编辑 ]

论坛徽章:
54
2017金鸡报晓
日期:2017-02-08 10:39:42操作系统版块每日发帖之星
日期:2016-03-08 06:20:00操作系统版块每日发帖之星
日期:2016-03-07 06:20:00操作系统版块每日发帖之星
日期:2016-02-22 06:20:00操作系统版块每日发帖之星
日期:2016-01-29 06:20:00操作系统版块每日发帖之星
日期:2016-01-27 06:20:00操作系统版块每日发帖之星
日期:2016-01-20 06:20:00操作系统版块每日发帖之星
日期:2016-01-06 06:20:0015-16赛季CBA联赛之江苏
日期:2015-12-21 20:00:24操作系统版块每日发帖之星
日期:2015-12-21 06:20:00IT运维版块每日发帖之星
日期:2015-11-17 06:20:002015亚冠之广州恒大
日期:2015-11-12 10:58:02
6 [报告]
发表于 2008-03-23 10:30 |只看该作者
/etc/rc.conf

gateway_enable='yes'

        media: Ethernet autoselect (10baseT/UTP)

这个是不是有点问题?现在还有10M的网络?

[ 本帖最后由 lsstarboy 于 2008-3-23 10:33 编辑 ]

论坛徽章:
0
7 [报告]
发表于 2008-03-23 10:34 |只看该作者
安装着一个路由器

曾经用FreeBSD 做过双线,没有成功,时隔已久

再拿出来搞webServer,却联网不成!

路由器没有问题~ 其它机器,上网正常……

论坛徽章:
0
8 [报告]
发表于 2008-03-23 10:39 |只看该作者
原帖由 lsstarboy 于 2008-3-23 10:30 发表
/etc/rc.conf

gateway_enable='yes'


这个是不是有点问题?现在还有10M的网络?

这不是问题,机器:p2-366 曾经做webServer:kemai domain+adsl 一切正常,我以前在这里有贴子,CU朋友测试过的,全完没有问题!

论坛徽章:
0
9 [报告]
发表于 2008-03-23 10:43 |只看该作者
与我以前配置的:adsl拔号是否有关系呢?

论坛徽章:
0
10 [报告]
发表于 2008-03-23 11:41 |只看该作者
恕我愚钝,我还是没搞清问题所在。

其他client正常,ping路由正常,外网正常。
FB不正常,ping路由不通,外网呢?

你说想做WEB,却联网不成,具体表现呢?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP