![]() |
|||
![]() |
![]() ![]() |
![]() |
![]() ![]() |
![]() |
![]() ![]() |
![]() |
| |||||||||||||||||||||
|
xx.yy.0.0 255.255.255.0 |
This step assumes that all the CGTP subnet masks share a common Class C network prefix.
Save the /etc/inet/netmasks file and exit the text editor.
Log in to the node that you want to configure for CGTP.
For entries that concern hosts, replace this line:
hosts ... |
with the line
hosts ...files nis |
This forces the system to use the modified network configuration by placing a local search as first choice.
For entries that concern netmasks, replace this line:
netmasks ... |
with the line
netmasks ...files nis |
Save the file and exit the text editor.
This section describes how to create a cgtp0 interface on two nodes. cgtp0 is a virtual physical interface. You must create a cgtp0 interface on each node on which you want to use standalone CGTP.
Note - Before performing this procedure, you must configure your interfaces, nodes, and netmasks as explained in To Configure Interface Names, To Configure Node Addresses, and To Configure Netmasks.
As superuser, log in to a node on which you want to configure CGTP.
In Figure 3-1, the node could be machine A.
Create the virtual physical interface for CGTP by using the plumb option of ifconfig:
# ifconfig cgtp0 plumb |
The plumb option opens the device that is associated with the physical interface name. This option then sets up the streams needed for IP to use the device. For further information, see the ifconfig(1M) man page.
View the new interface on machine A:
# ifconfig -a |
A result similar to the following is displayed:
lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1 inet 127.0.0.1 netmask ff000000 hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3 inet 10.4.1.10 netmask ffffff00 broadcast 10.4.1.255 ether 8:0:20:da:6:58 hme1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4>mtu 1500 index 4 inet 10.4.2.10 netmask ffffff00 broadcast 10.4.2.255 ether 8:0:20:da:6:59 cgtp0: flags=1000842<BROADCAST,RUNNING,MULTICAST,IPv4>mtu 1500 index 5 inet 0.0.0.0 netmask 0 ether 0:0:0:0:0:0 |
You can observe that no IP address has been assigned to the cgtp0 interface, inet 0.0.0.0. Also, no MAC address is assigned to the interface, ether 0:0:0:0:0:0, because this interface is a virtual physical interface. For further information, see the cgtp(7D) man page.
To display a shortened form of this result, displaying only the (as yet unassigned) cgtp0 interface values, use this command:
# ifconfig -a cgtp0 |
A shorter result similar to the following is displayed on the console window:
cgtp0: flags=1000842<BROADCAST,RUNNING,MULTICAST,IPv4>mtu 1500 index 5 inet 0.0.0.0 netmask 0 ether 0:0:0:0:0:0 |
Note - Before an interface is plumbed, the interface is not listed in the output of ifconfig -a.
Assign an IP address, a netmask, and a broadcast address on machine A.
The up option enables the cgtp0 interface.
# ifconfig cgtp0 10.4.3.10 netmask 0xffffff00 broadcast 10.4.3.255 up |
In this example, the IP address is 10.4.3.10, the netmask is 0xffffff00, and the broadcast address is 10.4.3.255.
View the details of the cgtp0 interface on machine A:
# ifconfig -a cgtp0 |
cgtp0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2 inet 10.4.3.10 netmask ffffff00 broadcast 10.4.3.255 ether 0:0:0:0:0:0 |
Note - You can modify the broadcast address and the netmask, if necessary, by using the ifconfig command.
As superuser, log in to the second machine, machine B.
Create the standard interface for CGTP by using the plumb option of ifconfig:
# ifconfig cgtp0 plumb |
Assign an IP address, a netmask, and a broadcast address to machine B.
The up option enables the cgtp0 interface.
# ifconfig cgtp0 10.4.3.11 netmask 0xffffff00 broadcast 10.4.3.255 up |
In this example, the IP address is 10.4.3.11, the netmask is 0xffffff00, and the broadcast address is 10.4.3.255.
View the newly created cgtp0 interface on machine B:
# ifconfig -a |
cgtp0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2 inet 10.4.3.11 netmask ffffff00 broadcast 10.4.3.255 ether 0:0:0:0:0:0 hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3 inet 10.4.1.11 netmask ffffff00 broadcast 10.4.1.255 ether 8:0:20:da:6:62 hme1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 4 inet 10.4.2.11 netmask ffffff00 broadcast 10.4.2.255 ether 8:0:20:da:6:63 |
In addition to the cgtp0 interface, you can configure additional CGTP interfaces. These additional interfaces are virtual logical interfaces that are associated with cgtp0, such as cgtp0:1 and cgtp0:2. You might want to create such an additional interface if you want to have services using different interfaces, but want to maintain the redundancy.
The cgtp0 and cgtp0:x interfaces on a node must have the same subnet prefix. This means that the primary CGTP address and the logical, or aliased, addresses must only differ by their hostid. Routes to the aliased interfaces can accordingly be set up on the other cluster nodes.
As superuser, log in to machine A.
Create the logical interface for CGTP:
# ifconfig cgtp0 addif \ destination-address netmask netmask broadcast broadcast-address |
The addif option creates the next unused logical interface associated with the interface you specify. For example, if you specify cgtp0, the next unused logical interface is cgtp0:1. This option replaces the plumb option. In addition, the addif option avoids conflicts because it assigns the next available interface name. For further information, see the ifconfig(1M) man page.
Alternatively, you can still specify the logical interface name by using the plumb and up options:
# ifconfig cgtp0:1 plumb |
# ifconfig cgtp0:1 destination-address \ netmask netmask broadcast broadcast-address up |
Create logical interfaces for the gateways (destinations) on machine A:
# ifconfig hmex addif \ destination-address netmask netmask broadcast broadcast-address up |
As superuser, log in to machine B.
![]() ![]() |