Показаны сообщения с ярлыком VLAN. Показать все сообщения
Показаны сообщения с ярлыком VLAN. Показать все сообщения

пятница, 29 декабря 2017 г.

Windows 2012/2016 Networking - VLAN + Team+ Hyper-V vSwitch

1. Как создавать Team VLAN интерфейсы в Windows 2012/2016 (т.н VLAN Mode):
802.1q парсится на уровне Team-интерфейса (метод не поддерживается для Hyper-V vSwitch):

https://community.mellanox.com/docs/DOC-1845


2. Team Interfaces
There are different ways of interfacing with the team:
  • Default mode: all traffic from all VLANs is passed through the team
  • VLAN mode: Any traffic that matches a VLAN ID/tag is passed through.  Everything else is dropped.
Inbound traffic passes through to one team interface at once.

The only supported configuration for Hyper-V is shown above: Default mode passing through all traffic t the Hyper-V Switch.  Do all the VLAN tagging and filtering on the Hyper-V Switch.  You cannot mix other interfaces with this team – the team must be dedicated to the Hyper-V Switch.  REPEAT: This is the only supported configuration for Hyper-V.
A new team has one team interface by default. 
Any team interfaces created after the initial team creation must be VLAN mode team interfaces (bound to a VLAN ID).  You can delete these team interfaces.
Get-NetAdapter: Get the properties of a team interface
Rename-NetAdapter: rename a team interface
Team Members
  • Any physical ETHERNET adapter with a Windows Logo (for stability reasons and promiscuous mode for VLAN trunking) can be a team member.
  • Teaming of InfiniBand, Wifi, WWAN not supported.
  • Teams made up of teams not supported.
You can have team members in active or standby mode.
содрано отсюда: http://www.aidanfinn.com/?p=12924
3. Официальное чтиво:
https://gallery.technet.microsoft.com/Windows-Server-2016-839cb607/view/Discussions#content

1.1.1      Using VLANs

VLANs are a powerful tool that solves many problems for administrators. There are a few rules for using VLANs that will help to make the combination of VLANs and NIC Teaming a very positive experience.
1)       Anytime you have NIC Teaming enabled, the physical switch ports the host is connected to should be set to trunk (promiscuous) mode. The physical switch should pass all traffic to the host for filtering without modification.[1]
1)      Anytime you have NIC Teaming enabled, you must not set VLAN filters on the NICs using the NICs advanced properties settings. Let the teaming software or the Hyper-V switch (if present) do the filtering.
When using SET all VLAN settings must be configured on the VM’s switch port. 

1.1.1.1     VLANs in a Hyper-V host

This section applies only to NIC Teaming.  It does not apply to SET as a SET team has no team interfaces on which a VLAN may be enabled.
In a Hyper-V host VLANs should be configured only in the Hyper-V switch, not in the stand-alone NIC Teaming software. Configuring team interfaces with VLANs can easily lead to VMs that are unable to communicate on the network due to collisions with VLANs assigned in the Hyper-V switch.  Consider the following NIC Teaming example:



Figure 6 - VLAN misconfiguration (stand-alone NIC Teaming)

Figure 6 shows a common misconfiguration that occurs when administrators try to use team interfaces for VLAN support and also bind the team to a Hyper-V switch.  In this case VM C will never receive any inbound traffic because all the traffic destined for VLAN 17 is taken out at the teaming module.  All traffic except traffic tagged with VLAN 17 will be forwarded to the Hyper-V switch, but VM C’s inbound traffic never arrives.  This kind of misconfiguration has been seen often enough for Microsoft to declare this kind of configuration, i.e., VLANs exposed at the teaming layer while the team is bound to the Hyper-V switch, unsupported.  Repeat: If a team is bound to a Hyper-V switch the team MUST NOT have any VLAN-specific team interfaces exposed.  This is an unsupported configuration 


1.1.1.1     VLANs in a Hyper-V VM

1)      The preferred method of supporting multiple VLANs in a VM is to provide the VM multiple ports on the Hyper-V switch and associate each port with a VLAN. Never team these ports in the VM as it will certainly cause communication problems.
2)      If the VM has multiple SR-IOV VFs make sure they are on the same VLAN before teaming them in the VM. It’s easily possible to configure the different VFs to be on different VLANs and, like in the previous case, it will certainly cause communication problems.
3)      The only safe way to use VLANs with NIC Teaming in a guest is to team Hyper-V ports that are
a.      Each connected to a different external Hyper-V switch, and
b.      Each configured to be associated with the same VLAN (or all associated with untagged traffic only).
TIP: If you must have more than one VLAN exposed into a guest OS consider renaming the ports in the guest to indicate what the VLAN is. E.g., if the first port is associated with VLAN 12 and the second port is associated with VLAN 48, rename the interface Ethernet to be EthernetVLAN12 and the other to be EthernetVLAN48.  Renaming interfaces is easy using the Windows PowerShell Rename-NetAdapter cmdlet or by going to the Network Connections panel in the guest and renaming the interfaces

[1] Advanced users may choose to restrict the switch ports to only passing the VLANs present on the host.  While this may slightly improve performance in networks with many VLANs that the local host doesn’t access, it risks creating difficult to diagnose problems when, for example, a VM is migrated to a host and it uses a VLAN not previously present on the destination host.

четверг, 31 августа 2017 г.

Enterasys B3 - настройка untagged портов в VLAN


1. Настройка VLAN и VLAN Membership:

#vlan
set vlan create 100
set vlan create 120
clear vlan egress 1 ge.1.1-48;ge.2.1-48
set vlan egress 100 ge.1.1-2;ge.2.1-2;lag.0.1-2 tagged
set vlan egress 100 ge.1.3-5;ge.2.3-5 untagged
set vlan egress 120 ge.1.1-2;ge.2.1-2;lag.0.1-2 tagged
set vlan egress 120 ge.1.6-8;ge.2.6-8 untagged
!


2. Настройка PVID для untagged портов:

#port
set port vlan ge.1.3 100
set port vlan ge.1.4 100
set port vlan ge.1.5 100
set port vlan ge.1.6 120
set port vlan ge.1.7 120
set port vlan ge.1.8 120
set port vlan ge.2.3 100
set port vlan ge.2.4 100
set port vlan ge.2.5 100
set port vlan ge.2.6 120
set port vlan ge.2.7 120
set port vlan ge.2.8 120
!

среда, 24 мая 2017 г.

Памятка по настройке VLAN и LAG с LACP на D-Link DGS-3100

Данный коммутатор является L2 коммутатором, SVI доступны только для того Management VLAN.

Настройка VLAN:

DGS-3100# sh conf running include vlan
create vlan MGMT tag 59
create vlan voice tag 90
config vlan MGMT add tagged ch1
config vlan voice add tagged ch1
config ipif System ipaddress 172.17.17.19/24 vlan MGMT
config voice_vlan oui-table add 0001e3 description siemens_phone___________
config voice_vlan oui-table add 00036b description Cisco_phone_____________
config voice_vlan oui-table add 00096e description Avaya_phone_____________
config voice_vlan oui-table add 000fe2 description Huawei-3COM_phone_______
config voice_vlan oui-table add 0060b9 description nec-philips_phone_______
config voice_vlan oui-table add 00d01e description pingtel_phone___________
config voice_vlan oui-table add 00e075 description veritel_phone___________
config voice_vlan oui-table add 00e0bb description 3Com_phone______________

Настройка LAG c LACP:

DGS-3100# sh conf running include link_aggregation
create link_aggregation group_id 1 type lacp
config link_aggregation group_id 1 ports 1:(23-24)

Стоит запомнить, что в операционной системе данного коммутатора сначала создаются виртуальные интерфейсы LAG (в терминологии D-Link - Channel Group), затем к ним подключаются необходимые порты, а уже затем данные Channel Group включаются в нужные VLAN в tagged/untagged в зависимости от потребности.

Если порты до включения в Channel Group висели в каком либо VLAN, то коммутатор не дает включить их в Channel Group по причине членства в VLAN, т.е порты должны быть untagged в Default VLAN (VLAN ID 1), коммутатор ругается на это таким вот образом:

DGS-3100# config link_aggregation group_id 1 ports 1:23-24 state enable
It is not allowed to configure member ports which belong to VLANs


Fail.




вторник, 23 мая 2017 г.

Памятка по настройке VLAN на коммутаторах Enterasys B3 (EOS):


B3(su)->show config vlan
This command shows non-default configurations only.
Use 'show config all' to show both default and non-default configurations.


!
#***** NON-DEFAULT CONFIGURATION *****
!
!
# Firmware Revision:  06.61.16.0002
!

#vlan
set vlan create 100
set vlan create 120
clear vlan egress 1 ge.1.1-2;ge.2.1-2
set vlan egress 100 ge.1.1-2;ge.2.1-2 tagged
set vlan egress 120 ge.1.1-2;ge.2.1-2 tagged
!
!

Интересной особенностью операционной системы EOS на данных коммутаторах, является, то что IP-интерфейсы для SVI необходимо настраивать из отдельно выделенного контекста конфигурирования маршрутизатора (Router):

B3(su)->show config router
This command shows non-default configurations only.
Use 'show config all' to show both default and non-default configurations.


!
#***** NON-DEFAULT CONFIGURATION *****
!
!
# Firmware Revision:  06.61.16.0002
!

#Router Configuration
router
enable
configure
interface vlan 100
ip address 172.30.100.254 255.255.255.0
no shutdown
exit
interface vlan 120
ip address 172.30.120.254 255.255.255.0
no shutdown
exit
exit
exit
exit
!

В СLI это выглядит примерно вот так:

B3(su)->router(Config)#interface ?

loopback                 Configuration of Loopback Interface.
vlan                     Interface type

В контексте маршрутизатора спрятано все что относится к IP маршрутизации (примеры):


B3(su)->router(Config)#show interface vlan 100

Vlan 100 is Administratively UP
Vlan 100 is Operationally UP
Internet Address is 172.30.100.254 , Subnet Mask is  255.255.255.0
Mac Address is: 0011.88F2.95F7
The name of this device is Vlan 100
The MTU is 1500 bytes
The bandwidth is 0 Mb/s
Encapsulation type Ethernet
ARP Timeout: 14400 seconds

B3(su)->router(Config)#show ip ?

arp                      IP ARP table
icmp                     ICMP information.
igmp                     IGMP information
interface                IP Interface status and configuration
irdp                     Display IRDP values
mroute                   IP multicast source table
rip                      Display RIP information.
route                    IP routing table.


B3(su)->router(Config)#show ip interface

Vlan 100 is Admin UP
Vlan 100 is Oper UP
Primary IP Address is 172.30.100.254  Mask  255.255.255.0
Frame Type Ethernet
MAC-Address  0011.88F2.95F7
Incoming Accesslist is not set
MTU is 1500 bytes
ARP Timeout is 14400 seconds
Direct Broadcast Disabled
Proxy ARP is Disabled

Vlan 120 is Admin UP
Vlan 120 is Oper UP
Primary IP Address is 172.30.120.254  Mask  255.255.255.0
Frame Type Ethernet
MAC-Address  0011.88F2.95F7
Incoming Accesslist is not set
MTU is 1500 bytes
ARP Timeout is 14400 seconds
Direct Broadcast Disabled
Proxy ARP is Disabled


B3(su)->router(Config)#show ip route

Codes: C - connected, S - static, R - RIP, O - OSPF, IA - OSPF interarea
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       E - EGP, i - IS-IS, L1 - IS-IS level-1, LS - IS-IS level-2
       * - candidate default, U - per user static route

C    172.30.100.0/24 [0/1] directly connected, Vlan 100
C    172.30.120.0/24 [0/1] directly connected, Vlan 120