Library Table of Contents Index Previous Next Comments

Creating a vfiler in a nondefault IPspace

Guidelines for creating a vfiler in a nondefault IPspace  Top

When creating a vfiler in a nondefault IPspace, you need to meet the same prerequisites and follow the same guidelines as you would when creating a vfiler in the default IPspace. For more information about the prerequisites and guidelines, see Planning for vfiler creation.

Creating a vfiler in a nondefault IPspace  Top

To create a vfiler in a nondefault IPspace, complete the following steps.

Note
You must follow these steps to configure IP addresses to be used by vfilers in nondefault IPspaces. Make sure you use the -n option to the vfiler create command, and do not use the setup command to specify IP addresses for interfaces assigned to different IPspaces. The setup command (which runs automatically after vfiler create unless you use the -n option) does not allow duplicate IP addresses even if they are for interfaces in different IPspaces.

Step

Action

1

To create an IPspace, complete the steps in Creating an IPspace.

2

To assign an interface to be used by the vfiler in the newly created IPspace, complete the steps in Assigning an interface to an IPspace.

3

To verify that each interface to be used by the vfiler is ready to be configured, complete the steps in Ensuring that the network interface is ready.

4

To create the vfiler, enter the following command:

vfiler create vfiler_name -n -s ipspace -i ip_address [ -i 
ip_address ] ... path [ path ] ...

ipspace is the IPspace in which the vfiler IP addresses reside.

ip_address is an IP address.

path is the complete path name to an existing volume or qtree. The first path name is the storage unit that contains the /etc directory, which contains the configuration information about the vfiler.

Example

The following command creates a vfiler named vfiler1 in the IPspace named ipspace1, using the IP address 123.123.123.123 and the /vol/vol1 volume as resources:

vfiler create vfiler1 -n -s ipspace1 -i 123.123.123.123 
/vol/vol1
5

For each IP address used by the vfiler that is...

Go to...

An IP alias

Step 6.

A base IP address

Step 7.

6

Enter the following command to create the IP alias:

ifconfig interface alias address

If the interface to which you are assigning the alias is currently down, go to Step 7. Otherwise go to Step 8.

7

Use the ifconfig command to configure the interface as Up with the IP address you specified in Step 4.

Continue with Step 8.

8

To modify the routing table for the vfiler, enter the following command:

vfiler run vfiler_name route add destination
Example

The following example adds a route to the routing table used by the vfiler named vfiler1:

vfiler run vfiler1 route add 123.123.123.124 
9

For each interface used by the vfiler, add the following to the /etc/rc file on the hosting filer:

  • An ifconfig command to configure the interface as Up, with the address specified in Step 4
  • The route command you entered in Step 8

This configures the interfaces as Up, and enforces the route commands, across reboots.

10

If the hosting filer is part of a cluster, edit the /etc/rc file on each cluster partner to ensure that each interface the vfiler uses has a partner interface defined for it.

Library Table of Contents Index Previous Next Comments