Difference between revisions of "Zeroconf/Zyxel P-660HN-F1Z"

From braindump
Jump to navigation Jump to search
Line 68: Line 68:
== Confirmation ==
== Confirmation ==
Under Linux use the <tt>avahi-browse</tt> command which should show entries of all the Zeroconf enabled hosts on the local network. In the below exerpt host-a is the host the command was executed on.
Under Linux use the <tt>avahi-browse</tt> command which should show entries of all the Zeroconf enabled hosts on the local network. In the below exerpt host-a is the host the command was executed on.
avahi-browse --all -t
$ avahi-browse --all -t
+ wlan0 IPv6 host-a [00:xx:xx:xx:xx:d3] Workstation local
+ wlan0 IPv6 host-a [00:xx:xx:xx:xx:d3] Workstation local
+ wlan0 IPv4 host-a [00:xx:xx:xx:xx:d3] Workstation local
+ wlan0 IPv4 host-a [00:xx:xx:xx:xx:d3] Workstation local

Revision as of 21:29, 30 May 2012


There is an option to purchase a discounted and officially sanctioned Zyxel P-660HN-F1Z when signing up for an ADSL account with Sunrise. Recently I started to play around with Bonjour on MacOS X and Avahi on Linux to better understand the whole mechanism. However I did not get very far with the whole thing as the machines were not able to see each other's multicast traffic when talking to each other. Sniffing the network showed that the mDNS requests were sent on 224.0.0.251 port 5353 but no response was received. I thought there was a configuration issue with Avahi on my debian host but it turned out to be a much more sinister problem. Once I had to link the MacOS X host with the debian box directly over a cross-cable and to my surprise everything was working like a charm. Digging deeper I found the culprit to be the Zyxel P-660HN-F1Z router. Well hidden in one of the Advanced configuration menus is an option to switch on multicast (IGMP). Below is a visual guide how to make Zeroconf work on this baby.

Configuration

Web Interface

Point your favorite webbrower to the IP address of the Router and supply the administrator's password on the login prompt. When landing on the Status page expand the Network and then click on LAN. 01-Zeroconf-Zyxel-Status.png

Swiftly continue to by pressing the [Advanced Setup] button. 02-Zerconf-Zyxel-LAN.png

Under the Multicast drop-down menu choose an IGMP protocol. Personally I have not tested anything other than the IGMP-v3. Once done press the [Apply] button. 03-Zeroconf-Zyxel-LAN-Advanced.png

Telnet

By default the telnet is enabled on the router meaning the configuration can be done on the command line as well. Here is how.

Telnet to the router:

$ telnet 192.168.x.x
Trying 192.168.x.x...
Connected to 192.168.x.x.
Escape character is '^]'.

Password: ********
Copyright (c) 1994 - 2011 ZyXEL Communications Corp.
ras> 

Firstly display the current configuraton:

ras> lan display 
Active: Yes
Interface: enif0
IP Address: 192.168.x.x.
Subnet Mask: 255.255.255.0
RIP Direction: None
RIP Version: RIP-1
Multicast: None
Protocol Filter Set:
Incoming:   0  0  0  0
Outgoing:   0  0  0  0
Device Filter Set:
Incoming:   0  0  0  0
Outgoing:   0  0  0  0

Then we have to set the interface to be affected by the change:

ras> lan index 1 
enif0 is selected

Set the interface to igmpv3:

ras> lan multicast igmpv3

Confirm settings once more:

ras> lan display 
Active: Yes
Interface: enif0
IP Address: 192.168.x.x.
Subnet Mask: 255.255.255.0
RIP Direction: None
RIP Version: RIP-1
Multicast: IGMP-v3
Protocol Filter Set:
Incoming:   0  0  0  0
Outgoing:   0  0  0  0
Device Filter Set:
Incoming:   0  0  0  0
Outgoing:   0  0  0  0

Confirmation

Under Linux use the avahi-browse command which should show entries of all the Zeroconf enabled hosts on the local network. In the below exerpt host-a is the host the command was executed on.

$ avahi-browse --all -t
+  wlan0 IPv6 host-a [00:xx:xx:xx:xx:d3]                    Workstation            local
+  wlan0 IPv4 host-a [00:xx:xx:xx:xx:d3]                    Workstation            local
+  wlan0 IPv6 host-a                                        Remote Disk Management local
+  wlan0 IPv4 host-a                                        Remote Disk Management local
+  wlan0 IPv4 host-b [00:xx:xx:xx:xx:a4]                    Workstation            local
+  wlan0 IPv4 host-b                                        Remote Disk Management local
+  wlan0 IPv4 saned                                         _sane-port._tcp        local
+  wlan0 IPv4 host-c                                        SSH Remote Terminal    local
+  wlan0 IPv4 host-c                                        SFTP File Transfer     local
+  wlan0 IPv4 host-c                                        VNC Remote Access      local
+  wlan0 IPv4 SSH on host-b                                 SSH Remote Terminal    local
+  wlan0 IPv4 host-b                                        Apple TimeMachine      local
+  wlan0 IPv4 host-b                                        _device-info._tcp      local
+  wlan0 IPv4 AirPrint PDF @ host-b                         Internet Printer       local
+  wlan0 IPv4 AirPrint Samsung_ML-1410 @ host-b             Internet Printer       local
+  wlan0 IPv4 My Music on host-b                            iTunes Audio Access    local
+  wlan0 IPv4 host-b                                        Apple File Sharing     local
+  wlan0 IPv4 My Music on host-b                            _rsp._tcp              local
+  wlan0 IPv4 My Music on host-b                            Web Site               local