Pages

Inter Vlan Routing

Router on a stick

Now we will configure inter-vlan routing for which we will use our previous topology.
previous topology - http://www.ittables.com/2013/02/congfiguring-vlans.html
i have added one router into this topology to configure Router on a stick.
router's f0/0 is connected to Switch_1 on f0/20.


Commands to configure router for inter-vlan routing.


Router>enable




Router#configure terminal

Router(config)#interface fastethernet 0/0

Router(config-if)#no shutdown

Router(config-if)#exit

Router(config)#interface fastethernet 0/0.20

Router(config-subif)#encapsulation dot1Q 20

Router(config-subif)#ip address 192.168.20.100 255.255.255.0

Router(config-subif)#exit

Router(config)#interface fastethernet 0/0.30

Router(config-subif)#encapsulation dot1Q 30

Router(config-subif)#ip address 192.168.30.100 255.255.255.0

Router(config-subif)#end

Router#show ip interface brief



Commands to configure Switch_1


Switch_1>enable

Switch_1#configure terminal

Switch_1(config)#interface fastethernet 0/20

Switch_1(config-if)#switchport mode trunk

Switch_1(config-if)#end

Switch_1#

Switch_1#show interfaces trunk

That's all, now you just have to assign default gateway to each computer.
If the computer is in VLAN 20 then default gateway should be 192.168.20.100.
and If the computer is in VLAN 30 then default gateway should be 192.168.30.100.
after this all computers should be able to ping each other.

14 comments:

  1. I'm impressed, I must say. Very rarely do I come across a blog that's both informative and entertaining, and let me tell you, you've hit the nail on the head. Your blog is important; the issue is something that not enough people are talking intelligently about.
    http://www.gobzrk.org |

    ReplyDelete
  2. Its like you read my mind! You seem to know so much about this, like you wrote the book in it or something. I think that you could do with some pics to drive the message home a bit, but other than that, this is great blog. A great read.
    www.sportsaround.org |

    ReplyDelete
  3. This is a smart blog. I mean it. You have so much knowledge about this issue, and so much passion 
    luxuryhomestogo.com |

    ReplyDelete
  4. I like the way you described the topic with such clarity. Thanks for Describing Everything.
    borrisautoparts.com |

    ReplyDelete
  5. I like this post. It's quite unusual and innovative. Writer might be really gorgeous. Someone could easily claim that he is a genius. 
    http://www.hometownnationalwa.com |

    ReplyDelete
  6. Brillaint work with awesome events conducting. Happy to see your last event and appreciating audience.
    www.girlsky.net |

    ReplyDelete
  7. Generally I do not read article on blogs, but I wish to say that this write-up very compelled me to check out and do so! Your writing style has been amazed me. Thanks, very nice post.
    http://www.yourfaceis.com |

    ReplyDelete
  8. I might want to thank you for your elegantly composed substance, its helpful and your written work style helped me to peruse it without any trouble.
    mybusiness4home |

    ReplyDelete
  9. You may post on the professional credentials for the blog owner. You could express it's outstanding. Your blog experience can springboard your click through.
    weddingpicturesct.com |

    ReplyDelete
  10. These are things that you could not survive without. They include, of course, food, water and shelter. Even here, these should be at a minimum. Thanks.
    parkanimalfb |

    ReplyDelete
  11. Hi my loved one! I wish to say that this article is awesome, great written and include almost all significant infos. I would like to see more posts like this .
    greatbusinessforum.com |

    ReplyDelete

  12. شركة مكافحة حشرات الكويت شركة مكافحة حشرات الكويت
    نقل عفش مبارك الكبير نقل عفش مبارك الكبير
    نقل عفش مشرف نقل عفش مشرف
    نقل عفش الاحمدي نقل عفش الاحمدي

    ReplyDelete
  13. great site!!!
    http://mcafeeactivationkey.com

    ReplyDelete

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