Questions tagged [vlan]

In computer networking, a single layer-2 network may be partitioned to create multiple distinct broadcast domains, which are mutually isolated so that packets can only pass between them via one or more routers; such a domain is referred to as a virtual local area network, virtual LAN or VLAN.

In computer networking, a single layer-2 network may be partitioned to create multiple distinct broadcast domains, which are mutually isolated so that packets can only pass between them via one or more routers; such a domain is referred to as a virtual local area network, virtual LAN or VLAN.

This is usually achieved on switch or router devices. Simpler devices only support partitioning on a port level (if at all), so sharing VLANs across devices requires running dedicated cabling for each VLAN. More sophisticated devices can mark packets through tagging, so that a single interconnect (trunk) may be used to transport data for various VLANs.

Grouping hosts with a common set of requirements regardless of their physical location by VLAN can greatly simplify network design. A VLAN has the same attributes as a physical local area network (LAN), but it allows for end stations to be grouped together more easily even if they are not on the same network switch. VLAN membership can be configured through software instead of physically relocating devices or connections. Most enterprise-level networks today use the concept of virtual LANs. Without VLANs, a switch considers all interfaces on the switch to be in the same broadcast domain.

To physically replicate the functions of a VLAN would require a separate, parallel collection of network cables and equipment separate from the primary network. However, unlike physically separate networks, VLANs share bandwidth, so VLAN trunks may require aggregated links and/or quality of service prioritization.

Source: http://en.wikipedia.org/wiki/Virtual_LAN

182 questions
1
vote
1 answer

How to attach VLAN to a kubernetes pod?

I have an environment where we have a bare metal Server(Server 1) whose NIC is configured to pass VLAN 5 traffic. CentOS is deployed on this server. Now I have a kubernetes pod on top of this, running DHCP service. Now I have another server (Server…
1
vote
1 answer

How to use dpkt with 802.1Q and SLL?

I am working on a PCAP in python and using dpkt to read it. Data in PCAP file is Linux Cooked Capture, SLL for friends. This is an example packet as seen in Wireshark: Frame 3: 578 bytes on wire (4624 bits), 578 bytes captured (4624 bits) Linux…
Lyonid
  • 49
  • 7
1
vote
1 answer

How to pull MAC addresses per vlan using SNMPv3 from cisco switch?

I want to pull all the MAC addresses that the switch knows about. I found in SNMPv2 This command is successful from a linux terminal snmpwalk -v2c -c SNMPCommunity@10 10.10.10.10 .1.3.6.1.2.1.17.4.3.1.1 This command needs to have the "@10"…
Dwight
  • 15
  • 6
1
vote
0 answers

Multiple VMs from different Tenants

I have a system running two tenants where each tenant contains multiple VMs, I am running snort agent to detect any intrusion from both tenants, so how to know which VM belong to which tenant that generates the intrusion and append this info to…
Adel
  • 11
  • 3
1
vote
3 answers

Operation requires privilege escalation

I have a trouble with ansible. I tried to create some VLAN but I got back this error: "operation requires privilege escalation" ansible.cfg: [defaults] inventory = hosts host_key_checking = false gather_facts = false timeout =…
Miguel Cretu
  • 19
  • 1
  • 6
1
vote
2 answers

How to insert VLAN tag on outgoing packet

I am working on insert vlan tags for some client macs on outgoing packets via native vlan. I have tried nh_hooks IN, OUT and Forward but didnt get any success. What i want is either i can add tag to packet from client to native vlan and then send…
Raheel
  • 21
  • 2
  • 4
1
vote
1 answer

IPv6 link-local address for multiple VLAN networks over the same physical interface

So I have a situation in which one physical interface (as a result, one MAC) hosts several VLANs in a bond. Seeing as the link-local address in IPv6 is generated from the MAC address all my VLANs end up with the same link-local address. This causes…
TheFooBarWay
  • 594
  • 1
  • 7
  • 17
1
vote
0 answers

Docker swarm -- container binding to ethx IP

I'm really a docker newbie, please forgive my lack of skills on specifying questions. Now I've met a scene in production where I'd like to use docker swarm to connect different machines together in a docker network. But each host machine may have…
Kai Wu
  • 11
  • 3
1
vote
1 answer

How to prevent VLAN tag from being stripped from packets received by socket?

I'm writing a simple python script to parse the headers of raw data packets received via socket. The script runs on a VM and another VM is generating packets and sending them in. (Both VMs are running linux). This is part of a setup in which custom…
Gavi Teitz
  • 36
  • 6
1
vote
1 answer

How to programatically create a VLAN in windows?

I need to create a virtual network adapter like "loopback adapter" or "virtualbox host-only network". But I dont know what windows functions should I call to programatically create my own virtual adapter due to create a virtual NAT for my program. I…
1
vote
1 answer

Having trouble with port application blocking

any ideas on how to block a network port from being used, or one that is currently in use? For example, say I want to block port 23 from being used. by used, I mean allowing connections to or from it. thanks in advance.
1
vote
1 answer

How to assign subnet to a vlan on softlayer?

For softlayer api SoftLayer_Network_Subnet, the description says: Every SoftLayer ip address is associated with a subnet which is defined in the SoftLayer_Network_Subnet service. SoftLayer subnets define a group of ip addresses and are assigned to…
Hengguo
  • 73
  • 5
1
vote
0 answers

Dynamic VLANs Assignment using MAB, LDAP and ACS Server

I'm new to this forum. This is my first post. Now I'm working on how to dynamically assign switch ports to their respective VLAN by using MAB with ACS server. I've LDAP database that contains greater numbers of end device 's MAC addresses. I want to…
Ashwin
  • 11
  • 1
1
vote
1 answer

How do I fetch the VLAN tags using libpcap and C?

I am trying to parse a pcap file including different type of Network Packets (some are tagged as VLAN and some aren't) using #include . here is my code so far: pcap_t *pcap; const unsigned char *packet; char errbuf[PCAP_ERRBUF_SIZE]; struct…
mazkopolo
  • 391
  • 1
  • 6
  • 21
1
vote
0 answers

why can't my vlan interface in linux network namespace ping the parent interface?

So I'm writing a program that isolates itself with namespaces, but I'm stuck on getting networking to work as I want it to. I plan to route my application over Tor, which is a Socks5 proxy that exposes a SocksPort on a network interface. My…
1 2
3
12 13