Skip to content

installation issue - vlan interface not defined[ #678

Description

@NABDSOLUTIONS

I am encountering an error while trying to configure a VLAN using netplan. The specific issue is in the file /etc/netplan/00-vlan.yaml.

To Reproduce:

Edit the file /etc/netplan/00-vlan.yaml with a text editor.
Attempt to define a VLAN (e.g., VLAN 10) with a specific interface name (e.g., ens2) in the link: option.
Save the changes and run the command sudo netplan apply.
Observe the following error message:
/etc/netplan/00-vlan.yaml:9:13: Error in network definition: vlan10: interface 'ens2' is not defined
Expected Behavior:

The netplan configuration should be applied successfully, and the specified VLAN should be created using the designated interface.

Environment:

OS: [Specify your Operating System - e.g., Ubuntu 22.04]
Kernel Version: [You can find this by running uname -r in your terminal]
Additional Context:

I have verified that the interface name mentioned in the error message (ens2 in this example) might not be the actual interface name. I used the ip addr command to list network interfaces and identify potential candidates (e.g., enpXsY).
I've also checked the file permissions for /etc/netplan/00-vlan.yaml to ensure they are appropriate (ideally owner-writable only).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions