*-------------------------------------
* konfiguracija vmesnika na PC-ju

[root@ciprnik ~]# ifconfig eth2 153.5.188.31/26
[root@ciprnik ~]# ifconfig eth2
eth2      Link encap:Ethernet  HWaddr 00:11:95:5C:EC:AA  
          inet addr:153.5.188.31  Bcast:153.5.188.63  Mask:255.255.255.192
          inet6 addr: fe80::211:95ff:fe5c:ecaa/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:11 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:728 (728.0 b)  TX bytes:694 (694.0 b)
          Interrupt:193 Base address:0x4000 

*-------------------------------------
* ping stikala 2

[root@ciprnik ~]# ping 153.5.188.2
PING 153.5.188.2 (153.5.188.2) 56(84) bytes of data.
64 bytes from 153.5.188.2: icmp_seq=0 ttl=251 time=2.08 ms
64 bytes from 153.5.188.2: icmp_seq=1 ttl=251 time=1.82 ms
64 bytes from 153.5.188.2: icmp_seq=2 ttl=251 time=2.04 ms
64 bytes from 153.5.188.2: icmp_seq=3 ttl=251 time=1.96 ms

--- 153.5.188.2 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3003ms
rtt min/avg/max/mdev = 1.826/1.979/2.085/0.108 ms, pipe 2

*-------------------------------------
* dostop na stikalo 2

[root@ciprnik ~]# telnet 153.5.188.2
Trying 153.5.188.2...
Connected to switch2.delavnica.arnes.si (153.5.188.2).
Escape character is '^]'.


      S I R I K T   2 0 0 9
      delavnica "Obvladajmo lokalna omrezja"
      Kranjska Gora, 16.4.2009

      Dostopate na stikalo 2.

      *-------------------------------------
      go beyond ::1
      pojdimo onkraj ::1



User Access Verification

Username: u31
Password: 

switch2>en
Password: 
switch2#

*-------------------------------------
* pregled forwarding tabele na stikalu

switch2#show mac-address-table           
          Mac Address Table
-------------------------------------------

Vlan    Mac Address       Type        Ports
----    -----------       --------    -----
 All    000d.bce6.9b80    STATIC      CPU
 All    0100.0ccc.cccc    STATIC      CPU
 All    0100.0ccc.cccd    STATIC      CPU
 All    0100.0cdd.dddd    STATIC      CPU
   1    000d.bde1.d398    DYNAMIC     Fa0/10
   1    000e.38f4.65c0    DYNAMIC     Fa0/10
   1    0011.955c.ecaa    DYNAMIC     Fa0/9
Total Mac Addresses for this criterion: 7

*-------------------------------------
* kje je moj MAC?

switch2#show mac-address-table | inc ecaa
   1    0011.955c.ecaa    DYNAMIC     Fa0/9

switch2#sh run int fast0/9
Building configuration...

Current configuration : 153 bytes
!
interface FastEthernet0/9
 switchport mode access
 no ip address
 no cdp enable
 spanning-tree bpdufilter enable
end

*-------------------------------------
* oznacim "svoj" vmesnik

switch2#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
switch2(config)#interface FastEthernet0/9
switch2(config-if)# description --- predavatelj ---
switch2(config-if)#^Z


*-------------------------------------
* ping streznika

[root@ciprnik ~]# ping 153.5.188.5
PING 153.5.188.5 (153.5.188.5) 56(84) bytes of data.
64 bytes from 153.5.188.5: icmp_seq=0 ttl=64 time=1.19 ms
64 bytes from 153.5.188.5: icmp_seq=1 ttl=64 time=1.16 ms
64 bytes from 153.5.188.5: icmp_seq=2 ttl=64 time=1.15 ms
64 bytes from 153.5.188.5: icmp_seq=3 ttl=64 time=1.16 ms
64 bytes from 153.5.188.5: icmp_seq=4 ttl=64 time=1.16 ms
64 bytes from 153.5.188.5: icmp_seq=5 ttl=64 time=1.15 ms
64 bytes from 153.5.188.5: icmp_seq=6 ttl=64 time=1.16 ms

--- 153.5.188.5 ping statistics ---
7 packets transmitted, 7 received, 0% packet loss, time 6004ms
rtt min/avg/max/mdev = 1.154/1.166/1.191/0.028 ms, pipe 2

*-------------------------------------
* iscem MAC streznika (00:13:20:80:C7:06)

switch2#show mac-address-table | inc c706
   1    0013.2080.c706    DYNAMIC     Fa0/10

switch2#sh run int Fa0/10
Building configuration...

Current configuration : 118 bytes
!
interface FastEthernet0/10
 description --- switch1, Fast1/0/22 ---
 no ip address
 logging event trunk-status
end

*-------------------------------------
* streznik je na stikalu 1 -- dostop na stikalo 1

switch2#153.5.188.1
Trying 153.5.188.1 ... Open


      S I R I K T   2 0 0 9
      delavnica "Obvladajmo lokalna omrezja"
      Kranjska Gora, 16.4.2009

      Dostopate na stikalo 1.

      *-------------------------------------
      go beyond ::1
      pojdimo onkraj ::1



User Access Verification

Username: u31
Password: 

switch1>en
Password: 
switch1#

*-------------------------------------
* poiscem MAC streznika

switch1#show mac-address-table | inc c706
   1    0013.2080.c706    DYNAMIC     Fa1/0/13

*-------------------------------------
* streznik je na vmesniku 13:

switch1#sh run int Fa1/0/13
Building configuration...

Current configuration : 136 bytes
!
interface FastEthernet1/0/13
 description --- server ---
 switchport mode access
 no cdp enable
 spanning-tree bpdufilter enable
end
