From: Jamie Kahn Genet on
Jolly Roger <jollyroger(a)pobox.com> wrote:

> In article <1jhn2lg.14qsfsw1ilq7grN%jamiekg(a)wizardling.geek.nz>,
> jamiekg(a)wizardling.geek.nz (Jamie Kahn Genet) wrote:
>
> > Jolly Roger <jollyroger(a)pobox.com> wrote:
> >
> > > In article <1jhmr1c.gqk4xizs2obdN%jamiekg(a)wizardling.geek.nz>,
> > > jamiekg(a)wizardling.geek.nz (Jamie Kahn Genet) wrote:
> > >
> > > > OSX 10.5.8, been happening for a couple years. No, zero machines with
> > > > the same name are on my network. Yup - I've double and triple and
> > > > quadruple checked this. In Network settings->WINS it always says "NAME
> > > > is currently in use" no matter what I change it to. I change it to...
> > > > say 'Dragon', apply - it still says it's in use. I change the computer
> > > > name in Sharing prefs and later it's Dragon_(2) again.
> > > >
> > > > However I'd REALLY like it to accept and KEEP 'Crystalis' as my
> > > > computer's name. Not Crystalis_(2). Not one of the other test names
> > > > which all eventually become NAME_(2) anyway.
> > > >
> > > > I've put up with it for ages as it's a minor problem - I can just use IP
> > > > addresses to connect, not hostnames that OSX keeps appending numbers to
> > > > and thus wrecking (so braindead...). But for reasons I won't bore you
> > > > with it's becoming more of a hassle. Any advice?
> > > >
> > > > TIA,
> > > > Jamie Kahn Genet
> > >
> > > Have you tried doing some investigative work with the various smb
> > > command-line tools in Mac OS X? For instance, have you tried this?:
> > >
> > > findsmb
> >
> > Done after changing the name yet again, but before it reverts to
> > Crystalis_(2) as it always does:
> >
> > Crystalis:~ Jamie_Standard$ findsmb
> >
> > *=DMB
> > +=LMB
> > IP ADDR NETBIOS NAME WORKGROUP/OS/VERSION
> > ---------------------------------------------------------------------
> > 192.168.1.2 CRYSTALIS +[WORKGROUP] [Unix] [Samba 3.0.25b-apple]
>
> And I take it 192.168.1.2 is the IP address of the same machine? That's
> strange.

Correct.

> > > Or you might try setting the name to something else, and then doing a:
> > >
> > > smbtool lookup Crystalis
> >
> > I'm afraid I get onlly the following result:
> >
> > -bash: smbtool: command not found
> >
> > A utility I've not got installed? Are you sure it's part of 10.5's
> > standard install?
> >
> > TIA JR :-)
> >
> > - Jamie.
>
> Oops. I meant smbutil, which is at /usr/bin/smbutil in 10.6. And for
> some reason I haven't gotten it to work correctly here - it always times
> out.

Crystalis:~ Jamie_Standard$ smbutil lookup Crystalis
Got response from 192.168.225.1
IP address of Crystalis: 192.168.225.1

--
If you're not part of the solution, you're part of the precipitate.
From: David Empson on
Doug Anderson <ethelthelogremovethis(a)gmail.com> wrote:

> jamiekg(a)wizardling.geek.nz (Jamie Kahn Genet) writes:
>
> > OSX 10.5.8, been happening for a couple years. No, zero machines with
> > the same name are on my network. Yup - I've double and triple and
> > quadruple checked this. In Network settings->WINS it always says "NAME
> > is currently in use" no matter what I change it to. I change it to...
> > say 'Dragon', apply - it still says it's in use. I change the computer
> > name in Sharing prefs and later it's Dragon_(2) again.
> >
> > However I'd REALLY like it to accept and KEEP 'Crystalis' as my
> > computer's name. Not Crystalis_(2). Not one of the other test names
> > which all eventually become NAME_(2) anyway.
> >
> > I've put up with it for ages as it's a minor problem - I can just use IP
> > addresses to connect, not hostnames that OSX keeps appending numbers to
> > and thus wrecking (so braindead...). But for reasons I won't bore you
> > with it's becoming more of a hassle. Any advice?
>
> Have you tried the usual way of setting your computer name:
>
> System Preferences -> Sharing -> Computer name:

Apart from the obvious, the first thing I'd check is how the computer is
connected to the network.

Do you have multiple active network interfaces going to the same
network, typically Ethernet and Airport?

In this situation, each interface will end up with a different IP
address, and you could get a scenario where the computer's Bonjour
transmissions via one interface are picked up via the other interface,
and assumed to be a different computer on the network with the same
name. This will trigger the auto renaming of the computer.

I haven't noticed this myself, but I usually turn off Airport as soon as
I plug in an Ethernet cable for the same network.

This may only occur in specific conditions, such as an unreliable or
busy WiFi network, or race conditions between Bonjour and changes of IP
address such as AutoIP to DHCP (acquiring a lease) or DHCP lease expiry
and getting a new IP address.

None of these would cause any problems if the computer has a single
connection to the network, nor if the two network interfaces are going
to different networks.

A related issue is a misconfigured Ethernet which has a loop due to two
connections between switches. (Most home users won't be in a position to
encounter this - you would need at least two Ethernet switches/routers.)

This can cause all sorts of weird problems due to computers receiving
their own broadcasts. Our office Windows network basically stopped
working when this happened, due to utter confusion in the NetBIOS name
resolution protocol. It was repeatedly going through re-election of the
master browser or something like that, and flooding the network.

--
David Empson
dempson(a)actrix.gen.nz
From: Jolly Roger on
In article <1jhnt2i.b2luqr17xmyzN%jamiekg(a)wizardling.geek.nz>,
jamiekg(a)wizardling.geek.nz (Jamie Kahn Genet) wrote:

> Jolly Roger <jollyroger(a)pobox.com> wrote:
>
> > In article <1jhn2lg.14qsfsw1ilq7grN%jamiekg(a)wizardling.geek.nz>,
> > jamiekg(a)wizardling.geek.nz (Jamie Kahn Genet) wrote:
> >
> > > Crystalis:~ Jamie_Standard$ findsmb
> > >
> > > *=DMB
> > > +=LMB
> > > IP ADDR NETBIOS NAME WORKGROUP/OS/VERSION
> > > ---------------------------------------------------------------------
> > > 192.168.1.2 CRYSTALIS +[WORKGROUP] [Unix] [Samba 3.0.25b-apple]
> >
> > And I take it 192.168.1.2 is the IP address of the same machine? That's
> > strange.
>
> Correct.
>
> > > > Or you might try setting the name to something else, and then doing a:
> > > >
> > > > smbtool lookup Crystalis
> > >
> > > I'm afraid I get onlly the following result:
> > >
> > > -bash: smbtool: command not found
> > >
> > > A utility I've not got installed? Are you sure it's part of 10.5's
> > > standard install?
> > >
> > > TIA JR :-)
> > >
> > > - Jamie.
> >
> > Oops. I meant smbutil, which is at /usr/bin/smbutil in 10.6. And for
> > some reason I haven't gotten it to work correctly here - it always times
> > out.
>
> Crystalis:~ Jamie_Standard$ smbutil lookup Crystalis
> Got response from 192.168.225.1
> IP address of Crystalis: 192.168.225.1

Oh??

192.168.225.1 is significantly different than 192.168.1.2.

So what device is using that IP address on your network? This is your
culprit!

--
Send responses to the relevant news group rather than email to me.
E-mail sent to this address may be devoured by my very hungry SPAM
filter. Due to Google's refusal to prevent spammers from posting
messages through their servers, I often ignore posts from Google
Groups. Use a real news client if you want me to see your posts.

JR
From: Jolly Roger on
In article <1jhnt0h.oibtzhzxpe2oN%jamiekg(a)wizardling.geek.nz>,
jamiekg(a)wizardling.geek.nz (Jamie Kahn Genet) wrote:

> Jolly Roger <jollyroger(a)pobox.com> wrote:
>
> > In article <1jhn2fg.5rzkaw8cwea0N%jamiekg(a)wizardling.geek.nz>,
> > jamiekg(a)wizardling.geek.nz (Jamie Kahn Genet) wrote:
> >
> > > Doug Anderson <ethelthelogremovethis(a)gmail.com> wrote:
> > >
> > > > jamiekg(a)wizardling.geek.nz (Jamie Kahn Genet) writes:
> > > >
> > > > > OSX 10.5.8, been happening for a couple years. No, zero machines with
> > > > > the same name are on my network. Yup - I've double and triple and
> > > > > quadruple checked this. In Network settings->WINS it always says
> > > > > "NAME
> > > > > is currently in use" no matter what I change it to. I change it to...
> > > > > say 'Dragon', apply - it still says it's in use. I change the
> > > > > computer
> > > > > name in Sharing prefs and later it's Dragon_(2) again.
> > > > >
> > > > > However I'd REALLY like it to accept and KEEP 'Crystalis' as my
> > > > > computer's name. Not Crystalis_(2). Not one of the other test names
> > > > > which all eventually become NAME_(2) anyway.
> > > > >
> > > > > I've put up with it for ages as it's a minor problem - I can just use
> > > > > IP
> > > > > addresses to connect, not hostnames that OSX keeps appending numbers
> > > > > to
> > > > > and thus wrecking (so braindead...). But for reasons I won't bore you
> > > > > with it's becoming more of a hassle. Any advice?
> > > >
> > > > Have you tried the usual way of setting your computer name:
> > > >
> > > > System Preferences -> Sharing -> Computer name:
> > >
> > > Yes, to no avail. It is later changed to NAME_(2) again.
> >
> > Are you running more than one network interface on that Mac?
>
> I have, but only one - Ethernet - is active.

You sure about that? What output do you get when you do:

ifconfig -a

--
Send responses to the relevant news group rather than email to me.
E-mail sent to this address may be devoured by my very hungry SPAM
filter. Due to Google's refusal to prevent spammers from posting
messages through their servers, I often ignore posts from Google
Groups. Use a real news client if you want me to see your posts.

JR
From: Jamie Kahn Genet on
Jolly Roger <jollyroger(a)pobox.com> wrote:

> In article <1jhnt0h.oibtzhzxpe2oN%jamiekg(a)wizardling.geek.nz>,
> jamiekg(a)wizardling.geek.nz (Jamie Kahn Genet) wrote:
>
> > Jolly Roger <jollyroger(a)pobox.com> wrote:
> >
> > > In article <1jhn2fg.5rzkaw8cwea0N%jamiekg(a)wizardling.geek.nz>,
> > > jamiekg(a)wizardling.geek.nz (Jamie Kahn Genet) wrote:
> > >
> > > > Doug Anderson <ethelthelogremovethis(a)gmail.com> wrote:
> > > >
> > > > > jamiekg(a)wizardling.geek.nz (Jamie Kahn Genet) writes:
> > > > >
> > > > > > OSX 10.5.8, been happening for a couple years. No, zero machines
> > > > > > with the same name are on my network. Yup - I've double and
> > > > > > triple and quadruple checked this. In Network settings->WINS it
> > > > > > always says "NAME is currently in use" no matter what I change
> > > > > > it to. I change it to... say 'Dragon', apply - it still says
> > > > > > it's in use. I change the computer name in Sharing prefs and
> > > > > > later it's Dragon_(2) again.
> > > > > >
> > > > > > However I'd REALLY like it to accept and KEEP 'Crystalis' as my
> > > > > > computer's name. Not Crystalis_(2). Not one of the other test
> > > > > > names which all eventually become NAME_(2) anyway.
> > > > > >
> > > > > > I've put up with it for ages as it's a minor problem - I can
> > > > > > just use IP addresses to connect, not hostnames that OSX keeps
> > > > > > appending numbers to and thus wrecking (so braindead...). But
> > > > > > for reasons I won't bore you with it's becoming more of a
> > > > > > hassle. Any advice?
> > > > >
> > > > > Have you tried the usual way of setting your computer name:
> > > > >
> > > > > System Preferences -> Sharing -> Computer name:
> > > >
> > > > Yes, to no avail. It is later changed to NAME_(2) again.
> > >
> > > Are you running more than one network interface on that Mac?
> >
> > I have, but only one - Ethernet - is active.
>
> You sure about that? What output do you get when you do:
>
> ifconfig -a

Crystalis:~ Jamie_Standard$ ifconfig -a
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
inet 127.0.0.1 netmask 0xff000000
inet6 fd3e:9187:b2fe:7962:21e:c2ff:fea2:7f37 prefixlen 128
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
stf0: flags=0<> mtu 1280
fw0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 4078
lladdr 00:1f:5b:ff:fe:0a:49:d8
media: autoselect <full-duplex> status: inactive
supported media: autoselect <full-duplex>
en1: flags=8823<UP,BROADCAST,SMART,SIMPLEX,MULTICAST> mtu 1500
ether 00:1e:c2:a2:7f:37
media: autoselect (<unknown type>) status: inactive
supported media: autoselect
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet6 fe80::21e:c2ff:fe15:1af9%en0 prefixlen 64 scopeid 0x6
inet 192.168.1.2 netmask 0xffffff00 broadcast 192.168.1.255
ether 00:1e:c2:15:1a:f9
media: autoselect (100baseTX <full-duplex,flow-control>) status:
active
supported media: autoselect 10baseT/UTP <half-duplex> 10baseT/UTP
<full-duplex> 10baseT/UTP <full-duplex,hw-loopback> 10baseT/UTP
<full-duplex,flow-control> 100baseTX <half-duplex> 100baseTX
<full-duplex> 100baseTX <full-duplex,hw-loopback> 100baseTX
<full-duplex,flow-control> 1000baseT <full-duplex> 1000baseT
<full-duplex,hw-loopback> 1000baseT <full-duplex,flow-control> none
en2: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
ether 00:1f:5b:6e:ae:92
media: autoselect status: inactive
supported media: none autoselect 10baseT/UTP <half-duplex>
vmnet8: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu
1500
inet 192.168.119.1 netmask 0xffffff00 broadcast 192.168.119.255
ether 00:50:56:c0:00:08
vmnet1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu
1500
inet 192.168.225.1 netmask 0xffffff00 broadcast 192.168.225.255
ether 00:50:56:c0:00:01
--
If you're not part of the solution, you're part of the precipitate.