Switching and Network Access · Topic 3 of 6
Edge Port Attributes
Configure switch ports for desktops, printers, IoT, IP phones, access points, virtualized hosts and appliances with VLAN, PoE, trunk and LACP settings.
- 6 min
- Desktops, printers and IoT devices use access ports. Put IoT in its own VLAN.
- A phone port has an access VLAN and a voice VLAN, and the phone tags the voice frames.
power inline autois the default,power inline neverturns PoE off, andshow power inlineshows the result.
What it is
An edge port is a switch port that connects an end device, and each device type needs its own mix of settings.
The settings you choose are the VLAN, the port mode, PoE, and sometimes a port channel with LACP. Get one wrong and the device is dead, in the wrong network, or cut off from some of its VLANs.
| Device | Typical port setup |
|---|---|
| Desktop, printer, IoT appliance | Access port, one VLAN, PortFast |
| IP phone with a PC behind it | Access port, data VLAN plus voice VLAN, PoE |
| Standalone access point | Access port, or trunk if several SSIDs use different VLANs |
| Controller based access point | Access port in the AP VLAN, PoE |
| Virtualized host | Trunk with an allowed VLAN list, or a LACP port channel |
| Network appliance | Access or trunk as designed, often a LACP port channel |
How it works
Start with the VLAN and mode, then add power and bundling where the device needs them.
Desktops, printers and IoT appliances
These devices send untagged frames, so the port is an access port in one VLAN. Put IoT devices in their own VLAN, apart from user traffic.
interface GigabitEthernet0/5
switchport mode access
switchport access vlan 10
spanning-tree portfast
PortFast sends an access port straight to forwarding, so the device gets a link without a wait. It belongs only on ports that face end devices.
Power over Ethernet
PoE lets the switch power a phone or access point over the data cable. The standards are 802.3af at up to 15.4 watts, 802.3at at up to 30 watts, and 802.3bt for higher power.
interface GigabitEthernet0/5
power inline auto
auto is the default. power inline never turns PoE off for the port.
SW1# show power inline
Available:370.0(w) Used:15.4(w) Remaining:354.6(w)
Interface Admin Oper Power Device Class Max
(Watts)
--------- ------ ---------- ------- ------------------- ----- ----
Gi0/5 auto on 15.4 IP Phone 3 30.0
Gi0/6 auto off 0.0 n/a n/a 30.0
Gi0/7 never off 0.0 n/a n/a 30.0
Gi0/5 delivers power. Gi0/6 is set to auto but nothing draws power, so check the cable and the device. Gi0/7 is set to never, so an access point plugged in there will not power on.
IP phones
A phone has a PC plugged into it, and both share one port. The phone tags its own frames with the voice VLAN, and the PC stays untagged in the data VLAN.
interface GigabitEthernet0/5
switchport mode access
switchport access vlan 10
switchport voice vlan 20
power inline auto
The switch tells the phone its voice VLAN through CDP or LLDP-MED. The port is still configured as an access port. Check it with show interfaces GigabitEthernet0/5 switchport, which lists the access VLAN and the voice VLAN.
Wireless access points
A controller based access point in local mode tunnels client traffic to the controller. Its port is an access port in the AP management VLAN with PoE. If the AP switches client traffic locally into several VLANs, its port must be a trunk.
A standalone access point bridges client traffic itself. It needs a trunk when several SSIDs map to different VLANs, and an access port when it has one VLAN.
interface GigabitEthernet0/10
switchport mode trunk
switchport trunk native vlan 100
switchport trunk allowed vlan 100,110,120
power inline auto
The native VLAN is the AP's own management VLAN. An AP on an access port loses every VLAN except one.
Virtualized hosts and appliances
A hypervisor host runs a virtual switch, and its virtual machines belong to different VLANs. The physical port is therefore a trunk, and the allowed list names only the VLANs the host needs.
interface GigabitEthernet0/20
switchport mode trunk
switchport trunk allowed vlan 30,40
spanning-tree portfast trunk
You will see many MAC addresses on this one port, because every virtual machine has its own. That is normal.
Servers and appliances such as firewalls often use two or more links in a LACP port channel for bandwidth and redundancy. The switch side uses the same configuration as a switch to switch bundle.
interface range GigabitEthernet0/21 - 22
switchport mode trunk
channel-group 5 mode active
LACP active on the switch works with either active or passive on the host. A host that sends no LACP messages needs on, but that gives no negotiation and no protection against a mistake.
Ask what the device sends. Untagged frames in one VLAN mean access. Tagged frames for several VLANs mean trunk.
Common mistakes
A trunk where access is enough. It exposes extra VLANs to a device that needs one.
An access port for a multi-VLAN device. A virtualized host or a locally switching AP loses all but one VLAN.
PoE disabled or out of budget. power inline never or a full switch power budget leaves the device unpowered.
Forgetting the voice VLAN. The phone comes up in the data VLAN, or gets no voice VLAN at all.
PortFast on a link to a switch. It skips the safety wait and can create a loop.
Do not plug a switch into a PortFast edge port, and shut down unused ports.
What to remember for the exam
- Desktops, printers and IoT devices use access ports. Put IoT in its own VLAN.
- A phone port has an access VLAN and a voice VLAN, and the phone tags the voice frames.
power inline autois the default,power inline neverturns PoE off, andshow power inlineshows the result.- A controller based AP in local mode uses an access port. A locally switching AP and a multi-SSID standalone AP use a trunk.
- Virtualized hosts use trunks with a limited allowed list.
- Servers and appliances can use a LACP port channel for bandwidth and redundancy.
spanning-tree portfastis for edge ports only.- Many MAC addresses on one port can be a virtualized host.
Check yourself
How can an IP phone and the PC behind it share one port and sit in different VLANs?
Configure the port as an access port with a data VLAN and add
switchport voice vlan. The phone tags its own frames in the voice VLAN, and the PC stays untagged in the data VLAN.An access point does not power on. What do you check on the switch port?
Check the PoE setting with show power inline. If the port is set to never or the power budget is full, the AP gets no power.
Why is the port to a hypervisor host usually a trunk?
The virtual machines on the host belong to different VLANs, so the port must carry tagged frames for each of those VLANs.
Topic 3 of 6 in Switching and Network Access
Test yourself on Switching and Network Access
The full Cisco CCNA 200-301 v2.0 question bank has 1,242 questions, with timed practice exams and an explanation for every answer.
This study guide is independent and is not affiliated with, endorsed by, or sponsored by Cisco. Vendor names, certification names and exam codes are trademarks of their respective owners and are used for identification only.