Вы находитесь на странице: 1из 5

Lab ID: 9.9K1016A022.SBI1.

Configuring Trunking
Objective
Build a lab network that will enable you to learn the basic commands needed to configure a trunk. Test the
switching configuration.
A trunk port is required to pass virtual LAN (VLAN) information between switches. Trunk ports are
members of all VLANs and both switches participating on the trunk link must be configured with the same
mechanisms. Each switch should send Dynamic Trunking Protocol (DTP) frames.

Lab Topology
The topology diagram below represents the NetMap in the Simulator.

Fa0/1 Fa0/11 Fa0/11 Fa0/1


Switch1 Switch2
HostA Fa0/12 Fa0/12 HostB

Command Summary
Command Description
configure terminal enters global configuration mode from privileged EXEC mode
enable enters privileged EXEC mode
end ends and exits configuration mode
exit exits one level in the menu structure
hostname host-name sets the device name
interface type number changes from global configuration mode to interface
configuration mode
ipconfig /ip ip-address subnet-mask is used in NetSim to assign an IP address and subnet mask to
a workstation interface
show running-config displays the active configuration file
switchport mode access assigns an access port
switchport mode trunk assigns a trunk port
switchport trunk encapsulation sets the trunk encapsulation format to 802.1Q
dot1q

1 Boson NetSim Lab Manual


The IP addresses and subnet masks used in this lab are shown in the tables below:

IP Addresses
Device Interface IP Address Subnet Mask
Switch1 VLAN 1 192.168.100.101 255.255.255.0
Switch2 VLAN 1 192.168.100.102 255.255.255.0

Device IP Address Subnet Mask


HostA 192.168.100.1 255.255.255.0
HostB 192.168.100.2 255.255.255.0

Lab Tasks
1. Configure Switch1 with a host name of Switch1. Configure the Fast Ethernet 0/11 and Fast Ethernet
0/12 interfaces to always be trunks.

2. Configure Switch2 with a host name of Switch2. Configure the Fast Ethernet 0/11 and Fast Ethernet
0/12 interfaces to always be trunks.

3. Configure HostA with the appropriate IP address and subnet mask; refer to the IP Addresses table.

4. Configure HostB with the appropriate IP address and subnet mask; refer to the IP Addresses table.

5. On Switch1 and Switch2, verify the configuration by displaying the configuration and properties of
the FastEthernet 0/11 port.

You can do so by clicking the Grade Lab icon ( ) in the toolbar or by pressing Ctrl+G.

2 Boson NetSim Lab Manual


Lab Solutions
1. Issue the following commands to configure Switch1:

Switch>enable
Switch#configure terminal
Switch(config)#hostname Switch1
Switch1(config)#interface fastethernet 0/11
Switch1(config-if)#switchport trunk encapsulation dot1q
Switch1(config-if)#switchport mode trunk
Switch1(config-if)#interface fastethernet 0/12
Switch1(config-if)#switchport trunk encapsulation dot1q
Switch1(config-if)#switchport mode trunk

2. Issue the following commands to configure Switch2:

Switch>enable
Switch#configure terminal
Switch(config)#hostname Switch2
Switch2(config)#interface fastethernet 0/11
Switch2(config-if)#switchport trunk encapsulation dot1q
Switch2(config-if)#switchport mode trunk
Switch2(config-if)#interface fastethernet 0/12
Switch2(config-if)#switchport trunk encapsulation dot1q
Switch2(config-if)#switchport mode trunk

3. Issue the following command to configure HostA:

C:>ipconfig /ip 192.168.100.1 255.255.255.0

4. Issue the following command to configure HostB:

C:>ipconfig /ip 192.168.100.2 255.255.255.0

3 Boson NetSim Lab Manual


5. On Switch1 and Switch2, verify your configuration by issuing the show interface fastethernet 0/11
switchport command. The following is sample output:

Switch1(config-if)#end
Switch1#show interface fastethernet 0/11 switchport
Name: Fa0/11
Switchport: Enabled
Administrative mode: trunk
Operational mode: trunk
Administrative Trunking Encapsulation: dot1q
Operational Trunking Encapsulation: native
Negotiation of Trunking: On
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 1 (default)
Voice VLAN: none
Trunking VLANs Enabled: ALL
Pruning VLANs Enabled: 2-1001

Protected: false

Appliance trust: none

Switch2(config-if)#end
Switch2#show interface fastethernet 0/11 switchport
Name: Fa0/11
Switchport: Enabled
Administrative mode: trunk
Operational mode: trunk
Administrative Trunking Encapsulation: dot1q
Operational Trunking Encapsulation: native
Negotiation of Trunking: On
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 1 (default)
Voice VLAN: none
Trunking VLANs Enabled: ALL
Pruning VLANs Enabled: 2-1001

Protected: false

Appliance trust: none

4 Boson NetSim Lab Manual


Sample Configuration Script
Switch1 Switch1 (continued)
Switch1#show running-config interface FastEthernet0/8
Building configuration... !
Current configuration : 893 bytes interface FastEthernet0/9
! !
Version 15.b interface FastEthernet0/10
service timestamps debug uptime !
service timestamps log uptime interface FastEthernet0/11
no service password-encryption switchport mode trunk
! !
hostname Switch1 interface FastEthernet0/12
! switchport mode trunk
ip subnet-zero !
! interface Vlan 1
ip cef no ip address
no ip domain-lookup no ip route-cache
spanning-tree mode pvst !
spanning-tree extend system-id ip classless
! no ip http server
interface FastEthernet0/1 !
! line con 0
interface FastEthernet0/2 line aux 0
! line vty 0 15
interface FastEthernet0/3 login
! !
interface FastEthernet0/4 no scheduler allocate
! end
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!

Copyright © 1996–2017 Boson Software, LLC. All rights reserved. NetSim software and documentation are protected by copyright law.

5 Boson NetSim Lab Manual

Вам также может понравиться