[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bogus IPs



Hi, ALL!

well, first  I make "route flush";
2. ifconfig ed2 inet 100.100.100.1 arp netmask 255.0.0.0
    At this point:
Destination      Gateway            Flags
100.0.0.0        link#1             U
3. Trying " route -vn add -net 100 100.100.100.1" getting:

u: inet 100.0.0.0; u: inet 100.100.100.1; RTM_ADD: Add Route: len 116,
pid: 0, seq 1, errno 0, flags:<UP,GATEWAY,STATIC>
locks:  inits:
sockaddrs: <DST,GATEWAY,NETMASK>
 100.0.0.0 100.100.100.1 (0) Q00.00.ff.00.00
writing to routing socket: File exists
add net 100: gateway 100.100.100.1: File exists

3. Everithing went OK when replace "add" with "change". It seems routing
table already exist:
     route -vn change -net 100 100.100.100.1
     At this point:
Destination      Gateway            Flags
100.0.0.0        link#1             U
100.100.100.1    0:50:4d:0:3b:69    UH
100.100.100.2    link#1             UH

4. Ping to 100.100.100.2 tell me that "sendto: Host is down" (but it is
not, it has netmask same as the OpenBSD box, 100.100.100.2 IP and
default gateway 100.100.100.1
5. "route get 100.100.100.2"  then:
   route to: 100.100.100.2
destination: 100.0.0.0
       mask: 255.0.0.0
  interface: ed2
      flags: <UP,DONE,CLONING>
 recvpipe  sendpipe  ssthresh  rtt,msec    rttvar  hopcount      mtu
expire
       0         0         0         0         0         0
0      -407
(not so useful for me)
6. "route -vn add default 100.100.100.1" not helps.

What I do wrong?

Another question is why 100.100.100.1 (OpenBSD) is linked to a lo0
instead of ed2?

Thank You!
Best regards!

--
Dimitar Atanasov Stoikov, Systems Administrator|voice: +359 973 2458 166
Enemona Holding AD, Kozloduy, BG               |       +359 973 6453
mailto:ds_(_at_)_enemona_(_dot_)_bultemp_(_dot_)_bg                   |fax:   +359 973 4874
http://enemona.bultemp.bg                       |ICQ: Not available yet.



Visit your host, monkey.org