728x90

- Topology

[R3]-ge-0/0/2--------------ge-0/0/2-[R1]

- OSFP 네이버 ExStart 상태
root@R3# run show ospf neighbor
R3# run show ospf neighbor 
Address          Interface              State     ID               Pri  Dead
10.10.13.1       ge-0/0/2.0             ExStart   1.1.1.1          128    37

ExStart : database sync 중인 상태.  FULL 상태가 아님.

- 트러블슈팅을 위한 traceoption 설정 ( cisco debug command 와 동일하다고 보면됨)

root@R1# set protocols ospf traceoptions file ospf.log
root@R1# set protocols ospf traceoptions flag error detail
root@R1# commit

- OSFP 로그 확인

root@R1# run show log ospf.log
Nov 18 07:06:06.275796 OSPF packet ignored: MTU mismatch from 10.10.13.3 on intf ge-0/0/2.0 area 0.0.0.0
Nov 18 07:06:10.310038 OSPF packet ignored: MTU mismatch from 10.10.13.3 on intf ge-0/0/2.0 area 0.0.0.0
Nov 18 07:06:14.389599 OSPF packet ignored: MTU mismatch from 10.10.13.3 on intf ge-0/0/2.0 area 0.0.0.0
Nov 18 07:06:19.429346 OSPF packet ignored: MTU mismatch from 10.10.13.3 on intf ge-0/0/2.0 area 0.0.0.0    

> MTU mismatch 확인

-라우터 설정 확인

root@R3# show protocols ospf | display set
set protocols ospf area 0.0.0.0 interface lo0.0 passive
set protocols ospf area 0.0.0.0 interface ge-0/0/2.0 interface-type p2p

root@R3# show interfaces ge-0/0/2 | display set 
set interfaces ge-0/0/2 mtu 9000
set interfaces ge-0/0/2 unit 0 family inet address 10.10.13.3/24

root@R1# show protocols ospf | display set
set protocols ospf area 0.0.0.0 interface lo0.0 passive
set protocols ospf area 0.0.0.0 interface ge-0/0/0.0 interface-type p2p
set protocols ospf traceoptions file ospf.log
set protocols ospf traceoptions flag error detail

root@R1# show interfaces ge-0/0/2 | display set    
set interfaces ge-0/0/2 unit 0 family inet address 10.10.13.1/24

R1 ge-0/0/2 MTU : 1500 ( default )
R3 ge-0/0/2 MTU : 9000

- R3 ge-0/0/2 MTU 수정 ( 9000 -> 1500 )

root@R3# delete interfaces ge-0/0/2 mtu 

- 수정 후 OSPF neighbor 확인

@R3# run show ospf neighbor 
Address          Interface              State     ID               Pri  Dead
10.10.13.1       ge-0/0/2.0             Full      1.1.1.1          128    37

 

 

728x90

- Topology

[R3]-ge-0/0/2--------------ge-0/0/2-[R1]

- OSFP 네이버가 맺어지지 않는 상태
root@R3# run show ospf neighbor
--- 네이버 없음 --

- 트러블슈팅을 위한 traceoption 설정 ( cisco debug command 와 동일하다고 보면됨)

root@R1# set protocols ospf traceoptions file ospf.log
root@R1# set protocols ospf traceoptions flag error detail
root@R1# commit

- OSFP 로그 확인

root@R1# run show log ospf.log
Nov 18 06:30:41 trace_on: Tracing to "/var/log/ospf.log" started
Nov 18 06:30:42 OSPF packet ignored: area mismatch (0.0.0.1) from 10.10.13.3 on intf ge-0/0/2.0 area 0.0.0.0
Nov 18 06:30:42 OSPF rcvd Hello 10.10.13.3 -> 224.0.0.5 (ge-0/0/2.0 IFL 335 area 0.0.0.0)
Nov 18 06:30:42 Version 2, length 44, ID 3.3.3.3, area 0.0.0.1
Nov 18 06:30:42 checksum 0xe618, authtype 0
Nov 18 06:30:42 mask 255.255.255.0, hello_ivl 10, opts 0x12, prio 128
Nov 18 06:30:42 dead_ivl 40, DR 0.0.0.0, BDR 0.0.0.0
-> area mismatch 확인

-라우터 설정 확인

root@R3# show protocols ospf | display set
set protocols ospf area 0.0.0.1 interface lo0.0 passive
set protocols ospf area 0.0.0.1 interface ge-0/0/1.0 interface-type p2p
set protocols ospf area 0.0.0.1 interface ge-0/0/6.0 interface-type p2p
set protocols ospf area 0.0.0.1 interface ge-0/0/2.0 interface-type p2p

root@R1# show protocols ospf | display set
set protocols ospf area 0.0.0.0 interface lo0.0 passive
set protocols ospf area 0.0.0.0 interface ge-0/0/0.0 interface-type p2p
set protocols ospf area 0.0.0.0 interface ge-0/0/2.0 interface-type p2p
set protocols ospf traceoptions file ospf.log
set protocols ospf traceoptions flag error detail

R1 OSPF area : 0.0.0.0 = 0
R3 OSPF area : 0.0.0.1 = 1

- R3 OSPF area 수정 (0.0.0.1 -> 0.0.0.0 )

root@R3# rename protocols ospf area 1 to area 0

- 수정 후 OSPF neighbor 확인

root@R3# run show ospf neighbor
Address      Interface      State    ID        Pri    Dead
10.10.13.1    ge-0/0/2.0   Full      1.1.1.1   128   39

 

 

 

 

728x90

 

 

 

 

 

PE1

set interfaces ge-0/0/1 mac 00:0c:29:c7:28:8b

set interfaces ge-0/0/1 unit 0 family inet address 10.10.8.6/24

set interfaces ge-0/0/1 unit 0 family mpls

 

set interfaces ge-0/0/4 vlan-tagging

set interfaces ge-0/0/4 encapsulation vlan-ccc

set interfaces ge-0/0/4 mac 00:0c:29:c7:28:a9

set interfaces ge-0/0/4 unit 0 encapsulation vlan-ccc

set interfaces ge-0/0/4 unit 0 vlan-id 1000

set interfaces ge-0/0/4 unit 0 family ccc

 

set interfaces lo0 unit 0 family inet address 6.6.6.6/24

set routing-options router-id 6.6.6.6

set routing-options forwarding-table export ECMP

set protocols mpls interface ge-0/0/1.0

set protocols ospf area 0.0.0.0 interface ge-0/0/1.0

set protocols ospf area 0.0.0.0 interface lo0.0 passive

set protocols ldp interface ge-0/0/1.0

set protocols ldp interface lo0.0

set protocols l2circuit neighbor 2.2.2.2 interface ge-0/0/4.0 virtual-circuit-id 1

 

 

PE2

 

set interfaces ge-0/0/1 vlan-tagging

set interfaces ge-0/0/1 encapsulation vlan-ccc

set interfaces ge-0/0/1 mac 00:0c:29:4a:be:1d

set interfaces ge-0/0/1 unit 0 encapsulation vlan-ccc

set interfaces ge-0/0/1 unit 0 vlan-id 1000

set interfaces ge-0/0/1 unit 0 family ccc

 

set interfaces ge-0/0/4 mac 00:0c:29:4a:be:3b

set interfaces ge-0/0/4 unit 0 family inet address 10.10.8.2/24

set interfaces ge-0/0/4 unit 0 family mpls

set interfaces lo0 unit 0 family inet address 2.2.2.2/32

set routing-options router-id 2.2.2.2

set routing-options forwarding-table export ECMP

set protocols mpls interface ge-0/0/4.0

set protocols ospf area 0.0.0.0 interface lo0.0 passive

set protocols ospf area 0.0.0.0 interface ge-0/0/4.0

set protocols ldp interface ge-0/0/4.0

set protocols ldp interface lo0.0

set protocols l2circuit neighbor 6.6.6.6 interface ge-0/0/1.0 virtual-circuit-id 1

 

 

chano@PE2# run show l2circuit connections 

Layer-2 Circuit Connections:

 

Legend for interface status  

Up -- operational            

Dn -- down                   

Neighbor: 6.6.6.6 

    Interface                 Type  St     Time last up          # Up trans

    ge-0/0/1.0(vc 1)          rmt   Up     May 18 11:23:56 2015           1

      Remote PE: 6.6.6.6, Negotiated control-word: Yes (Null)

      Incoming label: 299888, Outgoing label: 300128

      Negotiated PW status TLV: No

      Local interface: ge-0/0/1.0, Status: Up, Encapsulation: VLAN

      Flow Label Transmit: No, Flow Label Receive: No

 

 

chano@PE1> ping mpls l2circuit virtual-circuit 1 neighbor 2.2.2.2      

!!!!!

--- lsping statistics ---

5 packets transmitted, 5 packets received, 0% packet loss

 

 

728x90

 

 

 

 

 

PE1

set interfaces ge-0/0/1 mac 00:0c:29:c7:28:8b

set interfaces ge-0/0/1 unit 0 family inet address 10.10.8.6/24

set interfaces ge-0/0/1 unit 0 family mpls

set interfaces ge-0/0/4 encapsulation ethernet-ccc

set interfaces ge-0/0/4 mac 00:0c:29:c7:28:a9

set interfaces ge-0/0/4 unit 0

set interfaces lo0 unit 0 family inet address 6.6.6.6/24

set routing-options router-id 6.6.6.6

set routing-options forwarding-table export ECMP

set protocols mpls interface ge-0/0/1.0

set protocols ospf area 0.0.0.0 interface ge-0/0/1.0

set protocols ospf area 0.0.0.0 interface lo0.0 passive

set protocols ldp interface ge-0/0/1.0

set protocols ldp interface lo0.0

set protocols l2circuit neighbor 2.2.2.2 interface ge-0/0/4.0 virtual-circuit-id 1

 

 

PE2

set interfaces ge-0/0/1 encapsulation ethernet-ccc

set interfaces ge-0/0/1 mac 00:0c:29:4a:be:1d

set interfaces ge-0/0/1 unit 0

set interfaces ge-0/0/4 mac 00:0c:29:4a:be:3b

set interfaces ge-0/0/4 unit 0 family inet address 10.10.8.2/24

set interfaces ge-0/0/4 unit 0 family mpls

set interfaces lo0 unit 0 family inet address 2.2.2.2/32

set routing-options router-id 2.2.2.2

set routing-options forwarding-table export ECMP

set protocols mpls interface ge-0/0/4.0

set protocols ospf area 0.0.0.0 interface lo0.0 passive

set protocols ospf area 0.0.0.0 interface ge-0/0/4.0

set protocols ldp interface ge-0/0/4.0

set protocols ldp interface lo0.0

set protocols l2circuit neighbor 6.6.6.6 interface ge-0/0/1.0 virtual-circuit-id 1

 

 

chano@PE2# run show l2circuit connections 

Layer-2 Circuit Connections:

 

Legend for interface status  

Up -- operational            

Dn -- down                   

Neighbor: 6.6.6.6 

    Interface                 Type  St     Time last up          # Up trans

    ge-0/0/1.0(vc 1)          rmt   Up     May 15 22:25:06 2015           1

      Remote PE: 6.6.6.6, Negotiated control-word: Yes (Null)

      Incoming label: 299888, Outgoing label: 300128

      Negotiated PW status TLV: No

      Local interface: ge-0/0/1.0, Status: Up, Encapsulation: ETHERNET

      Flow Label Transmit: No, Flow Label Receive: No

 

 

chano@PE1> ping mpls l2circuit virtual-circuit 1 neighbor 2.2.2.2      

!!!!!

--- lsping statistics ---

5 packets transmitted, 5 packets received, 0% packet loss

 

 

 

 

 

+ Recent posts