Difference between revisions of "IP TECH III/MPLS"
From Teknologisk videncenter
m (Created page with "=Setup= 500px =Eksempel på PE Router= <source lang=cli> hostname R7 ! enable secret 5 $1$QRf3$uU49i1qFDdhIP2bG5KMDd. enable password class ! ip cef ! ip vrf ...") |
(No difference)
|
Revision as of 07:36, 30 September 2011
Setup
Eksempel på PE Router
hostname R7
!
enable secret 5 $1$QRf3$uU49i1qFDdhIP2bG5KMDd.
enable password class
!
ip cef
!
ip vrf kunde-a
rd 200:200
route-target export 200:1000
route-target import 200:1000
!
ip vrf kunde-b
rd 200:150
route-target export 200:2000
route-target import 200:2000
!
interface Loopback0
description Used as Router-ID
ip address 7.7.7.7 255.255.255.255
!
interface Loopback10
description Kunde-A interface
ip vrf forwarding kunde-a
ip address 192.168.4.1 255.255.255.0
!
interface Loopback11
description Kunde-B interface
ip vrf forwarding kunde-b
ip address 192.168.4.1 255.255.255.0
!
interface FastEthernet0/0
description Forbundet til P router
ip address 172.16.7.1 255.255.255.252
ip router isis
mpls ip
!
router isis
net 49.0001.0070.0700.7007.00
passive-interface Loopback0
!
router bgp 200
bgp log-neighbor-changes
neighbor 1.1.1.1 remote-as 200
neighbor 1.1.1.1 update-source Loopback0
neighbor 4.4.4.4 remote-as 200
neighbor 4.4.4.4 update-source Loopback0
neighbor 6.6.6.6 remote-as 200
neighbor 6.6.6.6 update-source Loopback0
!
address-family ipv4
neighbor 1.1.1.1 activate
neighbor 4.4.4.4 activate
neighbor 6.6.6.6 activate
no auto-summary
no synchronization
network 7.7.7.7 mask 255.255.255.255
exit-address-family
!
address-family vpnv4
neighbor 1.1.1.1 activate
neighbor 1.1.1.1 send-community both
neighbor 4.4.4.4 activate
neighbor 4.4.4.4 send-community both
neighbor 6.6.6.6 activate
neighbor 6.6.6.6 send-community both
exit-address-family
!
address-family ipv4 vrf kunde-b
redistribute connected
no synchronization
exit-address-family
!
address-family ipv4 vrf kunde-a
redistribute connected
no synchronization
exit-address-family
!
mpls ldp router-id Loopback0 force
!
line con 0
line aux 0
line vty 0 4
exec-timeout 0 0
password cisco
login
!
Eksempel på P router
!
hostname RR8
!
enable secret 5 $1$hXG5$ioYcYvc9P//dgR4CKFLS./
enable password class
!
ip cef
!
interface Loopback0
ip address 8.8.8.8 255.255.255.255
!
interface FastEthernet0/0
ip address 172.16.7.2 255.255.255.252
ip router isis
mpls ip
!
interface FastEthernet0/1
ip address 172.16.5.2 255.255.255.252
ip router isis
mpls ip
!
interface Serial0/3/0
ip address 172.16.8.1 255.255.255.252
ip router isis
mpls ip
!
router isis
net 49.0001.0080.0800.8008.00
is-type level-2-only
passive-interface Loopback0
!
line con 0
line aux 0
line vty 0 4
password cisco
no login