ifconfig problem

Dorijan Jelincic dorijan at kset.org
Sat Jul 9 12:19:48 GMT 2005


Hello ,

  Problem is that if you set same ip adress twice for same adapter
  freebsd loosers routes to itself.
  Example:

  ifconfig rl0 192.168.1.1/24
  ping 192.168.1.1 and everything is ok..
  but if I do it again
  ifconfig rl0 192.168.1.1/24
  I got no route to host

  also, if there is a ospfd in the system, and one adapter gone down
  and then up, and in the meantime freebsd got that route from ospfd,
  and I want to set ip adress again I got
  File allready exist
  Example:

free-andromeda# ping 10.168.15.134
PING 10.168.15.134 (10.168.15.134): 56 data bytes
64 bytes from 10.168.15.134: icmp_seq=0 ttl=64 time=6.584 ms
64 bytes from 10.168.15.134: icmp_seq=1 ttl=64 time=2.896 ms
64 bytes from 10.168.15.134: icmp_seq=2 ttl=64 time=2.871 ms
64 bytes from 10.168.15.134: icmp_seq=3 ttl=64 time=2.849 ms
^C
--- 10.168.15.134 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max/stddev = 2.849/3.800/6.584/1.607 ms
  
after couple of second, after I got routes from ospfd, ping dies
(this is a redundant link, routes I got from other router but not
throught this link)


free-andromeda# ping 10.168.15.134
PING 10.168.15.134 (10.168.15.134): 56 data bytes
^C
--- 10.168.15.134 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss

but the link is still up..
and if I do this:

free-andromeda# ifconfig acx0 10.168.15.133/30
free-andromeda# ping 10.168.15.133
PING 10.168.15.133 (10.168.15.133): 56 data bytes
64 bytes from 10.168.15.133: icmp_seq=0 ttl=64 time=0.248 ms
64 bytes from 10.168.15.133: icmp_seq=1 ttl=64 time=0.138 ms
^C
--- 10.168.15.133 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.138/0.193/0.248/0.055 ms
free-andromeda#
free-andromeda# ifconfig acx0 10.168.15.133/30
free-andromeda# ping 10.168.15.133
PING 10.168.15.133 (10.168.15.133): 56 data bytes
ping: sendto: No route to host
ping: sendto: No route to host
^C
--- 10.168.15.133 ping statistics ---
2 packets transmitted, 0 packets received, 100% packet loss

(problem from above)
and later if I do this:
free-andromeda# ifconfig acx0 10.168.160.1/24
free-andromeda# ifconfig acx0 10.168.15.133/30
ifconfig: ioctl (SIOCAIFADDR): File exists


          I am running current-004, and zebra 0.95
  

-- 
"Well it's just that lately I've noticed 
everyone seems to trust me. It's quite 
unnerving." - Garak, DS9 : Empok Nor

                Dorijan Jelincic, 9a3ajd



More information about the freebsd-current mailing list