Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides

FAQ
It is currently Thu Dec 07, 2023 8:20 am


Internet Protocol, Transport Control Protocol, Network protocols, Routing, Routers, IP aliases, Routes, Ethernet

Author Message
admin
Post  Post subject: ERROR: trying to remove VLAN -:791:- error: Invalid argument  |  Posted: Tue May 12, 2015 6:07 am
Site Admin

Joined: Mon Aug 03, 2009 8:43 am
Posts: 104

Offline
 

ERROR: trying to remove VLAN -:791:- error: Invalid argument

Linux uses "vconfig" utility (vlan package) to add and remove vlans on interfaces in router-on-a-stick manner. Here is the vconfig help:
Code:
# vconfig
Expecting argc to be 3-5, inclusive.  Was: 1

Usage: add             [interface-name] [vlan_id]
       rem             [vlan-name]
       set_flag        [interface-name] [flag-num]       [0 | 1]
       set_egress_map  [vlan-name]      [skb_priority]   [vlan_qos]
       set_ingress_map [vlan-name]      [skb_priority]   [vlan_qos]
       set_name_type   [name-type]

* The [interface-name] is the name of the ethernet card that hosts
  the VLAN you are talking about.
* The vlan_id is the identifier (0-4095) of the VLAN you are operating on.
* skb_priority is the priority in the socket buffer (sk_buff).
* vlan_qos is the 3 bit priority in the VLAN header
* name-type:  VLAN_PLUS_VID (vlan0005), VLAN_PLUS_VID_NO_PAD (vlan5),
              DEV_PLUS_VID (eth0.0005), DEV_PLUS_VID_NO_PAD (eth0.5)
* bind-type:  PER_DEVICE  # Allows vlan 5 on eth0 and eth1 to be unique.
              PER_KERNEL  # Forces vlan 5 to be unique across all devices.
* FLAGS:  1 REORDER_HDR  When this is set, the VLAN device will move the
            ethernet header around to make it look exactly like a real
            ethernet device.  This may help programs such as DHCPd which
            read the raw ethernet packet and make assumptions about the
            location of bytes.  If you don't need it, don't turn it on, because
            there will be at least a small performance degradation.  Default
            is OFF.


But if you try to delete the vlan ID:
Code:
# vconfig rem 791
ERROR: trying to remove VLAN -:791:- error: Invalid argument


To delete a vlan from a Linux interface, use the interface name:
Code:
# vconfig rem eth1.791
Removed VLAN -:eth1.791:-

_________________
VPSie - SSD VPS servers in AMS-IX, LINX, DE-CIX
https://vpsie.com





Top
Display posts from previous:  Sort by  
E-mail friendPrint view

Topics related to - "ERROR: trying to remove VLAN -:791:- error: Invalid argument"
 Topics   Author   Replies   Views   Last post 
There are no new unread posts for this topic. Linux adding and removing vlan tagged interfaces

mandrei99

0

35574

Wed Aug 28, 2013 8:19 am

mandrei99 View the latest post

There are no new unread posts for this topic. FreeBSD - Adding VLAN Tagged subinterface using ifconfig

admin

0

11141

Mon Aug 19, 2013 10:44 am

admin View the latest post

There are no new unread posts for this topic. FreeBSD em driver overwrites incoming vlan tagged frames 802.1p priority field

debuser

0

4535

Wed Nov 21, 2012 10:59 am

debuser View the latest post

There are no new unread posts for this topic. Fatal error: Trying to set unexisting parameter 'gmysql-host' - PowerDNS error on Debian

mandrei99

0

7132

Tue Jan 13, 2015 12:03 pm

mandrei99 View the latest post

There are no new unread posts for this topic. icmp port unreachable error message

gajjj

0

2159

Mon Jul 08, 2013 5:43 am

gajjj View the latest post

There are no new unread posts for this topic. icmp port unreachable error message

gajjj

4

4186

Mon Jul 15, 2013 11:10 am

gajjj View the latest post

 

Who is online
Users browsing this forum: No registered users and 0 guests
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
Jump to:  
cronNews News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list


Delete all board cookies | The team | All times are UTC - 5 hours [ DST ]



phpBB SEO