MPLS AToM 以太网接入方式

  好久没写博客了,闲着无聊,写一篇: 某企业利用运营商MPLS骨干网组网,想要详细了解mpls atom及ospf等相关知识,各位自己查一下资料,这里就不累述了,这里仅给出了设备的配置。

1.场景:某企业总部及几个分支机构租用运营商的MPLS线路组网,全网跑OSPF协议,利用 MPLS 实现点到点的二层服务。配置包括运营商里的设备及总部、分支机构的配置,为了更加接近实际工作情况,分支机构有的采用子接口,有的采用物理接口接入MPLS骨干网。

2.网络拓扑:

上面的拓扑中分支机构2、分子机构3采用子接口方式接入,分子结构4采用主接口接入方式;总部肯定采用子接口接入方式(没啥好说的)。

3.设备配置

R8

 

R8#show run
Building configuration...

Current configuration : 1934 bytes
!
! Last configuration change at 12:58:11 EET Wed Aug 29 2018
!
version 15.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R8
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
clock timezone EET 2 0
mmi polling-interval 60
no mmi auto-configure
no mmi pvc
mmi snmp-timeout 180
!
no ip domain lookup
ip cef
no ipv6 cef
!
multilink bundle-name authenticated
!
redundancy
!
interface Loopback0
 ip address 8.8.8.8 255.255.255.255
 ip ospf 1 area 0
 ip ospf cost 1
!
interface Ethernet0/0
 no ip address
!
interface Ethernet0/0.100
 encapsulation dot1Q 100
 ip address 48.1.1.8 255.255.255.0
 ip ospf hello-interval 1
 ip ospf priority 20
 ip ospf 1 area 0
 ip ospf cost 1
!
interface Ethernet0/0.106
 encapsulation dot1Q 106
 ip address 16.1.1.8 255.255.255.0
 ip ospf hello-interval 1
 ip ospf priority 20
 ip ospf 1 area 6
 ip ospf cost 1
!
interface Ethernet0/0.107
 encapsulation dot1Q 107
 ip address 17.1.1.8 255.255.255.0
 ip ospf hello-interval 1
 ip ospf priority 20
 ip ospf 1 area 7
 ip ospf cost 1
!
interface Ethernet0/0.200
 encapsulation dot1Q 200
 ip address 200.1.1.8 255.255.255.0
!
!
router ospf 1
 router-id 8.8.8.8
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!

!
!
line con 0
 exec-timeout 0 0
 logging synchronous
line aux 0
line vty 0 4
 login
 transport input none
!
!
end

R8#show mpls ldp neighbor
R8#show mpls forwarding
no MPLS apps enabled or MPLS not enabled on any interfaces

R8#show mpls forwarding detail
no MPLS apps enabled or MPLS not enabled on any interfaces

R8#show ip ospf nei

Neighbor ID     Pri   State           Dead Time   Address         Interface
4.4.4.4          10   FULL/DR         00:00:03    48.1.1.4        Ethernet0/0.100
6.6.6.6          10   FULL/DR         00:00:03    16.1.1.6        Ethernet0/0.106
7.7.7.7          10   FULL/DR         00:00:03    17.1.1.7        Ethernet0/0.107
R8#show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
       a - application route
       + - replicated route, % - next hop override

Gateway of last resort is not set

      4.0.0.0/32 is subnetted, 1 subnets
O        4.4.4.4 [110/2] via 48.1.1.4, 00:12:30, Ethernet0/0.100
      6.0.0.0/32 is subnetted, 1 subnets
O        6.6.6.6 [110/2] via 16.1.1.6, 00:12:30, Ethernet0/0.106
      7.0.0.0/32 is subnetted, 1 subnets
O        7.7.7.7 [110/2] via 17.1.1.7, 00:12:30, Ethernet0/0.107
      8.0.0.0/32 is subnetted, 1 subnets
C        8.8.8.8 is directly connected, Loopback0
      16.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C        16.1.1.0/24 is directly connected, Ethernet0/0.106
L        16.1.1.8/32 is directly connected, Ethernet0/0.106
      17.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C        17.1.1.0/24 is directly connected, Ethernet0/0.107
L        17.1.1.8/32 is directly connected, Ethernet0/0.107
      48.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C        48.1.1.0/24 is directly connected, Ethernet0/0.100
L        48.1.1.8/32 is directly connected, Ethernet0/0.100
      200.1.1.0/24 is variably subnetted, 2 subnets, 2 masks
C        200.1.1.0/24 is directly connected, Ethernet0/0.200
L        200.1.1.8/32 is directly connected, Ethernet0/0.200
R8#wr
Building configuration...
[OK]
R8#
R8#
R8#
R8#
R8#show cdp nei
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
                  S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone,
                  D - Remote, C - CVTA, M - Two-port Mac Relay

Device ID        Local Intrfce     Holdtme    Capability  Platform  Port ID
R7-SiteB         Eth 0/0.107       167              R B   Linux Uni Eth 0/0
R1-PE            Eth 0/0           163              R B   Linux Uni Eth 0/0

Total cdp entries displayed : 2

 

 

================

 

R1-PE:

 


R1-PE#show run
Building configuration...

Current configuration : 1844 bytes
!
! Last configuration change at 13:04:37 EET Wed Aug 29 2018
!
version 15.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1-PE
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
clock timezone EET 2 0
mmi polling-interval 60
no mmi auto-configure
no mmi pvc
mmi snmp-timeout 180
!
!
no ip domain lookup
ip cef
no ipv6 cef
!
multilink bundle-name authenticated
mpls label range 100 199
!
!
!
interface Loopback0
 ip address 1.1.1.1 255.255.255.255
 ip ospf 1 area 0
 ip ospf cost 1
!
interface Ethernet0/0
 no ip address
!
interface Ethernet0/0.100
 encapsulation dot1Q 100
 xconnect 3.3.3.3 100 encapsulation mpls
!
interface Ethernet0/0.106
 encapsulation dot1Q 106
 xconnect 3.3.3.3 106 encapsulation mpls
!
interface Ethernet0/0.107
 encapsulation dot1Q 107
 xconnect 3.3.3.3 107 encapsulation mpls
!
interface Ethernet0/0.200
 encapsulation dot1Q 200
 xconnect 3.3.3.3 200 encapsulation mpls
!
interface Serial1/0
 mtu 1547
 ip address 12.1.1.1 255.255.255.0
 ip ospf hello-interval 1
 ip ospf 1 area 0
 mpls ip
 serial restart-delay 0
!
router ospf 1
 router-id 1.1.1.1
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
!
!
mpls ldp router-id Loopback0
!
control-plane
!
line con 0
 exec-timeout 0 0
 logging synchronous
line aux 0
line vty 0 4
 login
 transport input none
!
!
end

R1-PE#show mpls ldp neighbor
    Peer LDP Ident: 2.2.2.2:0; Local LDP Ident 1.1.1.1:0
        TCP connection: 2.2.2.2.37331 - 1.1.1.1.646
        State: Oper; Msgs sent/rcvd: 263/269; Downstream
        Up time: 03:39:05
        LDP discovery sources:
          Serial1/0, Src IP addr: 12.1.1.2
        Addresses bound to peer LDP Ident:
          12.1.1.2        2.2.2.2         23.1.1.2        
    Peer LDP Ident: 3.3.3.3:0; Local LDP Ident 1.1.1.1:0
        TCP connection: 3.3.3.3.21406 - 1.1.1.1.646
        State: Oper; Msgs sent/rcvd: 86/81; Downstream
        Up time: 00:59:28
        LDP discovery sources:
          Targeted Hello 1.1.1.1 -> 3.3.3.3, active, passive
        Addresses bound to peer LDP Ident:
          23.1.1.3        3.3.3.3         
R1-PE#show mpls forwarding
Local      Outgoing   Prefix           Bytes Label   Outgoing   Next Hop    
Label      Label      or Tunnel Id     Switched      interface              
100        Pop Label  2.2.2.2/32       0             Se1/0      point2point
101        No Label   l2ckt(106)       295463        Et0/0.106  point2point
102        No Label   l2ckt(107)       122929        Et0/0.107  point2point
103        No Label   l2ckt(100)       267250    

  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值