vlan dot1q configuration on cisco

Hello,
i have the following configuration on a cisco router and it works. Our QoS policy was based on ip addresses.

interface FastEthernet0/0
 no ip address
 speed 100
 full-duplex
!        
interface FastEthernet0/0.1
 description DreamNet Vlan 1
 encapsulation dot1Q 1 native
 ip address X.X.X.X 255.255.255.0
!        
interface FastEthernet0/0.2
 description DreamNet Vlan 2
 encapsulation dot1Q 2
 ip address Y.Y.Y.Y 255.255.255.0
!        
interface FastEthernet0/0.3
 description DreamNet Vlan 3
 encapsulation dot1Q 3
 ip address Z.Z.Z.Z 255.255.255.0


Now we are changing our QoS policy on vlan id, so all users from all vlans will use the same ip addresses and we'll only control trafic based on vlan id. So i was wondering if the following configuration will work ?

interface FastEthernet0/0
 ip address X.X.X.X 255.255.255.0
 ip address Y.Y.Y.Y 255.255.255.0 secondary
 ip address Z.Z.Z.Z 255.255.255.0 secondary
 speed 100
 full-duplex
!        
interface FastEthernet0/0.1
 description DreamNet Vlan 1
 encapsulation dot1Q 1 native
 
!        
interface FastEthernet0/0.2
 description DreamNet Vlan 2
 encapsulation dot1Q 2
 
!        
interface FastEthernet0/0.3
 description DreamNet Vlan 3
 encapsulation dot1Q 3
 


lemaitre75Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
lrmooreConnect With a Mentor Commented:
Nope. Each sub-interface must have its own IP subnet address or there is no routing between subnets.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.