Subject: Re: writing to routing socket: File exists
To: Jun-ichiro itojun Hagino <itojun@iijlab.net>
From: Andrew Brown <atatat@atatdot.net>
List: current-users
Date: 12/05/2000 10:35:59
> I ran the same set of test on:
>
>NetBSD starfruit.itojun.org 1.5L NetBSD 1.5L (STARFRUIT) #275: Tue Dec 5 14:06:46 JST 2000 itojun@starfruit.itojun.org:/usr/home/itojun/NetBSD/src/sys/arch/i386/compile/STARFRUIT i386
>
> for me it went just fine. typescript is attached (slightly
> edited for readability).
great. i'll do that too. i'll note beforehand that my version of
/etc/rc.d/network is newer (1.26 vs 1.18) and that after you do
"ifconfig lo0 127.0.0.1", you have a host route (marked with an H) in
your table, whereas i have a non-host route (ie, not marked with an
H).
--------8<--------8<--------8<--------8<--------8<--------8<--------
# head /etc/rc.d/network
#!/bin/sh
#
# $NetBSD: network,v 1.26 2000/11/22 04:20:04 nisimura Exp $
#
# PROVIDE: network
# REQUIRE: ipfilter ipsec mountcritlocal root tty sysctl
. /etc/rc.subr
# netstat -rn
Routing tables
Internet:
Destination Gateway Flags Refs Use Mtu Interface
Internet6:
Destination Gateway Flags Refs Use Mtu Interface
::1 ::1 UH 0 0 33192 lo0
fe80::%lo0/64 fe80::1%lo0 U 0 0 33192 lo0
ff01::/32 ::1 U 0 0 33192 lo0
ff02::%lo0/32 fe80::1%lo0 UC 0 0 33192 lo0
# netstat -in
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Colls
ex0* 1500 <Link> 00:50:04:68:c6:10 0 0 0 0 0
lo0 33192 <Link> 0 0 0 0 0
lo0 33192 fe80::/64 fe80::1 0 0 0 0 0
lo0 33192 ::1/128 ::1 0 0 0 0 0
# ifconfig -a
ex0: flags=8822<BROADCAST,NOTRAILERS,SIMPLEX,MULTICAST> mtu 1500
address: 00:50:04:68:c6:10
media: Ethernet autoselect (10baseT)
status: active
lo0: flags=8009<UP,LOOPBACK,MULTICAST> mtu 33192
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
inet6 ::1 prefixlen 128
# ifconfig lo0 inet 127.0.0.1
# netstat -rn
Routing tables
Internet:
Destination Gateway Flags Refs Use Mtu Interface
127 127.0.0.1 U 0 0 33192 lo0
Internet6:
Destination Gateway Flags Refs Use Mtu Interface
::1 ::1 UH 0 0 33192 lo0
fe80::%lo0/64 fe80::1%lo0 U 0 0 33192 lo0
ff01::/32 ::1 U 0 0 33192 lo0
ff02::%lo0/32 fe80::1%lo0 UC 0 0 33192 lo0
# ifconfig -a
ex0: flags=8822<BROADCAST,NOTRAILERS,SIMPLEX,MULTICAST> mtu 1500
address: 00:50:04:68:c6:10
media: Ethernet autoselect (10baseT)
status: active
lo0: flags=8009<UP,LOOPBACK,MULTICAST> mtu 33192
inet 127.0.0.1 netmask 0xff000000
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
inet6 ::1 prefixlen 128
# netstat -in
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Colls
ex0* 1500 <Link> 00:50:04:68:c6:10 0 0 0 0 0
lo0 33192 <Link> 0 0 0 0 0
lo0 33192 fe80::/64 fe80::1 0 0 0 0 0
lo0 33192 ::1/128 ::1 0 0 0 0 0
lo0 33192 127 127.0.0.1 0 0 0 0 0
# netstat -rn -f inet
Routing tables
Internet:
Destination Gateway Flags Refs Use Mtu Interface
127 127.0.0.1 U 0 0 33192 lo0
# route add -inet 127.0.0.0 -netmask 0xff000000 127.0.0.1 -reject
writing to routing socket: File exists
add net 127.0.0.0: gateway 127.0.0.1: File exists
# netstat -rn -f inet
Routing tables
Internet:
Destination Gateway Flags Refs Use Mtu Interface
127 127.0.0.1 U 0 0 33192 lo0
--------8<--------8<--------8<--------8<--------8<--------8<--------
--
|-----< "CODE WARRIOR" >-----|
codewarrior@daemon.org * "ah! i see you have the internet
twofsonet@graffiti.com (Andrew Brown) that goes *ping*!"
andrew@crossbar.com * "information is power -- share the wealth."