21.03.2013 Views

Ethernet Switching on EX Series Switches - Juniper Networks

Ethernet Switching on EX Series Switches - Juniper Networks

Ethernet Switching on EX Series Switches - Juniper Networks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<str<strong>on</strong>g>Ethernet</str<strong>on</strong>g> <str<strong>on</strong>g>Switching</str<strong>on</strong>g> <strong>on</strong> <strong>EX</strong> <strong>Series</strong> <strong>Switches</strong><br />

Switch Interface Modes—Access, Trunk, or Tagged Access<br />

6<br />

Ports, or interfaces, <strong>on</strong> a switch operate in <strong>on</strong>e of three modes:<br />

• Access mode<br />

• Trunk mode<br />

• Tagged-access mode<br />

Access Mode<br />

An interface in access mode c<strong>on</strong>nects a switch to a single network device, such as a<br />

desktop computer, an IP teleph<strong>on</strong>e, a printer, a file server, or a security camera. By default,<br />

when you boot a switch and use the factory default c<strong>on</strong>figurati<strong>on</strong>, or when you boot the<br />

switch and do not explicitly c<strong>on</strong>figure a port mode, all interfaces <strong>on</strong> the switch are in<br />

access mode and accept <strong>on</strong>ly untagged packets from the VLAN named default. You can<br />

opti<strong>on</strong>ally c<strong>on</strong>figure another VLAN and use that instead of default. You can also c<strong>on</strong>figure<br />

a port to accept untagged packets from the user-c<strong>on</strong>figured VLAN. For details <strong>on</strong> this<br />

c<strong>on</strong>cept (native VLAN), see “Trunk Mode and Native VLAN” <strong>on</strong> page 6.<br />

Trunk Mode<br />

Trunk mode interfaces are generally used to c<strong>on</strong>nect switches to <strong>on</strong>e another. Traffic<br />

sent between switches can then c<strong>on</strong>sist of packets from multiple VLANs, with those<br />

packets multiplexed so that they can be sent over the same physical c<strong>on</strong>necti<strong>on</strong>. Trunk<br />

interfaces usually accept <strong>on</strong>ly tagged packets and use the VLAN ID tag to determine<br />

both the packets’ VLAN origin and VLAN destinati<strong>on</strong>. An untagged packet is not recognized<br />

<strong>on</strong> a trunk access port unless you c<strong>on</strong>figure additi<strong>on</strong>al settings <strong>on</strong> the port c<strong>on</strong>nected in<br />

access mode. In the rare case where you want untagged packets to be recognized <strong>on</strong> a<br />

trunk port, you must c<strong>on</strong>figure the single VLAN <strong>on</strong> the access port as native VLAN.<br />

Trunk Mode and Native VLAN<br />

With native VLAN c<strong>on</strong>figured, frames that do not carry VLAN tags are sent over the trunk<br />

interface. If you have a situati<strong>on</strong> where packets pass from a device to a switch in access<br />

mode, and you want to then send those packets from the switch over a trunk port, use<br />

native VLAN mode. C<strong>on</strong>figure the single VLAN <strong>on</strong> the switch’s port (which is in access<br />

mode) as a native VLAN. The switch’s trunk port will then treat those frames differently<br />

than the other tagged packets. For example, if a trunk port has three VLANs, 10, 20, and<br />

30, assigned to it with VLAN 10 being the native VLAN, frames <strong>on</strong> VLAN 10 that leave the<br />

trunk port <strong>on</strong> the other end have no 802.1Q header (tag).<br />

There is another native VLAN opti<strong>on</strong>. You can have the switch add and remove tags for<br />

untagged packets. To do this, you first c<strong>on</strong>figure the single VLAN as a native VLAN <strong>on</strong> a<br />

port attached to a device <strong>on</strong> the edge. Then, assign a VLAN ID tag to the single native<br />

VLAN <strong>on</strong> the port c<strong>on</strong>nected to a device. Last, add the VLAN ID to the trunk port. Now,<br />

when the switch receives the untagged packet, it adds the ID you specified and sends<br />

and receives the tagged packets <strong>on</strong> the trunk port c<strong>on</strong>figured to accept that VLAN.<br />

Copyright © 2012, <strong>Juniper</strong> <strong>Networks</strong>, Inc.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!