cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
860
Views
0
Helpful
2
Replies

Inter VLAN routing using subinterface or VLAN interface

Peyman Sadeghi
Level 1
Level 1

Hello All,

It seems that there are two methods in Cisco ASA to do the interVLAN routing as below:

1- 

Interface Gi 0/0 

switport mode truck

switchport allowed vlan 1,2

 

int vlan 1

ip address 1.1.1.1 255.255.255.0

no shut

 

Int vlan 2

ip address 2.2.2.2 255.255.255.0

no shut

 

2-

Interface Gi 0/0 

no ip 

no shut

 

int Gi 0/0.1

vlan 1

ip address 1.1.1.1 255.255.255.0

no shut

 

int Gi 0/0.2

vlan 2

ip address 2.2.2.2 255.255.255.0

no shut

 

Are these methods provide the same functionality/result? Which one is better and why? I want to implement an inter-vlan routing on 9.2.3.

Thanks,

    1 Accepted Solution

    Accepted Solutions

    Jon Marshall
    Hall of Fame
    Hall of Fame

    As far as I am aware the use of vlan interfaces is only for the ASA 5505.

    Any other model of ASA uses subinterfaces and a trunk connection.

    So it depends on your model as to which you use.

    Jon

    View solution in original post

    2 Replies 2

    Jon Marshall
    Hall of Fame
    Hall of Fame

    As far as I am aware the use of vlan interfaces is only for the ASA 5505.

    Any other model of ASA uses subinterfaces and a trunk connection.

    So it depends on your model as to which you use.

    Jon

    Peyman Sadeghi
    Level 1
    Level 1

    Thanks Jon yes you are right.

     

    Review Cisco Networking for a $25 gift card