wiki:Realisations/2010-2011/Projet/Core1/core1_rout

Configuration Routeurs Cisco 3825

Ci-joint vous allez trouver un fichier .pdf où j'ai pris quelques notes pendant que je faisais la configuration des routeurs. J'avoue qu'il n'est pas trop propre mais je crois qu'il pourrait vous servir quand même. Au cas où vous ne les lisez pas, je vais quand même vous donnez une indice importante: si vous devez refaire la configuration, pour les interfaces des routeurs qui sont dans les modules rajoutés (interfaces 1/0 et 2/0), n'oubliez pas d'exécuter no switchport pour spécifier que ces interfaces ne doivent pas être utilisées en tant qu'interfaces de niveau 2. Exemple:

interface GigabitEthernet 1/0
no switchport						// convert to layer 3 interface -> needs IP
no shutdown 						// enables the interface
ip address 10.20.1.1 255.255.255.0
exit

Les deux sections repliables contiennent la running-configuration, elle peut également être obtenue sur les routeurs:

MIR#show running-config

Configuration MIR

Current configuration : 3863 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname MIR
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$wrrQ$2OlSAzUHDv4bhTcWSiFmX.
enable password cisco1
!
no aaa new-model
ip cef
!
!
!
!
no ip domain lookup
!
ipv6 unicast-routing
voice-card 0
 no dspfarm
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface GigabitEthernet0/0
 ip address 10.20.0.1 255.255.255.252
 duplex full
 speed auto
 media-type rj45
 ipv6 address 2001:DB8:2:210::1/64
 no keepalive
!
interface GigabitEthernet0/1
 no ip address
 duplex full
 speed auto
 media-type rj45
 no keepalive
!
interface GigabitEthernet0/1.221
 encapsulation dot1Q 221
 ip address 10.20.30.1 255.255.255.252
 ipv6 address 2001:DB8:2:221::1/64
!
interface GigabitEthernet0/1.999
 encapsulation dot1Q 999
 ip address 10.20.130.77 255.255.255.0
!
interface FastEthernet1/0
 shutdown
!
interface FastEthernet1/1
 shutdown
!
interface FastEthernet1/2
 shutdown
!
interface FastEthernet1/3
 shutdown
!
interface FastEthernet1/4
 shutdown
!
interface FastEthernet1/5
 shutdown
 no mop enabled
!
interface FastEthernet1/6
 shutdown
!
interface FastEthernet1/7
 shutdown
!
interface FastEthernet1/8
 shutdown
!
interface FastEthernet1/9
 shutdown
!
interface FastEthernet1/10
 shutdown
!
interface FastEthernet1/11
 shutdown
!
interface FastEthernet1/12
 shutdown
!
interface FastEthernet1/13
 shutdown
!
interface FastEthernet1/14
 shutdown
!
interface FastEthernet1/15
 shutdown
!
interface GigabitEthernet1/0
 no switchport
 ip address 10.20.1.1 255.255.255.0
 ipv6 address 2001:DB8:2:222::1/64
!
interface FastEthernet2/0
 shutdown
!
interface FastEthernet2/1
 shutdown
!
interface FastEthernet2/2
 shutdown
!
interface FastEthernet2/3
 shutdown
!
interface FastEthernet2/4
 shutdown
!
interface FastEthernet2/5
 shutdown
!
interface FastEthernet2/6
 shutdown
!
interface FastEthernet2/7
 shutdown
!
interface FastEthernet2/8
 shutdown
!
interface FastEthernet2/9
 shutdown
!
interface FastEthernet2/10
 shutdown
!
interface FastEthernet2/11
 shutdown
!
interface FastEthernet2/12
 shutdown
!
interface FastEthernet2/13
 shutdown
!
interface FastEthernet2/14
 shutdown
!
interface FastEthernet2/15
 shutdown
!
interface GigabitEthernet2/0
 no switchport
 no ip address
 shutdown
!
interface Vlan1
 no ip address
 shutdown
!
router ospf 2525
 log-adjacency-changes
 redistribute bgp 65002
 network 10.20.1.0 0.0.0.255 area 0.0.0.0
 network 10.20.30.0 0.0.0.3 area 0.0.0.0
!
router bgp 65002
 bgp log-neighbor-changes
 neighbor 10.20.0.2 remote-as 65001
 neighbor 10.20.30.2 remote-as 65002
 neighbor 2001:DB8:2:210::2 remote-as 65001
 neighbor 2001:DB8:2:221::2 remote-as 65002
 !
 address-family ipv4
 redistribute ospf 2525
 neighbor 10.20.0.2 activate
 neighbor 10.20.30.2 activate
 neighbor 2001:DB8:2:210::2 activate
 neighbor 2001:DB8:2:210::2 soft-reconfiguration inbound
 neighbor 2001:DB8:2:210::2 prefix-list as1 in
 neighbor 2001:DB8:2:221::2 activate
 no auto-summary
 no synchronization
 exit-address-family
 !
 address-family ipv6
 neighbor 2001:DB8:2:210::2 activate
 neighbor 2001:DB8:2:210::2 prefix-list as1 in
 neighbor 2001:DB8:2:221::2 activate
 network 2001:DB8:2:222::/64
 no synchronization
 exit-address-family
!
ip route 10.20.0.0 255.255.255.252 GigabitEthernet0/1.221 200
ip route 10.20.0.4 255.255.255.252 10.20.30.2
ip route 10.30.0.0 255.255.255.252 10.20.30.2
!
!
ip http server
no ip http secure-server
!
ipv6 route 2001:DB8:3:320::/64 2001:DB8:2:221::2
ipv6 route 2001:DB8:4:443::/64 2001:DB8:2:221::2
ipv6 router ospf 6666
 log-adjacency-changes
!
!
!
ipv6 prefix-list as1 seq 5 permit 2001:DB8:1:112::/64
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
 stopbits 1
line aux 0
 stopbits 1
line vty 0 4
 password cisco
 login
line vty 5 1180
 no login
!
scheduler allocate 20000 1000
!
end

Configuration ISS

Current configuration : 3788 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname ISS
!
boot-start-marker
boot-end-marker
!
enable password cisco
!
no aaa new-model
ip cef
!
!
!
!
no ip domain lookup
!
ipv6 unicast-routing
voice-card 0
 no dspfarm
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface GigabitEthernet0/0
 no ip address
 duplex full
 speed auto
 media-type rj45
 no keepalive
!
interface GigabitEthernet0/0.221
 encapsulation dot1Q 221
 ip address 10.20.30.2 255.255.255.252
 ipv6 address 2001:DB8:2:221::2/64
!
interface GigabitEthernet0/0.999
 encapsulation dot1Q 999
 ip address 10.20.130.88 255.255.255.0
!
interface GigabitEthernet0/1
 ip address 10.20.1.2 255.255.255.0
 duplex auto
 speed auto
 media-type rj45
 ipv6 address 2001:DB8:2:222::2/64
 no keepalive
!
interface FastEthernet1/0
!
interface FastEthernet1/1
!
interface FastEthernet1/2
!
interface FastEthernet1/3
!
interface FastEthernet1/4
!
interface FastEthernet1/5
!
interface FastEthernet1/6
!
interface FastEthernet1/7
!
interface FastEthernet1/8
!
interface FastEthernet1/9
!
interface FastEthernet1/10
!
interface FastEthernet1/11
!
interface FastEthernet1/12
!
interface FastEthernet1/13
!
interface FastEthernet1/14
!
interface FastEthernet1/15
!
interface GigabitEthernet1/0
 no switchport
 ip address 10.30.0.2 255.255.255.252
 ipv6 address 2001:DB8:3:320::2/64
!
interface FastEthernet2/0
!
interface FastEthernet2/1
!
interface FastEthernet2/2
!
interface FastEthernet2/3
!
interface FastEthernet2/4
!
interface FastEthernet2/5
!
interface FastEthernet2/6
!
interface FastEthernet2/7
!
interface FastEthernet2/8
!
interface FastEthernet2/9
!
interface FastEthernet2/10
!
interface FastEthernet2/11
!
interface FastEthernet2/12
!
interface FastEthernet2/13
!
interface FastEthernet2/14
!
interface FastEthernet2/15
!
interface GigabitEthernet2/0
 no switchport
 ip address 10.20.0.5 255.255.255.252
 ipv6 address 2001:DB8:2:240::5/64
!
interface Vlan1
 no ip address
!
router ospf 2525
 log-adjacency-changes
 redistribute bgp 65002
 network 10.20.1.0 0.0.0.255 area 0.0.0.0
 network 10.20.30.0 0.0.0.3 area 0.0.0.0
!
router bgp 65002
bgp log-neighbor-changes
 neighbor 10.20.0.6 remote-as 65004
 neighbor 10.20.30.1 remote-as 65002
 neighbor 10.30.0.1 remote-as 65003
 neighbor 2001:DB8:2:221::1 remote-as 65002
 neighbor 2001:DB8:3:320::1 remote-as 65003
 neighbor 2001:DB8:4:443::1 remote-as 65004
 neighbor 2001:DB8:4:443::1 ebgp-multihop 255
 !
 address-family ipv4
 redistribute ospf 2525
 neighbor 10.20.0.6 activate
 neighbor 10.20.30.1 activate
 neighbor 10.30.0.1 activate
 neighbor 10.30.0.1 route-map setlocalin in
 neighbor 2001:DB8:2:221::1 activate
 neighbor 2001:DB8:3:320::1 activate
 neighbor 2001:DB8:3:320::1 weight 30000
 neighbor 2001:DB8:3:320::1 soft-reconfiguration inbound
 neighbor 2001:DB8:3:320::1 route-map setlocalin in
 neighbor 2001:DB8:4:443::1 activate
 neighbor 2001:DB8:4:443::1 weight 1000
 no auto-summary
 no synchronization
 exit-address-family
 !
 address-family ipv6
 neighbor 2001:DB8:2:221::1 activate
 neighbor 2001:DB8:3:320::1 activate
 neighbor 2001:DB8:3:320::1 soft-reconfiguration inbound
 neighbor 2001:DB8:3:320::1 route-map setlocalin in
 neighbor 2001:DB8:4:443::1 activate
 network 2001:DB8:2:222::/64
 exit-address-family
!
ip route 10.20.0.0 255.255.255.252 10.20.30.1
!
ip as-path access-list 1 permit ^65003.*$
!
ip http server
no ip http secure-server
!
ipv6 route 2001:DB8:2:210::/64 2001:DB8:2:221::1
ipv6 route 2001:DB8:4:443::/64 2001:DB8:2:240::6
!
route-map setlocalin permit 10
 match as-path 1
 set local-preference 1000
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
 stopbits 1
line aux 0
line vty 0 4
 password cisco
 login
!
scheduler allocate 20000 1000
!
end
Last modified 14 years ago Last modified on Jun 3, 2011, 1:11:19 PM

Attachments (1)

Download all attachments as: .zip