vlan dot1q configuration on cisco

lemaitre75
lemaitre75 used Ask the Experts™
on
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
 


Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Sr. Systems Engineer
Top Expert 2008
Commented:
Nope. Each sub-interface must have its own IP subnet address or there is no routing between subnets.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial