Pages

Congfiguring VLANs

To configure VLAN we will use the following topology
Topology overview: Laptop_1, Laptop_2, Laptop_3 and Laptop_4 are connected to Switch_1 on port f0/6, f0/7, f0/8 and f0/9 respectively.
f0/5 on Switch_1 which is connected to Switch_2 on f0/13 would be the trunk port.
Laptop_5, Laptop_6, Laptop_7 and Laptop_8 are connected to Switch_2 on port f0/9, f0/10, f0/11 and f0/12 respectively.





These are the commands to configure VLAN for Switch_1

  
Switch>enable
Switch#configure terminal
Switch(config)#hostname Switch_1
Switch_1(config)#vlan 20
Switch_1(config-vlan)#do show vlan
 
Switch_1(config-vlan)#name IT
Switch_1(config-vlan)#do show vlan

Switch_1(config-vlan)#exit
Switch_1(config)#vlan 30
Switch_1(config-vlan)#name HR
Switch_1(config-vlan)#do show vlan

Switch_1(config-vlan)#exit
Switch_1(config)#interface fastEthernet 0/6
Switch_1(config-if)#switchport mode ?

Switch_1(config-if)#switchport mode access
Switch_1(config-if)#switchport access vlan 20
Switch_1(config-if)#exit
Switch_1(config)#interface fastEthernet 0/7
Switch_1(config-if)#switchport mode access
Switch_1(config-if)#switchport access vlan 20
Switch_1(config-if)#interface fastEthernet 0/8
Switch_1(config-if)#switchport mode access
Switch_1(config-if)#switchport access vlan 30
Switch_1(config-if)#interface fastEthernet 0/9
Switch_1(config-if)#switchport mode access
Switch_1(config-if)#switchport access vlan 30
Switch_1(config-if)#do show vlan

Switch_1(config-if)#end
Switch_1#show interfaces trunk
Switch_1#configure terminal
Switch_1(config)#interface fastEthernet 0/5
Switch_1(config-if)#switchport mode trunk
Switch_1(config-if)#end
Switch_1#show interface trunk






These are the commands to configure VLAN for Switch_2

Switch_2(config)#configure terminal
Switch_2(config)#vlan 20

Switch_2(config-vlan)#name IT 
Switch_2(config-vlan)#exit 
Switch_2(config)#vlan 30 
Switch_2(config-vlan)#name HR 
Switch_2(config-vlan)#exit 
Switch_2(config)#interface fastethernet 0/9 
Switch_2(config-if)#switchport mode access 
Switch_2(config-if)#switchport acces
Switch_2(config-if)#switchport access vlan 20 

Switch_2(config-if)#interface fastethernet 0/10 
Switch_2(config-if)#switchport mode access 
Switch_2(config-if)#switchport access vlan 20 
Switch_2(config-if)#interface fastethernet 0/11
Switch_2(config-if)#switchport mode access 

Switch_2(config-if)#switchport access vlan 30 
Switch_2(config-if)#interface fastethernet 0/12 
Switch_2(config-if)#switchport mode access 
Switch_2(config-if)#switchport access vlan 30 
Switch_2(config-if)#interface fastethernet 0/13
Switch_2(config-if)#switchport mode trunk
Switch_2(config-if)#do show vlan


Final output : after configuring both switches provide IP addresses to all laptops as shown in the topology. and you should be able to ping into same VLAN. you shouldn't be able to ping between VLANs because we havn't yet configured inter vlan routing.

14 comments:

  1. I recently found many useful information in your website especially this blog page. Among the lots of comments on your articles. Thanks for sharing.
    www.oceanictuna.co.uk |

    ReplyDelete
  2. It is very helpful for all the people on the web.I wanted to say that it's nice to know that someone else also mentioned this as I had trouble finding the same info elsewhere.
    jerryallentraveljets |

    ReplyDelete
  3. It was a positive conversation and each day since then he has made an effort to come and speak to her about his success of the day. 
    www.wizzjobs.biz |

    ReplyDelete
  4. You have done a great job. I will definitely dig it and personally recommend to my friends. I am confident they will be benefited from this site. 
    hometownpenske.com |

    ReplyDelete
  5. I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business. 
    loire-forez-tourism |

    ReplyDelete
  6. Hey there thanks for showing me this. I must say that your blogpost was the most enjoying read I've seen in a long time. Greetings from personal trainer berlin
    pizzabootcamp |

    ReplyDelete
  7. Hello, i am glad to read the whole content of this blog and am very excited and happy to say that the webmaster has done a very good job here to put all the information content and information at one place.
    http://www.wirelessronin.net |

    ReplyDelete
  8. They are now so popular. I am now bookmarked to this site. I am happy to be one of their community.
    businesssosbook |

    ReplyDelete
  9. I have to do a report for our school magazine on this topic, and your blog has been beneficial. Can you please add more reference to this point, thanks
    premfood24 |

    ReplyDelete
  10. I really loved reading your blog. It was very well authored and easy to understand. Unlike additional blogs I have read which are really not tht good. I also found your posts very interesting. In fact after reading, I had to go show it to my friend and he enjoyed it as well
    Business Jet People |

    ReplyDelete
  11. I research and encounter at home. Thanks the developers for a amazing resource..!
    keepyourprofit.com |

    ReplyDelete
  12. Hey there! This is my first visit to your blog! We are a collection of volunteers and starting a new project in a community in the same niche. Your blog provided us useful information to work on. You have done a extraordinary job!
    thesmartechs |

    ReplyDelete

Note:- Comment as: Option available to post without login select "Anonymous" from the drop down...........