11 Replies Latest reply: Oct 6, 2013 7:34 AM by CHRIS_K_AU RSS

vlan for vif

RATNATHURAI
Currently Being Moderated

I want to know how to create another vlan for an existing vif , Anyone has a KB article?

The filer has an vif with ip 10.*.*.50,51 and 52. and want to change the network id.

I do not want to destroy the existing vif and recreate since the datastores are mounted for Esxi hots, instead I want to create another vlan for NFS  ,I  do not know it is possible?

  • Re: vlan for vif
    radek.kubka
    Currently Being Moderated

    What's the ontap version?

     

    You normally create vlans on top of vif using command vlan create / vlan add.

    • Re: vlan for vif
      RATNATHURAI
      Currently Being Moderated

      Thank you for your reply.

      It is ver 8.1.3 7-mode. it has already a vlan with alias ips 10.10.40.59 ,10.10.40.60

      I wonder how do i create another vlan with ips 10.10.50.55, 10.10.50.61, you do mind to put some steps ?

      Do I have to down the interfaces?

      • Re: vlan for vif
        ASHWINPAWARTESL
        Currently Being Moderated

        If a physical interface/VIF does not belong to any VLAN, you can use the vlan create. If VIF is already a member of a VLAN, you should use the "vlan add" command to add the interface to subsequent VLANs.

         

        In your case, VIF is already created and VLAN exits on top of it.

         

        In order to add another VLAN with network Identifier '50'.

         

        filer>vlan add interface_name vlanid

        filer>vlan add vif 50

         

        Note: Substitute vif with your vif name.

         

        Next, configure the newly created VLAN:

         

        filer>ifconfig vif-50 10.10.50.55 netmask 255.255.255.0

         

        Next, add the alias:

         

        filer>ifconfig vif-50 alias 10.10.50.60 netmask 255.255.255.0

         

        Ensure that these commands are added to the /etc/rc file as they are not persistent across reboots.

         

        Thanks,

        -Ashwin

        • Re: vlan for vif
          RATNATHURAI
          Currently Being Moderated

          Thanks Aswhin

          How do we add this in rc file, use wordpad?

          • Re: vlan for vif
            ASHWINPAWARTESL
            Currently Being Moderated

            You can use CLI or notepad/wordpad. I usually do it using CLI, b'cos, sometimes rc file dosent like notepad/wordpad edits.

             

            In CLI, you'll need to use the "rdfile" and "wrfile" commands.

             

            Login via putty:

            1) rdfile /vol/vol0/etc/rc   ---- This will display the current "rc" file, cut and paste this into a Notepad.

            2) modify the "rc" in Notepad to include the vlan changes you made.

            3) wrfile /vol/vol0/etc/rc  ----- Copy the updated Notepad version of the "rc" file and right click and paste into the Putty session window

            4) CTRL-C

            5) rdfile /vol/vol0/etc/rc   ---- And review the changes

             

            Thanks,

            -Ashwin

More Like This

  • Retrieving data ...