Re: ntpq no longer working -



Tim:
Do not try giving the same alias or hostname to two different IP
addresses, that's bound to cause problems. Also, there's no need to put
the same name as an alias as you've got as a hostname, the aliases are
*optional* *alternatives*.


Bob Goodwin:
I've changed /etc/hosts pretty much as you suggested:

127.0.0.1 localhost.localdomain localhost
10.1.1.2 box2
10.1.1.3 box3
10.1.1.4 box4
10.1.1.1 box1
192.168.1.226 box1

But that leaves me with two lines aliased to box1, I'm not sure if that
can cause problems?

Quite likely... Whether it's the problem you're dealing with now, or
going to be others in the future.

Each network interface *really* *should* have a unique address
(numerical and/or named). It is *possible* to have some that aren't
unique, but you really need to know what you're doing for that to work
(and it's not something I can offer advice on).

Not knowing your network (rearrange to suit), you might want to try
something along these lines with the last two on your list:

10.1.1.1 eth.box1
192.168.1.226 wireless.box1

It distinguishes the interfaces, but still makes it easy for you to work
out which is which box.

NB: I'm not sure that it's essential that you name each interface. I
don't know if you're doing this because you want to, or because you
think you have to. And if any of those interfaces are being configured
by DHCP, it's possible for the DHCP server to provide the name. It's
also possible for you to get assigned different IPs, and then the hosts
file would be out of kilter. I only use a very simple hosts file on my
machines, as I have a DNS server that works with my DHCP server.

Can I put the bridge address on the line above it?

127.0.0.1 localhost.localdomain localhost
10.1.1.2 box2
10.1.1.3 box3
10.1.1.4 box4
10.1.1.1 192.168.1.226 box1

The format of the hosts file is: numerical IP address, white space,
fully-qualified domain name, white space, then optional aliases
separated by white spaces.

e.g. 192.168.1.2 webserver.example.com webserver newsserver fileserver

"Aliases" meaning alternative names for the same interface. They could
be single words (as above), or other fully-qualified domain names, as
below:

e.g. 192.168.1.2 www.example.com ftp.example.com news.example.com

If you start putting numerical IP addresses into other places in the
hosts file, you're going to get some strange behaviours.

--
(Currently running FC4, in case that's important to the thread)

Don't send private replies to my address, the mailbox is ignored.
I read messages from the public lists.

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



Relevant Pages

  • Re: 6.0 RC1 dhclient (was Re: 6.0 RC1 usbd.conf (and installation comments))
    ... aliases don't work with dhclient at the moment for ... >> most interfaces because the interfaces generate bogus link events when ... >> aliases are modified. ... we do plan to fix this despite the fact that such ...
    (freebsd-stable)
  • Re: Source IP / INADDR_ANY
    ... bind() inbetween. ... But what if there are just a few IP aliases that point all to the same ... which handles the connection. ... the three interfaces but I suppose so. ...
    (comp.os.linux.networking)
  • Re: 6.0 RC1 dhclient (was Re: 6.0 RC1 usbd.conf (and installation comments))
    ... > most interfaces because the interfaces generate bogus link events when ... > aliases are modified. ... situation (ie dhcp + jail alias) I don't suppose there's any move to in ... the mean time incorporate a 'DHCLIENT=' make option for ISC/OpenBSD ...
    (freebsd-stable)
  • Re: Two Different Formats for hosts File?
    ... >>I can find two descriptions on the web for the hosts file that appear to be ... >>127.0.0.1 localhost ... So you're saying that if the FQDN appears, then the aliases follow it, and if there ...
    (comp.os.linux.networking)
  • Re: Bug in Graphical Network Configuration???
    ... All the hosts file is doing is associating a name with an numerical IP ... aliases, if you want). ... I understand that the hostname is set in the /etc/sysconfig/network ... Is this the bug of grahical tool? ...
    (Fedora)