WHAT IS ACCESS AND TRUNK PORT

 WHAT IS ACCESS PORT AND TRUNK PORT :

Switch ports are Layer 2 connection points that are utilized to convey layer 2 traffic. A solitary switch port can convey single VLAN traffic whether it is an entrance port or trunk port. Outlines are dealt with contrastingly as per the kind of connection they are crossing.


Note: All switch ports are doled out VLAN 1 naturally (VLAN 1 can't be altered or erased).


There are 2 distinct kinds of ports in an exchanged climate:


Access ports -

These switch ports have a place with convey the traffic of just a single VLAN. Of course, it will convey the traffic of local VLAN (VLAN 1) . In the event that the switch ports are relegated as access ports, they can be considered as the switch ports has a place with a solitary transmission space. Any traffic showing up on these switch ports is considered as it has a place with the VLAN doled out to the port.

Model:


Here is a straightforward geography where 2 switches are associated and just the default VLAN (VLAN 1)is designed on the two switches i.e all the switch ports of the two switches have a place with a solitary transmission space.


Presently, note that the connection between the switches must be designed as an entrance port in light of the fact that main a solitary VLAN (VLAN 1) information must be traded. Presently subsequent to doling out an IP address to PC1-192.168.1.1/24, PC2-192.168.1.2/24, PC3-192.168.1.3/24, PC3-192.168.1.4/24, the client will design the connection between the 2 switches as an entrance port.


Switch1(config)#interface fa0/0

Switch1(config-if)#switchport mode access

Here, there is compelling reason need to appoint VLAN to the ports as all the switch ports on the two switches are arranged as VLAN 1 as a matter of course.


Trunk ports -

These switch ports have a place with and convey the traffic of more than one VLAN. This is an incredible benefit as to convey the traffic of a gathering of VLAN, a solitary switch port can be utilized. These are of extraordinary use if the client has any desire to trade traffic between more than one switch having more than one VLAN arranged. To recognize traffic has a place with VLAN, the VLAN distinguishing proof technique (802.1q or ISL) is utilized. Likewise, to convey traffic between more than one VLAN, then, at that point, bury VLAN steering is expected, in which the connection among switch and switch is designed as trunk as the connection needs to convey the traffic of more than one VLAN (in the event of a switch on a stick setup not in entomb VLAN directing by layer 3 switches).


Note: Trunk connections can convey the traffic of various VLANs across them yet naturally, in the event that the connections between changes are not trunk then just data from the designed admittance VLAN will be traded.


Model:


Here is a straightforward geography where 2 switches are associated and VLANs 2 and 3 are designed on the two switches as displayed.


Note -

A client has not doled out any VLANs to different ports of switches, thusly, different ports will be in VLAN 1 naturally.

Presently, note that the connection between the switches must be designed as a trunk port since here more than one VLAN (VLAN 1, 2, 3) outline must be traded between the switches. Presently allotting IP address to PC1-12.168.1.1/24, PC2-192.168.2.1/24, PC3-192.168.1.2/24, PC3-192.168.2.2/24.


Presently, the primary client needs to make VLANs on the two switches.


Switch1(config)#vlan 2

Switch1(config)#vlan 3


Switch2(config)#vlan 2

Switch2(config)#vlan 3

Presently, a client has more than one VLAN designed on the two switches. Accordingly, clients need to allot the VLANs to their particular ports on Switch1.


Switch1(config)#interface fa0/1

Switch1(config-if)#switchport access vlan 2

Switch1(config)#interface fa0/2

Switch1(config-if)#switchport access vlan 3

Presently, arrange VLANs on their separate ports on Switch2.


Switch2(config-if)#interface fa0/1

Switch2(config-if)#switchport access vlan 2

Switch2(config)#interface fa0/2

Switch2(config-if)#switchport access vlan 3

Presently, design the connection between 2 switches as a trunk port.


Switch1#interface fa0/0

Switch1#switchport trunk epitome dot1q

Switch1#switchport mode trunk

Thus, presently the client can convey more than one VLAN traffic starting with one switch then onto the next switch (here, just setup of switch ports are shown not the arrangement of the switch is shown. To perform entomb VLAN steering, a design of the switch is likewise required).












Post a Comment

Previous Post Next Post