Configure a VLAN Interface

You can use the zs-vlan command to configure a VLAN interface.

The parameters of zs-vlan are as follows:
  • -c Create a VLAN interface.

    Syntax:

    zs-vlan -c NICNAME VLANID static|dhcp|none
    Sample:
    zs-vlan -c zsnic0 10 dhcp
  • -d Delete a VLAN interface.

    Syntax:

    zs-vlan -d NICNAME VLANID
    Sample:
    zs-vlan -d zsnic0 10
Note:
  • When you use zs-vlan command to create a VLAN interface, you can configure the BOOTPROTO parameter. Valid values: static, dhcp, and none. The value static indicates specifying a static IP address for the interface. The value dhcp indicates using the DHCP service to assign a dynamic IP address for the interface. The value none indicates specifying no IP address for the interface.
  • After you create a VLAN interface, the corresponding network configuration file will be created in the /etc/sysconfig/network-scripts/ directory. The VLAN interface takes effect after the host restarts. Deleting a VLAN interface also deletes the corresponding network configuration.

If you want to use the created VLAN interface to communicate with other devices, you can refer to the VLAN configuration manual of the network device vendor to allow the VLAN interface traffic transmission.

The following lists references for VLAN configuration of common network devices:

Archives

Download Document Archives

Back to Top

Download

Already filled the basic info?Click here.

Enter at least 2 characters.
Invalid mobile number.
Enter at least 4 characters.
Invalid email address.
Wrong code. Try again. Send Code Resend Code (60s)

An email with a verification code will be sent to you. Make sure the address you provided is valid and correct.

同意 不同意

I have read and concur with the Site TermsPrivacy PolicyRules and Conventions on User Management of ZStack Cloud

Download

Not filled the basic info yet? Click here.

Invalid email address or mobile number.
同意 不同意

I have read and concur with the Site TermsPrivacy PolicyRules and Conventions on User Management of ZStack Cloud

Email Us

contact@zstack.io
ZStack Training and Certification
Enter at least 2 characters.
Invalid mobile number.
Enter at least 4 characters.
Invalid email address.
Wrong code. Try again. Send Code Resend Code (60s)

同意 不同意

I have read and concur with the Site TermsPrivacy PolicyRules and Conventions on User Management of ZStack Cloud

Email Us

contact@zstack.io
Request Trial
Enter at least 2 characters.
Invalid mobile number.
Enter at least 4 characters.
Invalid email address.
Wrong code. Try again. Send Code Resend Code (60s)

同意 不同意

I have read and concur with the Site TermsPrivacy PolicyRules and Conventions on User Management of ZStack Cloud

Email Us

contact@zstack.io

The download link is sent to your email address.

If you don't see it, check your spam folder, subscription folder, or AD folder. After receiving the email, click the URL to download the documentation.

The download link is sent to your email address.

If you don't see it, check your spam folder, subscription folder, or AD folder.
Or click on the URL below. (For Internet Explorer, right-click the URL and save it.)

Thank you for using ZStack products and services.

Submit successfully.

We'll connect soon.

Thank you for using ZStack products and services.