In this recipe, we will show how to configure access and trunk interfaces on Cisco IOS-based devices, and how to map interfaces to an access VLAN, as well as how to allow specific VLANs on the trunks.
Configuring trunk and access interfaces
Getting ready
Following our sample topology, we will configure the interfaces on the devices. As shown in this table, we are only showing the VLANs for access01 and core01— the other devices are exact replicas:
Device |
Interface |
Mode |
VLANs |
Core01 |
Ethernet0/1 |
Trunk |
10,20,100 |
Core01 |
Ethernet0/2 |
Trunk |
10,20,100 |
Core01 |
Ethernet0/3 |
Trunk |
10,20,100,200 |
Access01 |
Ethernet0/1 |
Trunk |
10,20,100 |
Access01 |
Ethernet0/2 |
Trunk |
10,20... |