mpls基本配置
a#sh ru
Building configuration...
Current configuration : 2125 bytes
!
version 12.2
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname "a"
!
!
ip subnet-zero
no ip domain-lookup
!
!
ip vrf vrfd
rd 3:1
route-target export 100:1
route-target import 100:3
!
ip vrf vrfe
rd 3:2
route-target export 100:2
--More-- route-target import 100:4
ip cef
!
!
!
interface Loopback0
ip address
!
interface Ethernet0
no ip address
shutdown
media-type 10BaseT
!
interface Ethernet1
no ip address
shutdown
media-type 10BaseT
!
interface Serial0
ip vrf forwarding vrfd
ip address 192.168.5.1 255.255.255.0
tag-switching mtu 1526
tag-switching ip
--More-- no fair-queue
clockrate 64000
!
interface Serial1
ip vrf forwarding vrfe
ip address 192.168.6.1 255.255.255.0
tag-switching mtu 1526
tag-switching ip
clockrate 64000
!
interface Serial2
no ip address
shutdown
!
interface Serial3
ip address 192.168.1.1 255.255.255.0
tag-switching mtu 1526
tag-switching ip
!
interface TokenRing0
no ip address
shutdown
!
--More-- interface TokenRing1
no ip address
shutdown
!
router ospf 1
log-adjacency-changes
network
!
router ospf 2 vrf vrfe
log-adjacency-changes
redistribute bgp 3 metric 10 subnets
network 192.168.6.0
!
router rip
version 2
!
address-family ipv4 vrf vrfd
version 2
redistribute bgp 3 metric 1
network 192.168.5.0
no auto-summary
exit-address-family
!
--More-- router bgp 3
no synchronization
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor
neighbor
neighbor
no auto-summary
!
address-family ipv4 vrf vrfe
redistribute ospf 2 match internal external 1 external 2
no auto-summary
no synchronization
exit-address-family
!
address-family ipv4 vrf vrfd
redistribute rip
no auto-summary
no synchronization
exit-address-family
!
address-family vpnv4
neighbor
--More-- neighbor
no auto-summary
exit-address-family
!
ip classless
no ip http server
!
no cdp run
!
!
line con 0
logging synchronous
line aux 0
line vty 0 4
!
end
a#
c#sh ru
Building configuration...
Current configuration : 2039 bytes
!
version 12.2
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname c
!
!
ip subnet-zero
no ip domain-lookup
!
!
ip vrf vrff
rd 3:3
route-target export 100:3
route-target import 100:1
route-target import 100:4
!
ip vrf vrfg
--More-- rd 3:4
route-target export 100:4
route-target import 100:2
route-target import 100:3
ip cef
!
!
!
interface Loopback0
ip address
!
interface Ethernet0
no ip address
no ip mroute-cache
shutdown
media-type 10BaseT
!
interface Ethernet1
no ip address
no ip mroute-cache
shutdown
media-type 10BaseT
!
--More-- interface Serial0
ip address 192.168.2.2 255.255.255.0
no ip mroute-cache
tag-switching mtu 1526
tag-switching ip
no fair-queue
clockrate 64000
!
interface Serial1
ip vrf forwarding vrff
ip address 192.168.3.1 255.255.255.0
no ip mroute-cache
tag-switching mtu 1526
tag-switching ip
clockrate 64000
!
interface Serial2
ip vrf forwarding vrfg
ip address 192.168.4.1 255.255.255.0
no ip mroute-cache
tag-switching mtu 1526
tag-switching ip
clockrate 64000
--More-- !
interface Serial3
no ip address
no ip mroute-cache
shutdown
!
router ospf 1
log-adjacency-changes
network
!
router bgp 3
no synchronization
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor
neighbor
neighbor
no auto-summary
!
address-family ipv4 vrf vrfg
redistribute connected
redistribute static
no auto-summary
--More-- no synchronization
exit-address-family
!
address-family ipv4 vrf vrff
neighbor 192.168.3.2 remote-as 4
neighbor 192.168.3.2 activate
no auto-summary
no synchronization
exit-address-family
!
address-family vpnv4
neighbor
neighbor
no auto-summary
exit-address-family
!
ip classless
ip route vrf vrfg
no ip http server
!
!
!
line con 0
--More-- logging synchronous
line aux 0
line vty 0 4
login
!
end
浙公网安备 33010602011771号