SlideShare a Scribd company logo
1 of 8
Download to read offline
VLAN                                                        1


 VLAN Configuration
The network lab has two Catalyst 2950T24 switches, with
names Maryland and California, and one Catalyst 2950G
Switch with name Virginia.
- References:
http://www.cisco.com/en/US/products/hw/switches/ps4916/pro
ducts_configuration_guide_chapter09186a008017e532.html
    − The two Catalyst 2950T24’s in the network lab, each
       has 24 10/100 Base T ports, and two 10/100/1000 Base T
       ports i.e., gi0/1 and gi0/2.
    −    For Catalyst 2950G (i.e, Virginia), the two
       10/100/1000 Base T ports are currently not installed
    − The 24 10/100 Base T ports are: fa0/1, fa0/1,fa0/2, …
       fa0/24
    − Two 10/100/1000 Base T ports are: gi0/1 and gi0/2




Jan. 26,2010                                                1
VLAN                                                             2



♦ All the Cisco switches has two operational modes
   − User Exec Mode :
       When a user first establishes the connection with the
       switch, and enter the password, the switch is in ‘User
      EXEC Mode’, and the prompt is ‘>’.
   − Privileged Mode: when user enter the command
      ‘enable’ and supply the password, it enters the
      privileged mode, and the prompt is ‘#’
   − Only in privileged mode, a user can enter configuration
      mode; to enter configuration mode, user must enter the
      command ‘config t’
 ♦ Configuration commands
   − The following configuration commands explains how to
      define a vlan name, assigning a static-access ports to a
      VLAN, or deleting a VLAN.
   − A VLAN port can be either in permanent trunk mode,
      or in non-trunking mode as access




Jan. 26,2010                                                     2
VLAN                                                                          3



                                                           Configure
                            Privileged                      Mode
User Mode         enable      Mode          Config t
                                                            Router(config)#
      Router>                    Router#

                                                  end
                    disable


                           end

         Ctrl-Z                                   interface
                              Router(config-if)



                                                        router

                           Router(config-router)




Jan. 26,2010                                                                  3
VLAN                                                                                   4



♦ What is a Trunk?
  • A Trunk is a point-to-point link that transmit and receive
    traffic between switches or switch and routers.
  • Trunks carry the traffic of multiple VLANs and can
    extend VLANs across an entire network

I.Define VLAN name
step       command                              purpose
1              Config t                         Enter global configuration mode
2              Vlan vlan-id                     Enter a VLAN ID
3              Name vlan-name                   Enter a name for the VLAN
4              end                              Return to privileged mode
5              Show vlan {name | id vlan-id }   Verify your entries
6               copy running-cnofig startup-    Save the configuration in the switch
               config or wr mem                 configuration file




Jan. 26,2010                                                                           4
VLAN                                                                                       5


II.Insert interface ports to VLAN
Step       Command                Purpose
1              Config terminal                      Enter global configuration mode
2              Inter interface-id                   Enter the interface to be added to the
                                                    VLAN
3              Switchport mode access               Define the VLAN membership mode for
                                                    the port
4              Switchport access vlan               Assign the port to a VLAN
               Vlan-id
5              end                                  Return to privileged EXEC mode
6              Show config or running-config        Verify the VLAN membership mode of
               interf interface-id                  the interface
7              Sh interf interface-id switchport    Verify your entries in the Administrative
                                                    mode and the access mode VLAN field
8              Copy running-config startup-         Save your entires in the configuration
               config                               file
               Or wr mem


III.Deleting a VLAN
step           command                              purpose
1              Config t                             Enter global configuration mode
2              No vlan vlan-id                      Remove the VLAN by entering the
                                                    VLAN-ID
3              end                                  Return to privileged mode
4              Sh vlan brief                        Verify the VLAN removed
5               copy running-config startu-config   Save the configuration in the switch
               or wr mem                            startup configuration file



Jan. 26,2010                                                                               5
VLAN                                                        6



  ♦ The 26 interface ports of Catalyst 2950 T24 are:
   • Interface fa0/i, where i= 1. 24 are the 24 10/100 Base T
   ports
   • Interface gi0/1 or 0/2 are the two 10/100/1000 Base T
   ports
  ♦ The 24 ports of Catalyst 2950G Switch are:
   • Interface fa0/i, where i= 1. 24
  ♦ Switchport mode access – interface is put into permanent
    nontrunking mode
  ♦ Switchport mode trunk - interface into permanent
    trunking mode




Jan. 26,2010                                                6
VLAN                                                                                     7



Examples of VLAN configuration
California#sh vtp status
    /* show the vtp status */
California#sh vlan     /*to show all the vlans configured */
California#config t /* this command cause the switch to enter configuration mode, when
all configuration is completed, enter either Ctrl^z or end to return to privileged
              EXEC mode            */
California(config)#vlan 10 name vlan10
           /* defines name of vlan 10 as vlan10
California(config)#int fa0/1
California(config)#switchport mode access
California(config)#switchport access vlan 10 /* set port fa0/1
                        into vlan 10 */
California(config)#int fa0/2
California(config)#switchport mode access
California(config)#switchport access vlan 10

California(config)#int fa0/3
California(config)#switchport mode access
California(config)#switchport access vlan 10
/* at this point, vlan 10 has 3 members i.e., fa0/1, fa0/2 and fa0/3   */
California(config)#vlan 20 name vlan20
California(config)#int fa0/5
California(config)#switchport mode access
California(config)#switchport access vlan 20
California(config)#int fa0/6
California(config)#switchport mode access
California(config)#switchport access vlan 20
California(config)#int fa0/7
California(config)#switchport mode access
California(config)#switchport access vlan 20


Jan. 26,2010                                                                             7
VLAN                                                            8


California(config)#int fa0/8
California(config)#switchport mode access
California(config)#ctrl-Z
California#    /*return to privileged mode */
/* At this poing vlan 20 has 4 members i.e.,
   fa0/5, fa0/6, fa0/7 and fa0/8 */
California(config)#int gi0/2
California(config)# switchport mode trunk
           /* this will put the port gi0/2 to be in permanent
                trunking mode */
California(config)#switchport access vlan 40
                  /* put int gi0/2 into vlan 40 */
California(config)#switchport access vlan 20
California(config)#end or ctrl-Z
                /* return to privileged mode */
California#wr mem or copy running-config strtup-config




Jan. 26,2010                                                    8

More Related Content

What's hot

How to create and delete vlan on cisco catalyst switch
How to create and delete vlan on cisco catalyst switchHow to create and delete vlan on cisco catalyst switch
How to create and delete vlan on cisco catalyst switch
IT Tech
 
Final exam ccna exploration 3 lan switching and wireless
Final exam ccna exploration 3 lan switching and wirelessFinal exam ccna exploration 3 lan switching and wireless
Final exam ccna exploration 3 lan switching and wireless
kratos2424
 
Inter-VLAN Routing
Inter-VLAN RoutingInter-VLAN Routing
Inter-VLAN Routing
rmosate
 
Concepts: Management VLAN
Concepts: Management VLANConcepts: Management VLAN
Concepts: Management VLAN
Jelmer de Reus
 
At8000 s configurando vla_ns
At8000 s configurando vla_nsAt8000 s configurando vla_ns
At8000 s configurando vla_ns
NetPlus
 
Confi vtp vlan
Confi vtp vlanConfi vtp vlan
Confi vtp vlan
1 2d
 
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
kratos2424
 

What's hot (18)

How to create and delete vlan on cisco catalyst switch
How to create and delete vlan on cisco catalyst switchHow to create and delete vlan on cisco catalyst switch
How to create and delete vlan on cisco catalyst switch
 
Inter VLAN Routing
Inter VLAN RoutingInter VLAN Routing
Inter VLAN Routing
 
Cap6 intervlan routing
Cap6   intervlan routingCap6   intervlan routing
Cap6 intervlan routing
 
Final exam ccna exploration 3 lan switching and wireless
Final exam ccna exploration 3 lan switching and wirelessFinal exam ccna exploration 3 lan switching and wireless
Final exam ccna exploration 3 lan switching and wireless
 
CCNP Study Guide
CCNP Study GuideCCNP Study Guide
CCNP Study Guide
 
Inter-VLAN Routing
Inter-VLAN RoutingInter-VLAN Routing
Inter-VLAN Routing
 
VTP
VTPVTP
VTP
 
Concepts: Management VLAN
Concepts: Management VLANConcepts: Management VLAN
Concepts: Management VLAN
 
At8000 s configurando vla_ns
At8000 s configurando vla_nsAt8000 s configurando vla_ns
At8000 s configurando vla_ns
 
Storm-Control
Storm-ControlStorm-Control
Storm-Control
 
Zxr10 introduction to 5928 e
Zxr10 introduction to 5928 eZxr10 introduction to 5928 e
Zxr10 introduction to 5928 e
 
Ccna3 module 9 exams
Ccna3 module 9 examsCcna3 module 9 exams
Ccna3 module 9 exams
 
Confi vtp vlan
Confi vtp vlanConfi vtp vlan
Confi vtp vlan
 
Cisco lab, guide to configure interface stp attributes
Cisco lab, guide to configure interface stp attributesCisco lab, guide to configure interface stp attributes
Cisco lab, guide to configure interface stp attributes
 
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
 
Packet Tracer: Cisco, Spanning tree protocol
Packet Tracer: Cisco, Spanning tree protocolPacket Tracer: Cisco, Spanning tree protocol
Packet Tracer: Cisco, Spanning tree protocol
 
Dot1qtnl
Dot1qtnlDot1qtnl
Dot1qtnl
 
Cisco commands List for Beginners (CCNA, CCNP)
Cisco commands List for Beginners (CCNA, CCNP)Cisco commands List for Beginners (CCNA, CCNP)
Cisco commands List for Beginners (CCNA, CCNP)
 

Viewers also liked

Brokerage 2007 ibbt projectstructuur
Brokerage 2007 ibbt projectstructuurBrokerage 2007 ibbt projectstructuur
Brokerage 2007 ibbt projectstructuur
imec.archive
 
Bolo Doce De Tapioca Light
Bolo Doce De Tapioca LightBolo Doce De Tapioca Light
Bolo Doce De Tapioca Light
Medusa Fabula
 

Viewers also liked (8)

Brokerage 2007 ibbt projectstructuur
Brokerage 2007 ibbt projectstructuurBrokerage 2007 ibbt projectstructuur
Brokerage 2007 ibbt projectstructuur
 
Bolo Doce De Tapioca Light
Bolo Doce De Tapioca LightBolo Doce De Tapioca Light
Bolo Doce De Tapioca Light
 
当当网 从搜索到发现
当当网 从搜索到发现当当网 从搜索到发现
当当网 从搜索到发现
 
Learn BEM: CSS Naming Convention
Learn BEM: CSS Naming ConventionLearn BEM: CSS Naming Convention
Learn BEM: CSS Naming Convention
 
How to Build a Dynamic Social Media Plan
How to Build a Dynamic Social Media PlanHow to Build a Dynamic Social Media Plan
How to Build a Dynamic Social Media Plan
 
SEO: Getting Personal
SEO: Getting PersonalSEO: Getting Personal
SEO: Getting Personal
 
Lightning Talk #9: How UX and Data Storytelling Can Shape Policy by Mika Aldaba
Lightning Talk #9: How UX and Data Storytelling Can Shape Policy by Mika AldabaLightning Talk #9: How UX and Data Storytelling Can Shape Policy by Mika Aldaba
Lightning Talk #9: How UX and Data Storytelling Can Shape Policy by Mika Aldaba
 
Succession “Losers”: What Happens to Executives Passed Over for the CEO Job?
Succession “Losers”: What Happens to Executives Passed Over for the CEO Job? Succession “Losers”: What Happens to Executives Passed Over for the CEO Job?
Succession “Losers”: What Happens to Executives Passed Over for the CEO Job?
 

Similar to Vlan

06 vlan configuration commands
06 vlan configuration commands06 vlan configuration commands
06 vlan configuration commands
Andri Martian
 
Лекц 9
Лекц 9Лекц 9
Лекц 9
Muuluu
 
VIRTUAL LANS
VIRTUAL LANSVIRTUAL LANS
VIRTUAL LANS
anilinvns
 
Cisco how to configure vlan
Cisco how to configure vlanCisco how to configure vlan
Cisco how to configure vlan
1 2d
 
Cisco how to configure vlan
Cisco how to configure vlanCisco how to configure vlan
Cisco how to configure vlan
1 2d
 

Similar to Vlan (20)

06 vlan configuration commands
06 vlan configuration commands06 vlan configuration commands
06 vlan configuration commands
 
RFI
RFIRFI
RFI
 
Лекц 9
Лекц 9Лекц 9
Лекц 9
 
Day 5 VIRTUAL LANS
Day 5 VIRTUAL LANSDay 5 VIRTUAL LANS
Day 5 VIRTUAL LANS
 
VIRTUAL LANS
VIRTUAL LANSVIRTUAL LANS
VIRTUAL LANS
 
Ccna 4 final lab switchi
Ccna 4 final lab switchiCcna 4 final lab switchi
Ccna 4 final lab switchi
 
Primary vlan
Primary vlanPrimary vlan
Primary vlan
 
Virtual LAN and Vlan Trunking Protocol.pptx
Virtual LAN and Vlan Trunking Protocol.pptxVirtual LAN and Vlan Trunking Protocol.pptx
Virtual LAN and Vlan Trunking Protocol.pptx
 
Cisco how to configure vlan
Cisco how to configure vlanCisco how to configure vlan
Cisco how to configure vlan
 
Cisco how to configure vlan
Cisco how to configure vlanCisco how to configure vlan
Cisco how to configure vlan
 
Creating ethernet vla ns on catalyst switches
Creating ethernet vla ns on catalyst switchesCreating ethernet vla ns on catalyst switches
Creating ethernet vla ns on catalyst switches
 
Private VLANs
Private VLANsPrivate VLANs
Private VLANs
 
Day 14.2 inter vlan
Day 14.2 inter vlanDay 14.2 inter vlan
Day 14.2 inter vlan
 
Vla ns
Vla nsVla ns
Vla ns
 
Vla ns
Vla nsVla ns
Vla ns
 
Vlan lab
Vlan labVlan lab
Vlan lab
 
VLAN Virtual Area Network ,Switch,Ethernet ,VIkram Snehi
VLAN Virtual Area Network ,Switch,Ethernet ,VIkram SnehiVLAN Virtual Area Network ,Switch,Ethernet ,VIkram Snehi
VLAN Virtual Area Network ,Switch,Ethernet ,VIkram Snehi
 
Vlan.pdf
Vlan.pdfVlan.pdf
Vlan.pdf
 
Scaling-VLANs-PPT.pptx
Scaling-VLANs-PPT.pptxScaling-VLANs-PPT.pptx
Scaling-VLANs-PPT.pptx
 
vlaN.pptgfggdfgdrgsegtrgthyrtewgsrdhftjf
vlaN.pptgfggdfgdrgsegtrgthyrtewgsrdhftjfvlaN.pptgfggdfgdrgsegtrgthyrtewgsrdhftjf
vlaN.pptgfggdfgdrgsegtrgthyrtewgsrdhftjf
 

Recently uploaded

Recently uploaded (20)

Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
 
Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024
 
TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024
 
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on ThanabotsContinuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
 
WSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptxWSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptx
 
Using IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & IrelandUsing IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & Ireland
 
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfLinux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
 
Microsoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - QuestionnaireMicrosoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - Questionnaire
 
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdfHow Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
 
Syngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdfSyngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdf
 
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdfWhere to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
 
The Metaverse: Are We There Yet?
The  Metaverse:    Are   We  There  Yet?The  Metaverse:    Are   We  There  Yet?
The Metaverse: Are We There Yet?
 
ECS 2024 Teams Premium - Pretty Secure
ECS 2024   Teams Premium - Pretty SecureECS 2024   Teams Premium - Pretty Secure
ECS 2024 Teams Premium - Pretty Secure
 
Easier, Faster, and More Powerful – Notes Document Properties Reimagined
Easier, Faster, and More Powerful – Notes Document Properties ReimaginedEasier, Faster, and More Powerful – Notes Document Properties Reimagined
Easier, Faster, and More Powerful – Notes Document Properties Reimagined
 
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
 
A Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System StrategyA Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System Strategy
 
Enterprise Knowledge Graphs - Data Summit 2024
Enterprise Knowledge Graphs - Data Summit 2024Enterprise Knowledge Graphs - Data Summit 2024
Enterprise Knowledge Graphs - Data Summit 2024
 
AI mind or machine power point presentation
AI mind or machine power point presentationAI mind or machine power point presentation
AI mind or machine power point presentation
 
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
 
Designing for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at ComcastDesigning for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at Comcast
 

Vlan

  • 1. VLAN 1 VLAN Configuration The network lab has two Catalyst 2950T24 switches, with names Maryland and California, and one Catalyst 2950G Switch with name Virginia. - References: http://www.cisco.com/en/US/products/hw/switches/ps4916/pro ducts_configuration_guide_chapter09186a008017e532.html − The two Catalyst 2950T24’s in the network lab, each has 24 10/100 Base T ports, and two 10/100/1000 Base T ports i.e., gi0/1 and gi0/2. − For Catalyst 2950G (i.e, Virginia), the two 10/100/1000 Base T ports are currently not installed − The 24 10/100 Base T ports are: fa0/1, fa0/1,fa0/2, … fa0/24 − Two 10/100/1000 Base T ports are: gi0/1 and gi0/2 Jan. 26,2010 1
  • 2. VLAN 2 ♦ All the Cisco switches has two operational modes − User Exec Mode : When a user first establishes the connection with the switch, and enter the password, the switch is in ‘User EXEC Mode’, and the prompt is ‘>’. − Privileged Mode: when user enter the command ‘enable’ and supply the password, it enters the privileged mode, and the prompt is ‘#’ − Only in privileged mode, a user can enter configuration mode; to enter configuration mode, user must enter the command ‘config t’ ♦ Configuration commands − The following configuration commands explains how to define a vlan name, assigning a static-access ports to a VLAN, or deleting a VLAN. − A VLAN port can be either in permanent trunk mode, or in non-trunking mode as access Jan. 26,2010 2
  • 3. VLAN 3 Configure Privileged Mode User Mode enable Mode Config t Router(config)# Router> Router# end disable end Ctrl-Z interface Router(config-if) router Router(config-router) Jan. 26,2010 3
  • 4. VLAN 4 ♦ What is a Trunk? • A Trunk is a point-to-point link that transmit and receive traffic between switches or switch and routers. • Trunks carry the traffic of multiple VLANs and can extend VLANs across an entire network I.Define VLAN name step command purpose 1 Config t Enter global configuration mode 2 Vlan vlan-id Enter a VLAN ID 3 Name vlan-name Enter a name for the VLAN 4 end Return to privileged mode 5 Show vlan {name | id vlan-id } Verify your entries 6 copy running-cnofig startup- Save the configuration in the switch config or wr mem configuration file Jan. 26,2010 4
  • 5. VLAN 5 II.Insert interface ports to VLAN Step Command Purpose 1 Config terminal Enter global configuration mode 2 Inter interface-id Enter the interface to be added to the VLAN 3 Switchport mode access Define the VLAN membership mode for the port 4 Switchport access vlan Assign the port to a VLAN Vlan-id 5 end Return to privileged EXEC mode 6 Show config or running-config Verify the VLAN membership mode of interf interface-id the interface 7 Sh interf interface-id switchport Verify your entries in the Administrative mode and the access mode VLAN field 8 Copy running-config startup- Save your entires in the configuration config file Or wr mem III.Deleting a VLAN step command purpose 1 Config t Enter global configuration mode 2 No vlan vlan-id Remove the VLAN by entering the VLAN-ID 3 end Return to privileged mode 4 Sh vlan brief Verify the VLAN removed 5 copy running-config startu-config Save the configuration in the switch or wr mem startup configuration file Jan. 26,2010 5
  • 6. VLAN 6 ♦ The 26 interface ports of Catalyst 2950 T24 are: • Interface fa0/i, where i= 1. 24 are the 24 10/100 Base T ports • Interface gi0/1 or 0/2 are the two 10/100/1000 Base T ports ♦ The 24 ports of Catalyst 2950G Switch are: • Interface fa0/i, where i= 1. 24 ♦ Switchport mode access – interface is put into permanent nontrunking mode ♦ Switchport mode trunk - interface into permanent trunking mode Jan. 26,2010 6
  • 7. VLAN 7 Examples of VLAN configuration California#sh vtp status /* show the vtp status */ California#sh vlan /*to show all the vlans configured */ California#config t /* this command cause the switch to enter configuration mode, when all configuration is completed, enter either Ctrl^z or end to return to privileged EXEC mode */ California(config)#vlan 10 name vlan10 /* defines name of vlan 10 as vlan10 California(config)#int fa0/1 California(config)#switchport mode access California(config)#switchport access vlan 10 /* set port fa0/1 into vlan 10 */ California(config)#int fa0/2 California(config)#switchport mode access California(config)#switchport access vlan 10 California(config)#int fa0/3 California(config)#switchport mode access California(config)#switchport access vlan 10 /* at this point, vlan 10 has 3 members i.e., fa0/1, fa0/2 and fa0/3 */ California(config)#vlan 20 name vlan20 California(config)#int fa0/5 California(config)#switchport mode access California(config)#switchport access vlan 20 California(config)#int fa0/6 California(config)#switchport mode access California(config)#switchport access vlan 20 California(config)#int fa0/7 California(config)#switchport mode access California(config)#switchport access vlan 20 Jan. 26,2010 7
  • 8. VLAN 8 California(config)#int fa0/8 California(config)#switchport mode access California(config)#ctrl-Z California# /*return to privileged mode */ /* At this poing vlan 20 has 4 members i.e., fa0/5, fa0/6, fa0/7 and fa0/8 */ California(config)#int gi0/2 California(config)# switchport mode trunk /* this will put the port gi0/2 to be in permanent trunking mode */ California(config)#switchport access vlan 40 /* put int gi0/2 into vlan 40 */ California(config)#switchport access vlan 20 California(config)#end or ctrl-Z /* return to privileged mode */ California#wr mem or copy running-config strtup-config Jan. 26,2010 8