Updating Local IP Address Pools for JUNOSe VRs
When you reconfigure local IP address pools on a JUNOSe VR, you must update in the directory the local IP addresses that the VR provides. To do so, you can use either SDX Admin or a command called poolRepublish. With SDX Admin, you can update one VR at a time. With the command poolRepublish, you can update simultaneously any number of VRs in the same directory.
Prerequisites
To use these features, the following prerequisites apply:
- The JUNOSe router and VR must appear in the directory.
- The VR must have an operating SNMP agent for the SDX software to update the local IP address pools in the directory.
- The host that supports SDX Admin must be able to communicate with the VR via SNMP to allow updates of IP address pools via SDX Admin.
- The host that supports the SAE must be able to communicate with the VR via SNMP to allow updates of IP address pools via the poolRepublish command.
- You must have write permissions for the o=Network subtree.
Using SDX Admin
To update local IP address pools for a VR in the directory with SDX Admin:
- In the navigation pane, expand the object o=Network.
- In the navigation pane, expand the object for the router on which the VR is configured.
- Highlight the object for the VR in the navigation pane, and right-click.
- Select Update IP Pools.
The SDX Admin dialog box appears.
- Enter the IP address for the VR, enter the SNMP community if the default value is incorrect, and click OK.
SDX Admin updates the local IP addresses for the VR in the directory and displays the information in the Local IP Address field of the Main tab in the VirtualRouter pane.
Using the poolRepublish Command
After you have installed the SAE on a host, you can use the poolRepublish command to update local IP address pools. For information about installing the SAE, see SDX Software Basics Guide, Chapter 5, Installing the SDX-300 Software.
When you execute the poolRepublish command, you can specify multiple VRs that use the same SNMP read community. For each VR you must specify the name of the VR, the name of the JUNOSe router on which it is configured, and the VR's corresponding IP address. You must also specify the directory connection. The syntax for the command is:
poolRepublish { { -v <vrName>@<routerName> -i <ipAddress>}*
-h <host> -b <baseDn> -D <bindDN> -w <password>
-c <readCommunity> ] | -H }<vrName>
- Specifies the name of the VR.
- Value - text string (value is case sensitive and must match the name in the JUNOSe configuration)
- Example - vr-boston
<routerName>
- Specifies name of JUNOSe router on which VR is configured.
- Value - text string (value is case sensitive and must match the name in the JUNOSe configuration)
- Example - erx1
<ipAddress>
<host>
- IP address or name of the host that supports the directory.
- Value - IP address or text string
- Example - 192.0.2.2 or ottawa
<baseDn>
<bindDn>
- DN of the username for authentication with the directory server.
- Value - DN
- Example - cn=umcAdmin,o=umc
<password>
<readCommunity>
- Specifies name of the SNMP read community for the VR. If the SNMP read community for a VR is defined in the directory, you do not need to specify this value.
- Value - text string
- Example - public
-H
To update local IP addresses using the poolRepublish command:
- On the SAE host, access the folder /opt/UMC/ssp/etc.
cd /opt/UMC/ssp/etc- Execute the command.
./poolRepublish -v vr1@erx1 -i 192.0.2.1 -v vr2@erx2 -i 192.0.2.3 -h 192.0.2.5 -w admin123 -D cn=umcAdmin,o=umc -b o=Network,o=umc -c publicThe software updates and displays the local IP address pools for each VR you specified.
vr1@erx1 pools: ([10.227.11.242 10.227.11.250][10.227.11.226 10.227.11.239]{10.227.11.208/255.255.255.240}{10.227.11.240/255.255.2 55.240}{10.227.11.224/255.255.255.240})vr2@erx2: ([10.227.12.242 10.227.12.250][10.227.12.226 10.227.12.239]{10.227.12.208/255.255.255.240}{10.227.12.240/255.255.2 55.240}{10.227.12.224/255.255.255.240})For information about the syntax for IP pools, see Local IP Address Pools on JUNOSe VRs.
Troubleshooting
You must specify the correct arguments for the poolRepublish command. In addition, the specified router and directory must be available for the command to execute successfully. If you do not meet these requirements and the prerequisites (see Prerequisites), the poolRepublish command cannot execute and displays an error message.
For example, if no SNMP read community is configured in the directory for the VR and you do not specify this value when you run the poolRepublish command, you will see the following error message:
Could not perform ip pools update due to No 'snmpReadCommunity' attribute is provided for virtual router: vr1@bigfootIf you run the poolRepublish command again and supply this SNMP read community, the command should run correctly.