Config Register is 0x4a6f6469

January 4, 2007

VLAN-Trunking

As mention before, Trunk is a physical connection containing logical connection to connected VLANs. How many logical connection can be made inside the Trunk is depend on how many VLAN used.

In this topic, I will talk about how to setup VLAN-Trunking. This topology made possible for different VLANs connected each other. Router is needed, because communication between VLANs are based on network layer using IP address. We can say that router act as a gateway for each VLANs.

That is the main different with previous topology, VLAN-Switch and VLAN-Switches, those are based on data link layer using MAC Address

Click VLAN-Trunking.jpg to see image

scenario:

Switch-A has VLAN 10 on port e0/1, and VLAN 20 on port e0/2. Fa0/27 (fast ethernet port) is connected to access point. Fa0/26 made a trunk connection to Fa0/26 switch-B.

Switch-B has VLAN 10 on port e0/1, and VLAN 20 on port e0/2. Fa0/27 made a trunk connection to Fa0/0 on router.

 

console:

switch-A:

switch> enable

switch# conf t

switch(config)# hostname switch-A

switch-A(config)# enable password level 15 cisco

switch-A(config)# ip address 192.168.1.11 255.255.255.0

switch-A(config)# vlan 10 name Group-A

switch-A(config)# vlan 20 name Group-B

switch-A(config)# int fa0/26

switch-A(config-if)# trunk on

switch-A(config-if)# exit

switch-A(config)# int e0/1

switch-A(config-if)# vlan-membership static 10

switch-A(config-if)# exit

switch-A(config)# int e0/2

switch-A(config-if)# vlan-membership static 20

 

switch-B:

switch> enable

switch# conf t

switch(config)# hostname switch-B

switch-B(config)# enable password level 15 cisco

switch-B(config)# ip address 192.168.1.12 255.255.255.0

switch-B(config)# vlan 10 name Group-A

switch-B(config)# vlan 20 name Group-B

switch-B(config)# int fa0/26

switch-B(config-if)# trunk on

switch-B(config-if)# exit

switch-B(config)# int fa0/27

switch-B(config-if)# trunk on

switch-B(config-if)# exit

switch-B(config)# int e0/1

switch-B(config-if)# vlan-membership static 10

switch-B(config-if)# exit

switch-B(config)# int e0/2

switch-B(config-if)# vlan-membership static 20

 

Router:

router> enable

router# conf t

router(config)# hostname Router

Router(config)# enable secret cisco

Router(config)# line vty 0 4

Router(config-line)# password cisco

Router(config-line)# login

Router(config-line)# exit

Router(config)# int fa0/0

Router(config-if)# no shut

Router(config-if)# int fa0/0.1

Router(config-subif)# encapsulation isl 1

Router(config-subif)# ip address 192.168.1.13 255.255.255.0

Router(config-subif)# description Gateway-VLAN1

Router(config-subif)# exit

Router(config-if)# int fa0/0.10

Router(config-subif)# encapsulation isl 10

Router(config-subif)# ip address 10.1.1.101 255.255.255.0

Router(config-subif)# description Gateway-VLAN10

Router(config-subif)# exit

Router(config-if)# int fa0/0.20

Router(config-subif)# encapsulation isl 20

Router(config-subif)# ip address 172.17.1.101 255.255.255.0

Router(config-subif)# description Gateway-VLAN2

 

Comments »

The URI to TrackBack this entry is: http://jodi.blogsome.com/2007/01/04/vlan-trunking/trackback/

No comments yet.

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>



Anti-spam measure: please retype the above text into the box provided.






















Get free blog up and running in minutes with Blogsome
Theme designed by Minz Meyer