Archive for the Router-on-A-Stick Category

Router-on-A-Stick (Inter VLAN Routing)

Posted in Router-on-A-Stick on March 18, 2008 by itdaddy

roscomplex.jpg 

 www.palaestratraining.com

This CBT company seems good. I watch one video off of YouTube. Attached here is a video that describes ROS. Watch and learn. And then check out this site and let me know what you think? I have used CBT Nuggets and Bryant Advantage but I am always looking for better CBT courses. Most better explained.

Double Click video and go to YouTube website so you can enlarge the screen to FULL. It is much easier to watch video in Full Screen mode.

 

1.      PC Configuration (TCP/IP Settings)

 

HOST A

 

IP: 192.168.3.5

SM: 255.255.255.0

DG: 192.168.3.1

Vlan: 3

 

HOST B

 

IP: 192.168.2.5

SM: 255.255.255.0

DG: 192.168.2.1

Vlan: 2

 

HOST C

 

IP: 192.168.3.10

SM: 255.255.255.0

DG: 192.168.3.1

Vlan: 3

 

HOST D

 

IP: 192.168.4.5

SM: 255.255.255.0

DG: 192.168.4.1

Vlan: 4

 

HOST E

 

IP: 192.168.2.10

SM: 255.255.255.0

DG: 192.168.2.1

Vlan: 2

 

 

2.      Router Configuration

 

On a FastEthernet interface create 3 subifs (sub-interfaces)

that match up with each vlan #

 

interface fastethernet0
no ip address

interface FastEthernet 0.20
ip address 192.168.2.1 255.255.255.0
encapsulation Dot1q 2

interface FastEthernet 0.30
ip address 192.168.3.1 255.255.255.0
encapsulation Dot1q 3

interface FastEthernet 0.40
ip address 192.168.4.1 255.255.255.0
encapsulation Dot1q 4

 

3.      Switch Configuration

 

The port on the switch that will be connected to the router’s FastEthernet port must be in trunking mode, and you must know the trunking protocol in use that will be Dot1q. The Cat 2950 doesn’t support ISL trunking it only supports Dot1q. Set “encap Dot1q”on the switch fa0/0 interface.

 

SW2>en

SW2#conf t

Enter configuration commands, one per line.  End with CNTL/Z

SW2(config)#int fa0/12

SW2(config-if)#switchport mode trunk

 

Vlan config:

 

Assign each PC into its own VLAN

 

  1. create vlans on each Switch like this.

       SW3#vlan database

       SW3(vlan)#vlan 2

                           vlan 3

                           vlan 4

Note: Assign vlan # to the proper vlan like this. For example, if you hav 192.168.2.5 on a PC and the FastEthernet port is connected, that fa0/x port belongs to Vlan 2 because of the 2 in the 3rd octet. The same goes for all the rest.

  1. Assign Fa0/x to a vlan

 

SW3>

SW3>en

SW3#conf t

SW3(config)#int fa0/7

SW3(config-if)#switchport mode access

SW3(config-if)#switchport access vlan 4

SW3(config-if)#

 

Note: You could setup VTP server/client and do  it that way. But I left them all VTP Server mode for simplification to focus on inter vlan router setup.

 

 

  1. Test ROS

 

Ping from one PC all the IP addresses on the network. If you can do this, the ROS config setup is done correctly. Again, if you can ping each subnet from one PC and its subnet respectively, then what you did is correct.

 

So from host A 192.168.3.5 if you can ping all the ip addresses on the network, you have setup ROS correctly. Good Job! This is inter vlan ROS configuring!

 

 

Done!

 

The Bryant Advantage Example of ROS really nice too! Great Cisco Instructor Classess!