CCNA – Switching example – Inter VLAN routing

EXAMPLE 2 – Inter-VLAN ROUTING

  1. Topology

  1. Required:

    We now have a router and we allow all PCs (different VLANs) can contact each other

    Then configure Router to assign IP for phone

  2. Implement: Step 1 – Need to finish all steps on Example 1

         Step 2 – Configure trunk link between Router and Switch 2 (Done require 1)

Switch 2

Description

S2 (config)# interface fastEthernet 0/2

S2 (config-if)#switchport mode trunk

S2 (config-if)#switchport trunk allowed vlan 1-99

Router

Description

Router(config)#interface fastEthernet 0/0.1

Router(config-subif)#encapsulation dot1Q 1

Router(config-subif)#ip address 192.168.1.1 255.255.255.0

Router(config-subif)#interface fastEthernet 0/0.50

Router(config-subif)#encapsulation dot1Q 50

Router(config-subif)#ip address 192.168.50.1 255.255.255.0

Router(config-subif)#interface fastEthernet 0/0.99

Router(config-subif)#encapsulation dot1Q 99

Router(config-subif)#ip address 192.168.99.1 255.255.255.0

Router(config-subif)#interface fastEthernet 0/0.60

Router(config-subif)#encapsulation dot1Q 60

Router(config-subif)#ip address 192.168.60.1 255.255.255.0

Create sub interface (for vlan 1)

Encapsulation dot1Q for vlan 1

Create sub interface (for vlan 50)

Encapsulation dot1Q for vlan 50

Create sub interface (for vlan 99)

Encapsulation dot1Q for vlan 99

Create sub interface (for vlan 60)

Encapsulation dot1Q for vlan 60

About Terri

System Administrator @Netpower Datacenter

Posted on 24.03.2015, in Basic & Networking, Technical Articles and tagged , . Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: