Cisco: Setting a VLAN across a network

20 pts.
Tags:
Cisco 1841
Cisco 2620
Cisco router configuration
Cisco Routers
Cisco VLAN
Network administration
Packet Tracer
Router configuration
Routers
VLAN configuration
hi,newbie here :) I am working on Packet Tracer 5.0 and I want to setup 2 vlan's that spread across a network. I attach the view of the network: Network View 2 of 3 hosts on switch 1 belong in vlan10 and the other one belongs to vlan20. Likewise, 2 of 3 hosts on switch 2 belong to vlan10 and the other one belongs to vlan20. I have already set up trunk ports / interfaces on the switches/routers. Questions : How is it possible for hosts located in different switches to belong to the same vlan's? What protocol(s) are needed to support this function ?? What further settings do i need to apply to the switches/routers ?? Thank you, sorry for my english :)

Answer Wiki

Thanks. We'll let you know when a new response is added.

Basically as per your network topology & your point of thinking, first you have to make communication between router to switch means inter-vlan communication through encapsulation trunking on the router as well as on switch. On most of the cisco devices, dot1q encapsulation trunking is there, but you have to configure manually on the router. If by default dotq encapsulation trunking is not there then you can use isl encapsulation trunking on the same.

On Router :
For vlan 10

Router(config)#int fa0/0.10
Router(config-if)# switchport mode trunk
Router(config-if)#encapsulation trunk dot1q 10
Rouetr(config-if)# ^Z

For vlan 20

Router(config)#int fa0/0.20
Router(config-if)# switchport mode trunk
Router(config-if)#encapsulation trunk dot1q 20
Rouetr(config-if)# ^Z

On Switch :
For vlan 10 on any port wherever you want to patch a port on particular vlan.

Switch1(config)#int fa0/2
Switch1(config-if)#switchport mode access
Switch1(config-if)#switchport access vlan 10

For vlan 20 on any port wherever you want to patch a port on particular vlan.

Switch1(config)#int fa0/3
Switch1(config-if)#switchport mode access
Switch1(config-if)#switchport access vlan 20

But you can assign a single port in a single vlan means you can’t take any port in multiple vlan at a time. You can change vlan of the particular port.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Jfernatt
    There are actually several ways that you can do this but in my opinion the easiest is an L2TP tunnel. Basically you would configure the interfaces connected to the switches as subinterfaces (so you can route traffic AND have an xconnect interface) and configure the tunnel between R2 and R3. Here is the L2TPv3 Chapter of the WAN Configuration Guide http://www.cisco.com/en/US/docs/ios/wan/configuration/guide/wan_l2_tun_pro_v3_ps6350_TSD_Products_Configuration_Guide_Chapter.html#wp1051352 If you would like more detailed help or a working configuration example, just ask. Good Luck
    605 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following