User Tools

Site Tools


networking:cisco:switching_with_ospf

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
networking:cisco:switching_with_ospf [2016/02/18 09:23] rpleckonetworking:cisco:switching_with_ospf [2016/02/18 09:52] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== Switching with OSPF ====== ====== Switching with OSPF ======
 {{ :networking:cisco:ospf.png?600 }} {{ :networking:cisco:ospf.png?600 }}
-===== Router R1 =====+{{:downloads:Switching_skill_OSPF.pkt|Download "Switching_skill_OSPF.pkt" file}} 
 +{{:downloads:Switching_skill_Empty.pkt|Download "Switching_skill_Empty.pkt" file}} 
 + 
 +==== Router R1 ==== 
 + 
 +<code> 
 +!********************** Router R1 ********************** 
 +
 +enable 
 +conf ter 
 +
 +no ip domain-lookup 
 +
 +hostname R1 
 +banner motd /*** Router R1 *** MAC ***/ 
 +
 +enable secret class 
 +service password-encryption 
 +
 +
 +
 +
 +alias interface e exit 
 +alias configure e exit 
 +alias exec c config terminal 
 +alias exec s show ip int brie 
 +alias exec sc show cdp neighbors 
 +alias exec sr show runn 
 +alias exec sv show vlan-switch 
 +alias exec ss show span 
 +alias exec save copy running-config startup-config 
 +alias exec backup copy startup-config tftp: 
 +alias exec restore copy tftp: startup-config 
 +
 +
 +line con 0 
 +logging synchronous 
 +exec-timeout 90 0 
 +password cisco 
 +login 
 +length 50 
 +width 132 
 +
 +line vty 0 15 
 +logging synchronous 
 +exec-timeout 90 0 
 +password cisco 
 +login 
 +length 50 
 +width 132 
 +
 +!################ kraj standardne konfiguracije #################### 
 +
 +!######## Router-On-A-Stick ################## 
 +
 +!############### Prvi ethernet - prema lokalnoj mrezi ### 
 +int fastEthernet 0/0 
 +no shutdown 
 +
 +int fastEthernet 0/0.10 
 +encapsulation dot1Q 10 
 +ip add 172.16.10.254 255.255.255.0 
 +!  
 +int fastEthernet 0/0.20 
 +encapsulation dot1Q 20 
 +ip add 172.16.20.254 255.255.255.0 
 +!  
 +int fastEthernet 0/0.30 
 +encapsulation dot1Q 30 
 +ip add 172.16.30.254 255.255.255.0 
 +!  
 +int fastEthernet 0/0.99 
 +encapsulation dot1Q 99 native 
 +ip add 172.16.99.254 255.255.255.0 
 +
 +!############### Drugi ethernet - prema vanjskoj mrezi ### 
 +interface FastEthernet0/
 +no shutdown 
 +ip address 209.165.200.225 255.255.255.252 
 +
 +!############### OSPF routing ################ 
 +router ospf 17 
 +passive-interface default  
 +no passive-interface FastEthernet0/
 +network 172.16.10.0 0.0.0.255 area 0 
 +network 172.16.20.0 0.0.0.255 area 0 
 +network 172.16.30.0 0.0.0.255 area 0 
 +network 172.16.99.0 0.0.0.255 area 0 
 +network 209.165.200.224 0.0.0.3 area 0 
 +default-information originate 
 +
 +exit 
 +exit 
 +
 +</code> 
 + 
 +====Router R2 ==== 
 + 
 +<code> 
 +!********************** Router R2 ********************** 
 +
 +enable 
 +conf ter 
 +
 +no ip domain-lookup 
 +
 +hostname R2 
 +banner motd /*** Router R2 *** MAC ***/ 
 +
 +enable secret class 
 +service password-encryption 
 +
 +
 +
 +
 +alias interface e exit 
 +alias configure e exit 
 +alias exec c config terminal 
 +alias exec s show ip int brie 
 +alias exec sc show cdp neighbors 
 +alias exec sr show runn 
 +alias exec sv show vlan-switch 
 +alias exec ss show span 
 +alias exec save copy running-config startup-config 
 +alias exec backup copy startup-config tftp: 
 +alias exec restore copy tftp: startup-config 
 +
 +
 +line con 0 
 +logging synchronous 
 +exec-timeout 90 0 
 +password cisco 
 +login 
 +length 50 
 +width 132 
 +
 +line vty 0 15 
 +logging synchronous 
 +exec-timeout 90 0 
 +password cisco 
 +login 
 +length 50 
 +width 132 
 +
 +!################ kraj standardne konfiguracije #################### 
 +
 +!############### Prvi ethernet - prema lokalnoj mrezi ############## 
 +interface FastEthernet0/
 +no shutdown 
 +ip address 209.165.200.226 255.255.255.252 
 +
 +!############### Drugi ethernet - prema vanjskoj mrezi ############## 
 +interface FastEthernet0/
 +no shutdown 
 +ip address 172.20.20.254 255.255.255.0 
 +
 +!############### OSPF routing ################ 
 +router ospf 17 
 +passive-interface default 
 +no passive-interface FastEthernet0/
 +network 172.20.20.0 0.0.0.255 area 0 
 +network 209.165.200.224 0.0.0.3 area 0 
 +default-information originate 
 +
 +exit 
 +exit 
 +
 + 
 +</code> 
 + 
 +====Switch S1 ==== 
 +<code> 
 +!********************** Switch S1 ********************** 
 +
 +enable 
 +conf ter 
 +
 +no ip domain-lookup 
 +
 +hostname S1 
 +banner motd /*** Switch S1 *** MAC ***/ 
 +
 +enable secret class 
 +service password-encryption 
 +
 +!########## Adresa admin VLANa na routeru 
 +ip default-gateway 172.16.99.254 
 +
 +alias interface e exit 
 +alias configure e exit 
 +alias configure svi int ran fa0/1 - 24 
 +alias exec c config terminal 
 +alias exec s show ip int brie 
 +alias exec sc show cdp neighbors 
 +alias exec sr show runn 
 +alias exec sv show vlan 
 +alias exec ss show span 
 +alias exec save copy running-config startup-config 
 +alias exec backup copy startup-config tftp: 
 +alias exec restore copy tftp: startup-config 
 +
 +line con 0 
 +logging synchronous 
 +exec-timeout 90 0 
 +password cisco 
 +login 
 +length 50 
 +width 132 
 +
 +line vty 0 15 
 +logging synchronous 
 +exec-timeout 90 0 
 +password cisco 
 +login 
 +length 50 
 +width 132 
 +
 +!################ kraj standardne konfiguracije #################### 
 +
 +!######## Dali je ovo Root bridge za sve vlanove? 
 +
 +spanning-tree vlan 1-4094 root primary 
 +!spanning-tree vlan ID root primary 
 +!spanning-tree mode rapid-pvst 
 +
 +!####### Dali je ovo VTP server ili klijent ?  
 +!####### Ako je server, ovdje se kreiraju VLANovi  
 +
 +vtp version 2 
 +vtp mode server 
 +!vtp mode client 
 +vtp domain Lab641 
 +vtp password cisco 
 +
 +!####### Kreiramo VLAN-ove! SAMO na VTP serveru  
 +
 +vlan 10 
 +no shutdown 
 +name Studenti 
 +
 +vlan 20 
 +no shutdown 
 +name Referada 
 +
 +vlan 30 
 +no shutdown 
 +name Uprava 
 +
 +vlan 99 
 +no shutdown 
 +name Administracija 
 +
 +interface vlan 99 
 +ip add 172.16.99.11 255.255.255.0 
 +
 +
 +interface range fa 0/1 - 24 
 +no shu 
 +
 +!######################## Svi portovi u access mode 
 +switchport mode access 
 +
 +!######################## Samo neki portovi u trunk 
 +interface range fa 0/1 - 5 
 +switchport mode trunk 
 +!switchport trunk encapsulation dot1q !!!samo na L3 switchu 
 +switchport trunk native vlan 99 
 +
 +
 +!####### Portove pridjelimo VLAN-u 
 +!interface range fa 0/1 - 4 
 +!switchport access vlan 10 
 +
 +!####### Portove pridjelimo VLAN-u 
 +!interface range fa 0/5 - 8 
 +!switchport access vlan 20 
 +
 +!####### Portove pridjelimo VLAN-u 
 +!interface range fa 0/9 - 12 
 +!switchport access vlan 30 
 +
 +exit 
 +exit 
 +
 +</code> 
 + ==== Switch S2 ==== 
 +<code> 
 +!********************** Switch S2 ********************** 
 +
 +enable 
 +conf ter 
 +
 +no ip domain-lookup 
 +
 +hostname S2 
 +banner motd /*** Switch S2 *** MAC ***/ 
 +
 +enable secret class 
 +service password-encryption 
 +
 +!########## Adresa admin VLANa na routeru 
 +ip default-gateway 172.16.99.254 
 +
 +alias interface e exit 
 +alias configure e exit 
 +alias configure svi int ran fa0/1 - 24 
 +alias exec c config terminal 
 +alias exec s show ip int brie 
 +alias exec sc show cdp neighbors 
 +alias exec sr show runn 
 +alias exec sv show vlan 
 +alias exec ss show span 
 +alias exec save copy running-config startup-config 
 +alias exec backup copy startup-config tftp: 
 +alias exec restore copy tftp: startup-config 
 +
 +line con 0 
 +logging synchronous 
 +exec-timeout 90 0 
 +password cisco 
 +login 
 +length 50 
 +width 132 
 +
 +line vty 0 15 
 +logging synchronous 
 +exec-timeout 90 0 
 +password cisco 
 +login 
 +length 50 
 +width 132 
 +
 +!################ kraj standardne konfiguracije #################### 
 +
 +!######## Dali je ovo Root bridge za sve vlanove? 
 +
 +!spanning-tree vlan 1-4094 root primary 
 +!spanning-tree vlan ID root primary 
 +!spanning-tree mode rapid-pvst 
 +
 +!####### Dali je ovo VTP server ili klijent ?  
 +!####### Ako je server, ovdje se kreiraju VLANovi  
 +
 +vtp version 2 
 +!vtp mode server 
 +vtp mode client 
 +vtp domain Lab641 
 +vtp password cisco 
 +
 +!####### Kreiramo VLAN-ove! SAMO na VTP serveru  
 +
 +!vlan 10 
 +!no shutdown 
 +!name Studenti 
 +
 +!vlan 20 
 +!no shutdown 
 +!name Referada 
 +
 +!vlan 30 
 +!no shutdown 
 +!name Uprava 
 +
 +!vlan 99 
 +!no shutdown 
 +!name Administracija 
 +
 +interface vlan 99 
 +ip add 172.16.99.12 255.255.255.0 
 +
 +
 +interface range fa 0/1 - 12 
 +no shu 
 +
 +!######################## Svi portovi u access mode 
 +switchport mode access 
 +
 +!######################## Samo neki portovi u trunk 
 +interface range fa 0/1 - 5 
 +switchport mode trunk 
 +!switchport trunk encapsulation dot1q !!!Samo na L3 switchu 
 +switchport trunk native vlan 99 
 +
 +
 +!####### Portove pridjelimo VLAN-u 
 +!interface range fa 0/6 - 10 
 +!switchport access vlan 10 
 +
 +!####### Portove pridjelimo VLAN-u 
 +!interface range fa 0/11 - 15 
 +!switchport access vlan 20 
 +
 +!####### Portove pridjelimo VLAN-u 
 +!interface range fa 0/16 - 20 
 +!switchport access vlan 30 
 +
 +exit 
 +exit 
 +
 +</code> 
 + 
 +====Switch S3 ==== 
 + 
 +<code> 
 +!********************** Switch S3 ********************** 
 +
 +enable 
 +conf ter 
 +
 +no ip domain-lookup 
 +
 +hostname S3 
 +banner motd /*** Switch S3 *** MAC ***/ 
 +
 +enable secret class 
 +service password-encryption 
 +
 +!########## Adresa admin VLANa na routeru 
 +ip default-gateway 172.16.99.254 
 +
 +alias interface e exit 
 +alias configure e exit 
 +alias configure svi int ran fa0/1 - 24 
 +alias exec c config terminal 
 +alias exec s show ip int brie 
 +alias exec sc show cdp neighbors 
 +alias exec sr show runn 
 +alias exec sv show vlan 
 +alias exec ss show span 
 +alias exec save copy running-config startup-config 
 +alias exec backup copy startup-config tftp: 
 +alias exec restore copy tftp: startup-config 
 +
 +line con 0 
 +logging synchronous 
 +exec-timeout 90 0 
 +password cisco 
 +login 
 +length 50 
 +width 132 
 +
 +line vty 0 15 
 +logging synchronous 
 +exec-timeout 90 0 
 +password cisco 
 +login 
 +length 50 
 +width 132 
 +
 +!################ kraj standardne konfiguracije #################### 
 +
 +!######## Dali je ovo Root bridge za sve vlanove? 
 +
 +!spanning-tree vlan 1-4094 root primary 
 +!spanning-tree vlan ID root primary 
 +!spanning-tree mode rapid-pvst 
 +
 +!####### Dali je ovo VTP server ili klijent ?  
 +!####### Ako je server, ovdje se kreiraju VLANovi  
 +
 +vtp version 2 
 +!vtp mode server 
 +vtp mode client 
 +vtp domain Lab641 
 +vtp password cisco 
 +
 +!####### Kreiramo VLAN-ove! SAMO na VTP serveru  
 +
 +!vlan 10 
 +!no shutdown 
 +!name Studenti 
 +
 +!vlan 20 
 +!no shutdown 
 +!name Referada 
 +
 +!vlan 30 
 +!no shutdown 
 +!name Uprava 
 +
 +!vlan 99 
 +!no shutdown 
 +!name Administracija 
 +
 +interface vlan 99 
 +ip add 172.16.99.13 255.255.255.0 
 +
 +
 +interface range fa 0/1 - 24 
 +no shu 
 +
 +!######################## Svi portovi u access mode 
 +switchport mode access 
 +
 +!######################## Samo neki portovi u trunk 
 +interface range fa 0/1 - 5 
 +switchport mode trunk 
 +!switchport trunk encapsulation dot1q !!!Samo na L3 switchu 
 +switchport trunk native vlan 99 
 +
 +
 +!####### Portove pridjelimo VLAN-u 
 +interface range fa 0/6 - 10 
 +switchport access vlan 10 
 +
 +!####### Portove pridjelimo VLAN-u 
 +interface range fa 0/11 - 15 
 +switchport access vlan 20 
 +
 +!####### Portove pridjelimo VLAN-u 
 +interface range fa 0/16 - 20 
 +switchport access vlan 30 
 +
 +exit 
 +exit 
 +
 +</code>
networking/cisco/switching_with_ospf.1455787385.txt.gz · Last modified: 2016/02/18 09:23 (external edit)