Trunk øvelse
For at fuldføre denne øvelse skal VLAN øvelse være udført. Dette er en fortsættelse af denne øvelse.
Contents
Opgave 1: Tilslutning af Router
Der anvendes en Trunk port mellem Switch 1 port 23 og en 1841 Router fastethetnet 0/o som vis i tegningen herunder.
Opgave 2: Oprettelse af trunkport på switch
Port 23 på Switch 1 skal konfigureres som en Trunk port. Se i VLAN øvelsen hordan dette gøres.
Opgace 3: Fastethernet 0/0 lukkes op
--- System Configuration Dialog ---
Continue with configuration dialog? [yes/no]: <input>no</input>
Router><input>enable</input>
Router#<input>configure terminal</input>
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#<input>interface fastethernet 0/0</input>
Router(config-if)#<input>no shutdown</input>
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
Router(config-if)#<input>exit
Router(config)#<input>exit
%SYS-5-CONFIG_I: Configured from console by console
Router#<input>show interface fastethernet 0/0<input>
<notice>FastEthernet0/0 is up, line protocol is up (connected)</notice>
Hardware is Lance, address is 00e0.b064.2801 (bia 00e0.b064.2801)
MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
ARP type: ARPA, ARP Timeout 04:00:00,
Last input 00:00:08, output 00:00:05, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0 (size/max/drops); Total output drops: 0
Queueing strategy: fifo
Output queue :0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
Opgave 4: VLAN 1 oprettes
VLAN 1 er anvendt, men tildeles alligevel en IP adresse i dette eksempel.
Router><input>enable</input>
Router#<input>configure terminal</input>
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#<input>interface fastethernet 0/0.1</input>
Router(config-subif)#<input>encapsulation dot1Q 1 native </input>
Router(config-subif)#<input>ip address 10.1.1.1 255.255.255.0</input>
Router(config-subif)#<input>exit</input>
Opgave 5: VLAN 100 oprettes
Router><input>enable</input>
Router#<input>configure terminal</input>
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#<input>interface fastethernet 0/0.100</input>
Router(config-subif)#<input>encapsulation dot1Q 100</input>
Router(config-subif)#<input>ip address 192.168.1.1 255.255.255.0</input>
Router(config-subif)#<input>exit</input>
Router(config-subif)#<input>interface fastethernet 0/0.200 Router(config-subif)# %LINK-5-CHANGED: Interface FastEthernet0/0.200, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.200, changed state to up Router(config-subif)#ip address 192.168.200.1 255.255.255.0
% Configuring IP routing on a LAN subinterface is only allowed if that subinterface is already configured as part of an IEEE 802.10, IEEE 802.1Q, or ISL vLAN.
Router(config-subif)#encapsulation dot1Q 200 Router(config-subif)#ip address 192.168.200.1 255.255.255.0 Router(config-subif)#interface fastethernet 0/0.300 Router(config-subif)# %LINK-5-CHANGED: Interface FastEthernet0/0.300, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.300, changed state to up
Router(config-subif)#encapsulation dot1Q 300 Router(config-subif)#ip address 172.16.0.1 255.255.255.0 Router(config-subif)#exit Router(config)#exit Router# %SYS-5-CONFIG_I: Configured from console by console
Router#show ip interfaces brief
^
% Invalid input detected at '^' marker.
Router#show ip interface brief Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 unassigned YES unset up up
FastEthernet0/0.1 10.1.1.1 YES manual up up
FastEthernet0/0.100 192.168.1.1 YES manual up up
FastEthernet0/0.200 192.168.200.1 YES manual up up
FastEthernet0/0.300 172.16.0.1 YES manual up up
FastEthernet0/1 unassigned YES unset administratively down down
Vlan1 unassigned YES unset administratively down down Router#