免费注册 查看新帖 |

Chinaunix

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

[openbsd]punt RTM_ADD without gateway [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-07-27 07:14 |只看该作者 |倒序浏览

转自http://happy-net.cn/freebsd/38371.htm
punt RTM_ADD without gateway
February 4, 2005 - 1:31amSubmitted by
DraGoD
-->
Submitted by
DraGoD
on February 4, 2005 - 1:31am.


Hi there,
I'm (fairly) new to OpenBSD and have some trouble getting a (test) setup to function properly..
The system that i'm trying to get up and running concerns a 2 nic / 1 (isdn) modem setup. The modem is currently not configured in OpenBSD which is no problem for me because I want to get the nic's functioning properly first anyway.
My setup is as follows:
DSL -- [cisco] -- [OpenBSD] -- [LAN]
The cisco bridges a static public IP to the wan nic of the bsd box.
The problem I am having is that I get the following message on the bsd box:
"punt RTM_ADD without gateway"
What's strange about this is that I can ping both hosts on the internet and on the local lan without trouble, but I am unable to telnet to say a webserver on port 80 both on the internet or the local lan. When I try to do that I almost immediatly recieve a "no route to host error".
Although I activated PF on the box, i'm pretty sure thats not causing any trouble because the current settings basicly allow everything (for testing purposes only ofcourse).
I'm guessing this has something todo with my routing table.. so i'll post the output of "route show" below (i've masked the public ip adres a bit);
Routing tables
Internet:
Destination Gateway Flags Refs Use Mtu Interface
default 82-204-5-157.stati UGS 0 585 - xl0
x-x-x-156.stati link#2 UC 0 0 - xl0
x-x-x-157.stati 00:0d:bc:58:a1:84 UHLc 0 0 - xl0
loopback localhost UGRS 0 0 33224 lo0
localhost localhost UH 0 2 33224 lo0
192.168.204/24 link#1 UC 0 0 - sis0
192.168.204.106 00:d0:b7:b7:ed:7f UHLc 0 17 - sis0
lans01 00:d0:b7:b7:eb:93 UHLc 0 23 - sis0
wans01 00:d0:b7:b7:ed:7f UHLc 0 0 - sis0
192.168.204.250 00:50:7f:05:80:30 UHLc 0 0 - sis0
gateway localhost UGHS 0 1 33224 lo0
BASE-ADDRESS.MCAST localhost URS 0 0 33224 lo0
Internet6:
Destination Gateway Flags Refs Use Mtu Interface
::/104 localhost.x UGRS 0 0 - lo0
::/96 localhost.x UGRS 0 0 - lo0
localhost.burgergr localhost.x UH 0 0 33224 lo0
::127.0.0.0/104 localhost.x UGRS 0 0 - lo0
::224.0.0.0/100 localhost.x UGRS 0 0 - lo0
::255.0.0.0/104 localhost.x UGRS 0 0 - lo0
::ffff:0.0.0.0/96 localhost.x UGRS 0 0 - lo0
2002::/24 localhost.x UGRS 0 0 - lo0
2002:7f00::/24 localhost.x UGRS 0 0 - lo0
2002:e000::/20 localhost.x UGRS 0 0 - lo0
2002:ff00::/24 localhost.x UGRS 0 0 - lo0
fe80::/10 localhost.x UGRS 0 0 - lo0
fe80::%sis0/64 link#1 UC 0 0 - sis0
fe80::2e0:18ff:fe4 00:e0:18:4f:8e:03 UHL 0 0 - lo0
fe80::%xl0/64 link#2 UC 0 0 - xl0
fe80::250:daff:fe7 00:50:da:7b:f5:81 UHL 0 0 - lo0
fe80::%lo0/64 fe80::1%lo0 U 0 0 - lo0
fe80::1%lo0 link#6 UHL 0 0 - lo0
fec0::/10 localhost.x UGRS 0 0 - lo0
ff01::/32 localhost.x UC 0 0 - lo0
ff02::%sis0/32 link#1 UC 0 0 - sis0
ff02::%xl0/32 link#2 UC 0 0 - xl0
ff02::%lo0/32 localhost.x UC 0 0 - lo0
Further information:
sis0 is the internal nic (int_if)
xl0 is the external nic (ext_if)
The IP address setup for my pIP is as follows:
x.x.x.156 Network address
x.x.x.157 Gateway (cisco)
x.x.x.158 free public IP (= OpenBSD ext_if)
x.x.x.159 broadcast address
The 192.168.204.250 address in the above table is the address of another internet router, I don't currently understand how it got in the routing table of the bsd box (automatic route discovery?).
Any ideas ?
Kind regards,
Maurits Meijer
Jul 26 15:00:46 router routed[16582]: punt RTM_ADD without gateway
Jul 26 15:03:32 router routed[16582]: punt RTM_ADD without gateway
Jul 26 15:04:37 router last message repeated 2 times
are you running routed ?
if you dont need it, stop
i think that is the cause of the problem
check your rc.conf file


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/37583/showart_347746.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP