Link to home
Start Free TrialLog in
Avatar of tjie
tjieFlag for United States of America

asked on

Cisco: Virtual LAN

Hi,

1) This is related to Virtual LAN (VLAN); I am still confused with it! (I need the 2nd opinion or confirmation from experts)
2) Please see the Diagram # 1
3) From Router "R1" and Switch "SW2", i created 2 virtual lans (VLAN 10 and VLAN 20); here are the configuration:
- I herewith do not present the configuration at Layer 3 (At Router "R1"); i just gave the configuration at the switches (layer 2)
- I configure the "Trunk" at the SW2 (at the port #1 which is "fa0/1")
- The Trunk Configuration is as the followings:
   *SW2>enable
   *SW2#config t
   *SW2(config)#int fa0/1
   *SW2(config-if)#switchport trunk encap dot1q
   *SW2(config-if)#switchport mode trunk
   *SW2(config-if)#exit
4) I configure the VLAN 10 at the Port#5 of SW2; the configuration is as the followings:
   * SW2(config)#int fa0/5
   * SW2(config-if)#switchport mode access
   * SW2(config-if)#switchport access VLAN 10
   * SW2(Config-if)#exit
5) I connect a "cross-over cable" from SW2 (at Port # 5 or fa0/5) to SW3 (at the port #1 or fa0/1)
6) I configure VLAN 20 at the Port#8 of SW2; the configuration is as the followings:
   * SW2(config)#int fa0/8
   * SW2(config-if)#switchport mode access
   * SW2(config-if)#switchport access VLAN 20
   * SW2(config-if)#exit
7) I connect a "cross-over cable" from SW2 (at port#8 or fa0/8) to SW4 (at the port #4 or fa0/4)
8) My Questions:
First: Per my understanding, all the PORTS at SW3 should be at VLAN 10 now; is it right? Please Confirm
Second: Per my understanding, all the PORTS at SW4 should be at VLAN 20 now; is it right?
Third: (If the answer of 2nd question is "Yes"),  It is related to SW4; is it OK if i connect "the cross-over" cable to the Port#4 at SW4 (NOT port #1 or fa0/1) to carry the VLAN 20 through all the SW4
9) Thank you

tjie
 
Diagram---1001.jpg
Avatar of kupiszew
kupiszew
Flag of United States of America image

By default - all ports are in VLAN 1 - default VLAN

If you place the ports you want in the appropriate vlan all should work out... you have access ports and trunk ports - put the access ports in the appropriate vlan and you should be goood.
Avatar of tjie

ASKER

Kupiszew,

1) Would you answer my 3 questions above please (or just confirm that it is correct or no per your experience)
2) Thank you

tjie
SOLUTION
Avatar of hossam82
hossam82

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Also - some good information here:

http://learningnetwork.cisco.com/thread/13485

ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tjie

ASKER

1)With do respect to all above experts ....
2) Yes, I just need the answer as specified by djcapone ....(The inclination is there; not a perfect configuration ....)
3) The things that i need is the Confirmation from the experts; it seems hossam and djcapone confirm it to me (of course with the boundary mentioned by djcapone)
4) I agree with Kup and Mag for the better configuration
5) Please add any other things necessary (if you wish and i will close this discussion soon.
6) Thank you very much

tjie
I believe if it is working, you are fine.  If it is not, we need more detail of the router and SW3 & SW4 configurations.

SW3 & 4 if they have not been modified VLAN wise, would "technically" just be in the default VLAN = 1.  So, no they are not "technically" in VLAN10 (or 20 for SW4) just b/c you connect one port with those VLANs to them.  However, as far as SW2 is concerned if traffic is coming into fa0/5 it is VLAN 10 traffic and likewise traffic coming into fa0/8 will be forwarded over the trunk as VLAN 20 traffic.  So, I guess the answer to questions 1&2 depend on where you are sitting - if you are on SW2 or Router - YES - if you are on SW3 or SW4 - depends on what you configured each port for.

No, it will not matter fa0/1 vs. fa0/4 - all else being equal ... nothing "special" about fa0/1

Sorry if I added confusion.  I think what you have will work, although it would not be the recommended configuration (as mentioned previously and repeatedly) -

Happy configuring and post if you have any more questions or if you have issues.
Avatar of ryan80
ryan80

By default untagged traffic will be treated as vlan 1. Traffic coming over an access port will be untagged so it will be treated as vlan 1 on the receiving side.

Basically what this means for your configuration is that it should work as you have it configured. For your questions the answer to the first 2 is partially yes. The answer to the third question is yes, it doesn't matter what port.

The traffic from vlan 10 on sw2 will be transmitted across all the port on sw3. However if you look on sw3 you will see that all the ports are assigned to vlan1. It is treating the traffic from sw2 as being on vlan 1.

The same thing will be true for sw4 except it will be traffic for vlan 20.

What you should do is configure the ports between the switches to be trunk ports. Then make all the ports on sw3 and 4 to be access ports for the respective vlans. Using trunk ports will also allow things like Stp and vtp. Plus it will be easier to manage.