routers virtual interface and vlans

Status
Not open for further replies.

julian403

Full Member level 5
Joined
Feb 28, 2014
Messages
254
Helped
1
Reputation
2
Reaction score
1
Trophy points
18
Location
Argentina
Activity points
2,105
Hello All.

In Cisco, if I want to create a virtual interface in a router for inter VLAN routing. How I associate it to a physic port? Looking for some example on the internet I found.

Code:
conf t
interface g0/1
no ip address

!

interface g0/1.1
encapsulation dot1q 1
ip address 1.1.1.1 255.255.255.0

!

interface g0/1.2
encapsulation dot1q 2
ip address 2.2.2.2 255.255.255.0

If the virtual interface is interface g0/1.2 it-s means that is link with the physic port Gi0/1? And for example if it would be g0/0.2 that would means that it-s link the Gi0/0_
 

That is correct.

g0/1.1 is a subinterface of g0/1
g0/1.2 is a subinterface of g0/1

Each has been given a different vlan definition (dot1q) so if you have an existing vlan schema you would probably want to use that instead.
 
Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…