Skip site navigation (1)Skip section navigation (2)
Date:      Mon,  9 Dec 96 23:11:01 +0700
From:      "Victor A. Sudakov" <victor@vas.tomsk.su>
To:        freebsd-questions@freebsd.org, steve@edmweb.com
Subject:   Re: "talk" does not work. Please help.
Message-ID:  <ABLe3ho8C0@vas.tomsk.su>
References:  <Pine.BSF.3.91.961208131253.200D-100000@bitbucket.edmweb.com>

next in thread | previous in thread | raw e-mail | index | archive | help
>   > I do not think so. AFAIK localhost in FreeBSD cannot have an
>   > arbitrary address, only 127.0.0.1
>
>   It's a network interface, just like all the others. You can assign it an
>   alias or a completely new address.
>
>   root@bitbucket:/root# ifconfig lo0 10.0.0.1
>   root@bitbucket:/root# ping 10.0.0.1
>   PING 10.0.0.1 (10.0.0.1): 56 data bytes
>   64 bytes from 10.0.0.1: icmp_seq=0 ttl=255 time=2.152 ms

Thank you very much for your advice. Now look what I have done.

On my machine, at boot time the address 127.0.0.1 is associated
with lo0, the address 10.0.0.1 is not associated with any
interface. Therefore "ping 127.0.0.1" works while "ping
10.0.0.1" does not work.

Then I say:

vas# ifconfig lo0 inet 10.0.0.1 alias

FreeBSD says:

vas# ifconfig: ioctl (SIOCAIFADDR): File exists

And after that both "ping 127.0.0.1" and "ping 10.0.0.1" begin
to work!!!! "talk" also works!!! Great!

I would be absolutely happy if I could get an answer to 2 more questions:

1. What does this "ifconfig: ioctl (SIOCAIFADDR): File exists" message mean?
   Is it an error?

2. How can I assign the 10.0.0.1 alias to lo0 automatically on
   startup? I do not like the idea of issuing this command
   manually after each reboot. Shall I put it into some kind of
   startup file?

Any ideas?

Thank you very much in advance.


--- 
Victor A. Sudakov                          E-mail: victor@vas.tomsk.su
Center of Information Technologies         FidoNet: 2:5005/49
Tomsk Region Education Department          Telephone: +7 3822 224916
Tomsk, Russian Federation                  Telefax:   +7 3822 225912



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ABLe3ho8C0>