SlideShare una empresa de Scribd logo
1 de 20
VLANs in
    Red Hat Enterprise Linux

    Raghu Udiyar
    Technical support engineer
    Red Hat



1                VLANs & you | Raghu Udiyar
First, LAN?

    ●   Local Area Network
    ●   Uses Ethernet for Layer 2 communication
    ●   using MAC addresses
    ●   ARP is used for IP -> MAC
    ●   ARP uses broadcast
    ●   LAN = 1 Broadcast domain



    ●   A short refresher on how this works

2                        VLANs & you | Raghu Udiyar
Port 1       A : f3:a3:34:
    Port 2       B : f2:de:34:
                                                   This mac is D
    Port 3       C : f1:d1:23
                                                     On port 4
    Port 4       D : f3:a4:56




    Who is 192.x.x.x                                                       Hey, that's me




                                                                   Mac is f3:a4:x:x:x




3                            VLANs & you | Raghu Udiyar
To recap

    ●   A–B–C–D
    ●   A -> D
    ●   ARP broadcast, D is IP 192.x.x.x what is MAC?
    ●   D replies with MAC
    ●   A sends to switch
    ●   Switch looks up the address in the MAC table
    ●   Switch sends to D




4                       VLANs & you | Raghu Udiyar
Any questions?




5                VLANs & you | Raghu Udiyar
VLANs

    ●   Splits a LAN into multiple LANs


    ●   Into multiple broadcast domains


    ●   Splits single switch into multiple switches




6                         VLANs & you | Raghu Udiyar
Port 1       A : f3:a3:34:
        Port 2       B : f2:de:34:
        Port 3       C : f1:d1:23
        Port 4       D : f3:a4:56
                                                      B
                                     Trunk
                                                  B




    B
                 B               B




7                    VLANs & you | Raghu Udiyar
VLAN - Advantages

    ●   Flexibility - No physical restrictions
    ●   Security – layer 2 separation
    ●   Cost effective
    ●   Reduce size of broadcast domains




8                         VLANs & you | Raghu Udiyar
How does this work?

    ●   802.1q protocol
    ●   VLAN “Tags”

        VLAN ID    Ethernet Frame




    ●   VLAN 50, 100, etc (1 – 4094)




9                         VLANs & you | Raghu Udiyar
Type of Ports

     ●   Access port


                 SW                               Ethernet
                                                             PC1
             Vid Ethernet


                                                             Vlan id is stripped


                                                  Ethernet
                                                             PC2

             Vid Ethernet
                 SW




10                          VLANs & you | Raghu Udiyar
Type of Ports

     ●   Trunk Ports


                                            v Et
                SW                                         SW
                                                    v Et
                                   v Et




                                    Trunk Ports

                                 Carries all VLAN's


11                     VLANs & you | Raghu Udiyar
Native Vlan




                                           v Et
         SW                  Et                                        SW
                                                   v Et
        v Et                      v Et




        Native Vlan

                Ethernet frame with no Vlan id get's the native VLAN




12                    VLANs & you | Raghu Udiyar
Any questions?




13               VLANs & you | Raghu Udiyar
Vlans in RHEL

     ●   Access
     ●   Trunk
     ●   Vlan interface :
                                                         RHEL
         eth0.40
         eth0.100                           eth0.40      eth0.100     eth0.8


         eth0.8

                                                               eth0            native vlan




14                          VLANs & you | Raghu Udiyar
Use case 1 :


                                             SW1


      Httpd



      Payroll
      eth0.40


                eth0
                                             SW2




15              VLANs & you | Raghu Udiyar
Use Case 2 :
               Hypervisor with two guests




          VM1                                  VM2



        VLAN10                                VLAN20




                                  eth0


               Trunk




16                     VLANs & you | Raghu Udiyar
Demo - Assigning a Vlan ID

     ●   # vconfig add eth0 7
     ●   # ip addr add dev eth0.7 192.168.0.1/24 brd +
     ●   # ip link set dev eth0.7 up




17                         VLANs & you | Raghu Udiyar
Troubleshooting

     ●   Misconfiguration
          ●   Check switch
     ●   Misunderstanding of concepts
          ●   Access/Trunk
          ●   Native Vlan




18                           VLANs & you | Raghu Udiyar
Any questions?




19               VLANs & you | Raghu Udiyar
Thank You

Más contenido relacionado

La actualidad más candente

La actualidad más candente (20)

Virtual LAN
Virtual LANVirtual LAN
Virtual LAN
 
vlan
vlanvlan
vlan
 
Vlan
VlanVlan
Vlan
 
VirtuaL area network (VLAN)
VirtuaL area network (VLAN)  VirtuaL area network (VLAN)
VirtuaL area network (VLAN)
 
LAN Switching and Wireless: Ch4 - VLAN Trunking Protocol (VTP)
LAN Switching and Wireless: Ch4 - VLAN Trunking Protocol (VTP)LAN Switching and Wireless: Ch4 - VLAN Trunking Protocol (VTP)
LAN Switching and Wireless: Ch4 - VLAN Trunking Protocol (VTP)
 
Tn 310 vlan-trunking
Tn 310 vlan-trunkingTn 310 vlan-trunking
Tn 310 vlan-trunking
 
Day 14.2 inter vlan
Day 14.2 inter vlanDay 14.2 inter vlan
Day 14.2 inter vlan
 
Vlan
VlanVlan
Vlan
 
Virtual local area networks
Virtual local area networksVirtual local area networks
Virtual local area networks
 
VLAN Trunking Protocol
VLAN Trunking ProtocolVLAN Trunking Protocol
VLAN Trunking Protocol
 
VLAN Network for Extreme Networks
VLAN Network for Extreme NetworksVLAN Network for Extreme Networks
VLAN Network for Extreme Networks
 
Vlan final
Vlan finalVlan final
Vlan final
 
Vlans (virtual local area networks)
Vlans (virtual local area networks)Vlans (virtual local area networks)
Vlans (virtual local area networks)
 
Advantages of VLAN
Advantages of VLANAdvantages of VLAN
Advantages of VLAN
 
Benefits of vlan
Benefits of vlanBenefits of vlan
Benefits of vlan
 
Presentation
PresentationPresentation
Presentation
 
Ccna3 mod9-vtp
Ccna3 mod9-vtpCcna3 mod9-vtp
Ccna3 mod9-vtp
 
vlan
vlanvlan
vlan
 
Inter VLAN Routing
Inter VLAN RoutingInter VLAN Routing
Inter VLAN Routing
 
Vlan Types
Vlan TypesVlan Types
Vlan Types
 

Destacado

Introduction to software engineering
Introduction to software engineeringIntroduction to software engineering
Introduction to software engineeringMustafa Gamal
 
[Ajou Greative 콘서트] 글로벌 sw엔지니어로 성장하기
[Ajou Greative 콘서트] 글로벌 sw엔지니어로 성장하기[Ajou Greative 콘서트] 글로벌 sw엔지니어로 성장하기
[Ajou Greative 콘서트] 글로벌 sw엔지니어로 성장하기Daniel Juyung Seo
 
오픈소스, 빡! 끝! - 제7회 삼성소프트웨어멤버십 기술전
오픈소스, 빡! 끝! - 제7회 삼성소프트웨어멤버십 기술전오픈소스, 빡! 끝! - 제7회 삼성소프트웨어멤버십 기술전
오픈소스, 빡! 끝! - 제7회 삼성소프트웨어멤버십 기술전Daniel Juyung Seo
 
5모먼츠 4월 정기교육 - 나만의 웹 포트폴리오/사이트 만들기
5모먼츠 4월 정기교육 - 나만의 웹 포트폴리오/사이트 만들기5모먼츠 4월 정기교육 - 나만의 웹 포트폴리오/사이트 만들기
5모먼츠 4월 정기교육 - 나만의 웹 포트폴리오/사이트 만들기5moments
 
Memory management in Linux
Memory management in LinuxMemory management in Linux
Memory management in LinuxRaghu Udiyar
 

Destacado (6)

IPv6 Overview
IPv6 OverviewIPv6 Overview
IPv6 Overview
 
Introduction to software engineering
Introduction to software engineeringIntroduction to software engineering
Introduction to software engineering
 
[Ajou Greative 콘서트] 글로벌 sw엔지니어로 성장하기
[Ajou Greative 콘서트] 글로벌 sw엔지니어로 성장하기[Ajou Greative 콘서트] 글로벌 sw엔지니어로 성장하기
[Ajou Greative 콘서트] 글로벌 sw엔지니어로 성장하기
 
오픈소스, 빡! 끝! - 제7회 삼성소프트웨어멤버십 기술전
오픈소스, 빡! 끝! - 제7회 삼성소프트웨어멤버십 기술전오픈소스, 빡! 끝! - 제7회 삼성소프트웨어멤버십 기술전
오픈소스, 빡! 끝! - 제7회 삼성소프트웨어멤버십 기술전
 
5모먼츠 4월 정기교육 - 나만의 웹 포트폴리오/사이트 만들기
5모먼츠 4월 정기교육 - 나만의 웹 포트폴리오/사이트 만들기5모먼츠 4월 정기교육 - 나만의 웹 포트폴리오/사이트 만들기
5모먼츠 4월 정기교육 - 나만의 웹 포트폴리오/사이트 만들기
 
Memory management in Linux
Memory management in LinuxMemory management in Linux
Memory management in Linux
 

Similar a Vlans

Лекц 9
Лекц 9Лекц 9
Лекц 9Muuluu
 
Exploiting First Hop Protocols to Own the Network - Paul Coggin
Exploiting First Hop Protocols to Own the Network - Paul CogginExploiting First Hop Protocols to Own the Network - Paul Coggin
Exploiting First Hop Protocols to Own the Network - Paul CogginEC-Council
 
Webinar NETGEAR - ProsSafe Switch gestibili e supporto della configurazione ...
Webinar NETGEAR -  ProsSafe Switch gestibili e supporto della configurazione ...Webinar NETGEAR -  ProsSafe Switch gestibili e supporto della configurazione ...
Webinar NETGEAR - ProsSafe Switch gestibili e supporto della configurazione ...Netgear Italia
 
Examen final ccna2
Examen final ccna2Examen final ccna2
Examen final ccna2Juli Yaret
 
Ch3 ccna exploration 3 lan switching and wireless
Ch3 ccna exploration 3 lan switching and wirelessCh3 ccna exploration 3 lan switching and wireless
Ch3 ccna exploration 3 lan switching and wirelesskratos2424
 
Free CCNP switching workbook by networkershome pdf
Free CCNP switching workbook by networkershome pdfFree CCNP switching workbook by networkershome pdf
Free CCNP switching workbook by networkershome pdfNetworkershome
 
At8000 s configurando vla_ns
At8000 s configurando vla_nsAt8000 s configurando vla_ns
At8000 s configurando vla_nsNetPlus
 
Vlan and vtp
Vlan and vtpVlan and vtp
Vlan and vtpRaj sekar
 
Vlan and vtp
Vlan and vtpVlan and vtp
Vlan and vtpRaj sekar
 
SANGFOR_WANO_v9.5.8R1_Professional _01_Advanced Deployment.pptx
SANGFOR_WANO_v9.5.8R1_Professional _01_Advanced Deployment.pptxSANGFOR_WANO_v9.5.8R1_Professional _01_Advanced Deployment.pptx
SANGFOR_WANO_v9.5.8R1_Professional _01_Advanced Deployment.pptxcihuy123
 
ZyXEL_VES-1624F-44_Product_Training
ZyXEL_VES-1624F-44_Product_TrainingZyXEL_VES-1624F-44_Product_Training
ZyXEL_VES-1624F-44_Product_Trainingmarrshsu
 
Ccna 3 chapter 6 v4.0 answers 2011
Ccna 3 chapter 6 v4.0 answers 2011Ccna 3 chapter 6 v4.0 answers 2011
Ccna 3 chapter 6 v4.0 answers 2011Dân Chơi
 
CloudKC: Evolution of Network Virtualization
CloudKC: Evolution of Network VirtualizationCloudKC: Evolution of Network Virtualization
CloudKC: Evolution of Network VirtualizationCynthia Thomas
 
From Nova-Network to Neutron and Beyond: A Look at OpenStack Networking
From Nova-Network to Neutron and Beyond: A Look at OpenStack NetworkingFrom Nova-Network to Neutron and Beyond: A Look at OpenStack Networking
From Nova-Network to Neutron and Beyond: A Look at OpenStack NetworkingCynthia Thomas
 
Ccna 3 final exam answer v5
Ccna 3 final exam answer v5Ccna 3 final exam answer v5
Ccna 3 final exam answer v5friv4schoolgames
 

Similar a Vlans (20)

Лекц 9
Лекц 9Лекц 9
Лекц 9
 
Exploiting First Hop Protocols to Own the Network - Paul Coggin
Exploiting First Hop Protocols to Own the Network - Paul CogginExploiting First Hop Protocols to Own the Network - Paul Coggin
Exploiting First Hop Protocols to Own the Network - Paul Coggin
 
Webinar NETGEAR - ProsSafe Switch gestibili e supporto della configurazione ...
Webinar NETGEAR -  ProsSafe Switch gestibili e supporto della configurazione ...Webinar NETGEAR -  ProsSafe Switch gestibili e supporto della configurazione ...
Webinar NETGEAR - ProsSafe Switch gestibili e supporto della configurazione ...
 
Exploiting Layer 2
Exploiting Layer 2Exploiting Layer 2
Exploiting Layer 2
 
Examen final ccna2
Examen final ccna2Examen final ccna2
Examen final ccna2
 
Day 14.2 configuringvla ns
Day 14.2 configuringvla nsDay 14.2 configuringvla ns
Day 14.2 configuringvla ns
 
Ch3 ccna exploration 3 lan switching and wireless
Ch3 ccna exploration 3 lan switching and wirelessCh3 ccna exploration 3 lan switching and wireless
Ch3 ccna exploration 3 lan switching and wireless
 
Free CCNP switching workbook by networkershome pdf
Free CCNP switching workbook by networkershome pdfFree CCNP switching workbook by networkershome pdf
Free CCNP switching workbook by networkershome pdf
 
Layer2-vlans
Layer2-vlansLayer2-vlans
Layer2-vlans
 
At8000 s configurando vla_ns
At8000 s configurando vla_nsAt8000 s configurando vla_ns
At8000 s configurando vla_ns
 
Vlan and vtp
Vlan and vtpVlan and vtp
Vlan and vtp
 
Vlan and vtp
Vlan and vtpVlan and vtp
Vlan and vtp
 
Private VLANs
Private VLANsPrivate VLANs
Private VLANs
 
Tema3
Tema3Tema3
Tema3
 
SANGFOR_WANO_v9.5.8R1_Professional _01_Advanced Deployment.pptx
SANGFOR_WANO_v9.5.8R1_Professional _01_Advanced Deployment.pptxSANGFOR_WANO_v9.5.8R1_Professional _01_Advanced Deployment.pptx
SANGFOR_WANO_v9.5.8R1_Professional _01_Advanced Deployment.pptx
 
ZyXEL_VES-1624F-44_Product_Training
ZyXEL_VES-1624F-44_Product_TrainingZyXEL_VES-1624F-44_Product_Training
ZyXEL_VES-1624F-44_Product_Training
 
Ccna 3 chapter 6 v4.0 answers 2011
Ccna 3 chapter 6 v4.0 answers 2011Ccna 3 chapter 6 v4.0 answers 2011
Ccna 3 chapter 6 v4.0 answers 2011
 
CloudKC: Evolution of Network Virtualization
CloudKC: Evolution of Network VirtualizationCloudKC: Evolution of Network Virtualization
CloudKC: Evolution of Network Virtualization
 
From Nova-Network to Neutron and Beyond: A Look at OpenStack Networking
From Nova-Network to Neutron and Beyond: A Look at OpenStack NetworkingFrom Nova-Network to Neutron and Beyond: A Look at OpenStack Networking
From Nova-Network to Neutron and Beyond: A Look at OpenStack Networking
 
Ccna 3 final exam answer v5
Ccna 3 final exam answer v5Ccna 3 final exam answer v5
Ccna 3 final exam answer v5
 

Vlans

  • 1. VLANs in Red Hat Enterprise Linux Raghu Udiyar Technical support engineer Red Hat 1 VLANs & you | Raghu Udiyar
  • 2. First, LAN? ● Local Area Network ● Uses Ethernet for Layer 2 communication ● using MAC addresses ● ARP is used for IP -> MAC ● ARP uses broadcast ● LAN = 1 Broadcast domain ● A short refresher on how this works 2 VLANs & you | Raghu Udiyar
  • 3. Port 1 A : f3:a3:34: Port 2 B : f2:de:34: This mac is D Port 3 C : f1:d1:23 On port 4 Port 4 D : f3:a4:56 Who is 192.x.x.x Hey, that's me Mac is f3:a4:x:x:x 3 VLANs & you | Raghu Udiyar
  • 4. To recap ● A–B–C–D ● A -> D ● ARP broadcast, D is IP 192.x.x.x what is MAC? ● D replies with MAC ● A sends to switch ● Switch looks up the address in the MAC table ● Switch sends to D 4 VLANs & you | Raghu Udiyar
  • 5. Any questions? 5 VLANs & you | Raghu Udiyar
  • 6. VLANs ● Splits a LAN into multiple LANs ● Into multiple broadcast domains ● Splits single switch into multiple switches 6 VLANs & you | Raghu Udiyar
  • 7. Port 1 A : f3:a3:34: Port 2 B : f2:de:34: Port 3 C : f1:d1:23 Port 4 D : f3:a4:56 B Trunk B B B B 7 VLANs & you | Raghu Udiyar
  • 8. VLAN - Advantages ● Flexibility - No physical restrictions ● Security – layer 2 separation ● Cost effective ● Reduce size of broadcast domains 8 VLANs & you | Raghu Udiyar
  • 9. How does this work? ● 802.1q protocol ● VLAN “Tags” VLAN ID Ethernet Frame ● VLAN 50, 100, etc (1 – 4094) 9 VLANs & you | Raghu Udiyar
  • 10. Type of Ports ● Access port SW Ethernet PC1 Vid Ethernet Vlan id is stripped Ethernet PC2 Vid Ethernet SW 10 VLANs & you | Raghu Udiyar
  • 11. Type of Ports ● Trunk Ports v Et SW SW v Et v Et Trunk Ports Carries all VLAN's 11 VLANs & you | Raghu Udiyar
  • 12. Native Vlan v Et SW Et SW v Et v Et v Et Native Vlan Ethernet frame with no Vlan id get's the native VLAN 12 VLANs & you | Raghu Udiyar
  • 13. Any questions? 13 VLANs & you | Raghu Udiyar
  • 14. Vlans in RHEL ● Access ● Trunk ● Vlan interface : RHEL eth0.40 eth0.100 eth0.40 eth0.100 eth0.8 eth0.8 eth0 native vlan 14 VLANs & you | Raghu Udiyar
  • 15. Use case 1 : SW1 Httpd Payroll eth0.40 eth0 SW2 15 VLANs & you | Raghu Udiyar
  • 16. Use Case 2 : Hypervisor with two guests VM1 VM2 VLAN10 VLAN20 eth0 Trunk 16 VLANs & you | Raghu Udiyar
  • 17. Demo - Assigning a Vlan ID ● # vconfig add eth0 7 ● # ip addr add dev eth0.7 192.168.0.1/24 brd + ● # ip link set dev eth0.7 up 17 VLANs & you | Raghu Udiyar
  • 18. Troubleshooting ● Misconfiguration ● Check switch ● Misunderstanding of concepts ● Access/Trunk ● Native Vlan 18 VLANs & you | Raghu Udiyar
  • 19. Any questions? 19 VLANs & you | Raghu Udiyar