Following is a checklist for configuring LLT over UDP. Examples are provided in the sections that follow.
If the LLT private links are not on different physical networks, then make sure that the links are on separate subnets. Set the broadcast address in /etc/llttab explicitly depending on the subnet for each link.
See Selecting UDP ports.
The broadcast address is set explicitly for each link in the following example.
link link1 /dev/udp - udp 50000 - 10.20.30.1 10.20.30.255
link link2 /dev/udp - udp 50001 - 10.20.31.1 10.20.31.255
Verify the subnet mask using the ifconfig
command to ensure that the two links are on separate subnets.
lan1: flags=1843<UP,BROADCAST,RUNNING,MULTICAST,CKO>
inet 10.20.30.1 netmask ffffff00 broadcast 10.20.30.255
lan2: flags=1843<UP,BROADCAST,RUNNING,MULTICAST,CKO>
inet 10.20.31.1 netmask ffffff00 broadcast 10.20.31.255
Field description for link command in /etc/llttab describes the fields of the link
command shown in the /etc/llttab file examples.
See Sample configuration: Direct-attached links.
See Sample configuration: Links crossing IP routers.
Note that some of these fields differ from the command for standard LLT links.
A unique string that is used as a tag by LLT; for example link1, link2,.... |
|
Nodes using the link. " |
|
Unique UDP port in the range of 49152-65535 for the link. See Selecting UDP ports. |
|
" |
|
The set-addr
command in the /etc/llttab file is required when the broadcast feature of LLT is disabled, such as when LLT must cross IP routers. Field description for set-addr command in /etc/llttab describes the fields of the set-addr
command.
See Sample configuration: Links crossing IP routers.
The string used by LLT to identify the link; for example link1, link2,.... |
|
When selecting a UDP port, select an available 16-bit integer from the range described below.
To check which ports are defined as defaults for a node, examine the file /etc/services. You should also use the netstat
command to list the UDP ports currently in use. For example:
# netstat -a | head -2 ; netstat -a | grep udp
Active Internet connections (including servers)
Proto Recv-Q Send-Q Local Address Foreign Address (state)
Look in the UDP section of the output; UDP ports listed under Local Address are already in use. If a port is listed in the /etc/services file, its associated name is displayed rather than the port number in the output.
You need to make sure to properly configure the netmask and broadcast address when nodes reside on different subnets.
If you have nodes on different subnets, set the netmask so that the nodes can access the subnets in use.
IP address=192.168.30.1, Broadcast address=192.168.30.255, Netmask=255.255.255.0
IP address=192.168.31.1, Broadcast address=192.168.31.255, Netmask=Mask:255.255.255.0
Configuring the broadcast address
If you have nodes on different subnets, set the broadcast address in /etc/llttab depending on the subnet that the links are on.
An example of a typical /etc/llttab file when nodes are on different subnets. Note the explicitly set broadcast address for each link.
link link1 /dev/udp - udp 50000 - 192.168.30.1 192.168.30.255
link link2 /dev/udp - udp 50001 - 192.168.31.1 192.168.31.255
The following illustration depicts a typical configuration of direct-attached links employing LLT over UDP.
Click the thumbnail above to view full-sized image.
The configuration represented by the following /etc/llttab file for Node 0 has directly attached crossover links or links connected through a hub or switch. These links do not cross routers.
Because LLT broadcasts requests peer nodes to discover their addresses, the addresses of peer nodes do not need to be specified in the /etc/llttab file using the set-addr
command. For direct attached links, you do need to set the broadcast address of the links in the /etc/llttab file. Verify that the IP addresses and broadcast addresses are set correctly by using the ifconfig -a
command.
#link <tag-name> <device> <node-range> <link-type> <udp port> <MTU> <IP-address> <bcast-address>
The file for Node 1 would resemble:
#link <tag-name> <device> <node-range> <link-type> <udp port> <MTU> <IP-address> <bcast-address>
The following illustration depicts a typical configuration of links crossing an IP router employing LLT over UDP. The illustration shows just two nodes of a four-node cluster.
Click the thumbnail above to view full-sized image.
The configuration represented by the following /etc/llttab
file for Node 1 has links crossing IP routers. Notice that IP addresses are shown for each link on each peer node. In this configuration broadcasts are disabled. Hence, the broadcast address does not need to be set in the in the link
command of the /etc/llttab
file.
link link1 /dev/udp - udp 50000 - 192.1.3.1 -
link link2 /dev/udp - udp 50001 - 192.1.4.1 -
#set address of each link for all peer nodes in the cluster
#format: set-addr <node-id> <link tag-name> <address>
The /etc/llttab
file on Node 0 would resemble:
link link1 /dev/udp - udp 50000 - 192.1.1.1 -
link link2 /dev/udp - udp 50001 - 192.1.2.1 -
#set address of each link for all peer nodes in the cluster
#format: set-addr <node-id> <link tag-name> <address>