Figuring out a headless server's zeroconf addr

Robert Moskowitz rgm at htt-consult.com
Tue Jul 22 15:27:10 UTC 2014


On 07/22/2014 10:54 AM, poma wrote:
> On 22.07.2014 16:43, poma wrote:
>> On 22.07.2014 16:24, Robert Moskowitz wrote:
>>>
>>> On 07/22/2014 09:57 AM, Ed Greshko wrote:
>>>> On 07/22/14 21:49, Robert Moskowitz wrote:
>>>>> On 07/22/2014 09:33 AM, Ed Greshko wrote:
>>>>>> On 07/22/14 21:22, Robert Moskowitz wrote:
>>>>>>> But what file is this in now? /etc/sysconfig/network-scripts is 
>>>>>>> a mess now with scripts for each wifi connection and I can't 
>>>>>>> find any for my ethernet adapter.
>>>>>> Well, "ip link" will/should give a list of links.
>>>>> ip link
>>>>> 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state 
>>>>> UNKNOWN mode DEFAULT group default
>>>>>        link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
>>>>> 2: p6p1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc 
>>>>> pfifo_fast state DOWN mode DEFAULT group default qlen 1000
>>>>>        link/ether e8:9a:8f:8d:7b:56 brd ff:ff:ff:ff:ff:ff
>>>>> 3: wlp4s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq 
>>>>> state UP mode DORMANT group default qlen 1000
>>>>>        link/ether ac:81:12:9c:e0:95 brd ff:ff:ff:ff:ff:ff
>>>>>
>>>>> But I cannot find a script file for p6p1.  Perhaps it only exists 
>>>>> when the link is up, so where do I put this option?
>>>>>
>>>>>
>>>> Odd.  First off, NO-CARRIER would suggest the link is not 
>>>> connected.  I just pulled the plug on one of my systems and I see....
>>>
>>> Well this is on my notebook and the ethernet was not connected at the
>>> time.  So now it is plugged in via crossover to the server and link 
>>> is up.
>>>
>>>> [egreshko at f20f ~]$ ip link
>>>> 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN 
>>>> mode DEFAULT group default
>>>>        link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
>>>> 2: p2p1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc 
>>>> pfifo_fast state DOWN mode DEFAULT group default qlen 1000
>>>>        link/ether 08:00:27:b7:04:4a brd ff:ff:ff:ff:ff:ff
>>>>
>>>> But the config file still exists.
>>>>
>>>> [egreshko at f20f ~]$ ls /etc/sysconfig/network-scripts/ifcfg-p2p1
>>>> /etc/sysconfig/network-scripts/ifcfg-p2p1
>>>
>>> But still:
>>>
>>> ls /etc/sysconfig/network-scripts/ifcfg-p*
>>> ls: cannot access /etc/sysconfig/network-scripts/ifcfg-p*: No such file
>>> or directory
>>>
>>>
>>>> Do you have access to the system to use the GUI tools of network 
>>>> manager?   (I'm assuming you are using nm).
>>>>
>>>>
>>> I cannot see anyplace to specify use zeroconf if no dhcp.
>>>
>>> This is gnome3 on F20...
>>>
>>
>> :)
>>
>> # file /etc/NetworkManager/NetworkManager.conf
>> /etc/NetworkManager/NetworkManager.conf: symbolic link to 
>> `/etc/NetworkManager/conf.d/keyfile-plugin.conf'
>>
>> # cat /etc/NetworkManager/conf.d/keyfile-plugin.conf
>> [main]
>> plugins=keyfile
>>
>> [keyfile]
>> ...
>>
>> # ll /etc/NetworkManager/system-connections/
>> # rpm -ql NetworkManager | grep man
>> # rpm -qi $(rpm -qf /usr/lib/systemd/system/avahi-daemon.service)
>>
>
> in addition
> # grep ^hosts /etc/nsswitch.conf
> # man 5 nsswitch.conf
> http://0pointer.de/lennart/projects/nss-mdns/
> # man 5 avahi.hosts
> # man 5 avahi-daemon.conf
>
> In the end it turns out that 'ZeroConf' ain't really configless. :)

Today

avahi-autoipd -D p6p1

is working.  Well yesterday, I had to use my internal ethernet on my 
notebook for internet connection, as WiFi was down, so I was using a 
D-link USB ethernet.  Today, WiFi is up so using the internal ethernet.  
Must be something about the drivers or such.  Anyway if you want 
zeroconf for a 'one time' thing, this is the command.  What I really 
want is if no DHCP, use zeroconf.  I think it use to work this way.

Though I can see why not to move fully into the IPv6 world.  "There is 
no DHCPv4 stupid because there is no IPv4 here!"  :)

 From the 'driver' behind rfc1918 and a big backer of IPv6 (use Teredo 
if you must!).  :)'




More information about the users mailing list