Difference between revisions of "Trunk øvelse"

From Teknologisk videncenter
Jump to: navigation, search
m (Opgave 2: Oprettelse af trunkport på switch)
m (Opgave 5: VLAN 100 oprettes)
Line 66: Line 66:
 
Router(config-subif)#<input>exit</input>
 
Router(config-subif)#<input>exit</input>
 
</source>
 
</source>
Router(config-subif)#<input>interface fastethernet 0/0.200
+
=Opgave 6: VLAN 200 oprettes=
Router(config-subif)#
+
<source lang=cli>
%LINK-5-CHANGED: Interface FastEthernet0/0.200, changed state to up
+
Router><input>enable</input>
 
+
Router#<input>configure terminal</input>
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.200, changed state to up
+
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config-subif)#ip address 192.168.200.1 255.255.255.0
+
Router(config)#<input>interface fastethernet 0/0.200</input>
 
+
Router(config-subif)#<input>encapsulation dot1Q 200</input>
% Configuring IP routing on a LAN subinterface is only allowed if that
+
Router(config-subif)#<input>ip address 192.168.200.1 255.255.255.0</input>
subinterface is already configured as part of an IEEE 802.10, IEEE 802.1Q,
+
Router(config-subif)#<input>exit</input>
or ISL vLAN.
+
</source>
 
+
=Opgave 7: VLAN 300 oprettes=
Router(config-subif)#encapsulation dot1Q 200
+
<source lang=cli>
Router(config-subif)#ip address 192.168.200.1 255.255.255.0
+
Router><input>enable</input>
Router(config-subif)#interface fastethernet 0/0.300
+
Router#<input>configure terminal</input>
Router(config-subif)#
+
Enter configuration commands, one per line. End with CNTL/Z.
%LINK-5-CHANGED: Interface FastEthernet0/0.300, changed state to up
+
Router(config)#<input>interface fastethernet 0/0.300</input>
 
+
Router(config-subif)#<input>encapsulation dot1Q 300</input>
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.300, changed state to up
+
Router(config-subif)#<input>ip address 172.16.0.1 255.255.255.0</input>
 
+
Router(config-subif)#<input>exit</input>
Router(config-subif)#encapsulation dot1Q 300
+
</source>
Router(config-subif)#ip address 172.16.0.1 255.255.255.0
+
=Opgave 8: Test af router opsætning=
Router(config-subif)#exit
+
<source lang=cli>
Router(config)#exit
+
Router><input>enable</input>
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
 
Router#show ip interface brief
 
Interface              IP-Address      OK? Method Status                Protocol
 
Interface              IP-Address      OK? Method Status                Protocol
 
   
 
   
 
FastEthernet0/0        unassigned      YES unset  up                    up
 
FastEthernet0/0        unassigned      YES unset  up                    up
 
 
FastEthernet0/0.1      10.1.1.1        YES manual 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.100    192.168.1.1    YES manual up                    up
 
 
FastEthernet0/0.200    192.168.200.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/0.300    172.16.0.1      YES manual up                    up
 
 
FastEthernet0/1        unassigned      YES unset  administratively down down
 
FastEthernet0/1        unassigned      YES unset  administratively down down
 
 
Vlan1                  unassigned      YES unset  administratively down down
 
Vlan1                  unassigned      YES unset  administratively down down
Router#
+
</source>
 +
==Yderligere test==
 +
Prøv følgende kommandoer
 +
*''show ip route''
 +
*''show running-config''
 +
=Opgave 9: Konfiguration af PC'ere=
 +
*Kan PC'erne pinge hinanden?
 +
**Hvis ikke - hvorfor ikke.
 +
==Logisk netværkstegning==
 +
Prøv at lave en logisk netværkstegning for at se hvad der er galt.
 +
 
 +
 
  
 
{{Source cli}}
 
{{Source cli}}

Revision as of 12:24, 18 June 2013

For at fuldføre denne øvelse skal VLAN øvelse være udført. Dette er en fortsættelse af denne øvelse.

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.

Router tilføjet til switch1

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>

Opgave 6: VLAN 200 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.200</input>
Router(config-subif)#<input>encapsulation dot1Q 200</input>
Router(config-subif)#<input>ip address 192.168.200.1 255.255.255.0</input>
Router(config-subif)#<input>exit</input>

Opgave 7: VLAN 300 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.300</input>
Router(config-subif)#<input>encapsulation dot1Q 300</input>
Router(config-subif)#<input>ip address 172.16.0.1 255.255.255.0</input>
Router(config-subif)#<input>exit</input>

Opgave 8: Test af router opsætning

Router><input>enable</input>
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

Yderligere test

Prøv følgende kommandoer

  • show ip route
  • show running-config

Opgave 9: Konfiguration af PC'ere

  • Kan PC'erne pinge hinanden?
    • Hvis ikke - hvorfor ikke.

Logisk netværkstegning

Prøv at lave en logisk netværkstegning for at se hvad der er galt.