User Tools

Site Tools


networking:cisco:switching_with_eigrp

Switching with EIGRP

Router R1

!********************** 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/1
no shutdown
ip address 209.165.200.225 255.255.255.252
!
!############### EIGRP routing ################
router eigrp 23
!----------------- Ne propagiramo Eigrp prema lokalnoj mreži
passive-interface FastEthernet0/0
network 172.16.10.0 0.0.0.255
network 172.16.20.0 0.0.0.255
network 172.16.30.0 0.0.0.255
network 172.16.99.0 0.0.0.255
network 209.165.200.224 0.0.0.3
no auto-summary
!
exit
exit
!

Router R2

!********************** 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/0
no shutdown
ip address 209.165.200.226 255.255.255.252
!
!############### Drugi ethernet - prema vanjskoj mrezi ##############
interface FastEthernet0/1
no shutdown
ip address 172.20.20.254 255.255.255.0
!
!############### EIGRP ################
router eigrp 23
!----------------- Ne propagiramo Eigrp prema vanjskoj mreži
passive-interface FastEthernet0/1
network 209.165.200.224 0.0.0.3
network 172.20.20.0 0.0.0.255
no auto-summary
!
exit
exit
!

Switch S1

!********************** 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
!

Switch S2

!********************** 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
!

Switch S3

!********************** 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
!
networking/cisco/switching_with_eigrp.txt · Last modified: 2016/02/18 09:50 by 127.0.0.1