MPLS
ISP 라우터
Interface 설정
ISP(config)# interface GigabitEthernet0/0
ISP(config-if)# ip address 203.0.113.1 255.255.255.252
ISP(config-if)# duplex auto
ISP(config-if)# speed auto
ISP(config-if)# media-type rj45
ISP(config-if)# no shutdown
ISP(config-if)# exit
ISP(config)#
BGP 설정
ISP(config)# router bgp 65000
ISP(config-router)# bgp log-neighbor-changes
ISP(config-router)# neighbor 203.0.113.2 remote-as 65001
ISP(config-router)# address-family ipv4
ISP(config-router-af)# network 0.0.0.0
ISP(config-router-af)# neighbor 203.0.113.2 activate
ISP(config-router-af)# exit
ISP(config-router)# exit
ISP(config)# exit
PE1 라우터
Interface 설정
PE1(config)# interface Loopback0
PE1(config-if)# ip address 1.1.1.1 255.255.255.255
PE1(config-if)# exit
PE1(config)# interface GigabitEthernet0/0
PE1(config-if)# ip address 10.0.0.1 255.255.255.252
PE1(config-if)# duplex auto
PE1(config-if)# speed auto
PE1(config-if)# media-type rj45
PE1(config-if)# mpls ip
PE1(config-if)# no shutdown
PE1(config-if)# exit
PE1(config)# interface GigabitEthernet0/1
PE1(config-if)# ip address 203.0.113.2 255.255.255.252
PE1(config-if)# duplex auto
PE1(config-if)# speed auto
PE1(config-if)# media-type rj45
PE1(config-if)# no shutdown
PE1(config-if)# exit
OSPF 설정
PE1(config)# router ospf 1
PE1(config-router)# network 1.1.1.1 0.0.0.0 area 0
PE1(config-router)# network 10.0.0.0 0.0.0.3 area 0
PE1(config-router)# exit
BGP 설정
PE1(config)# router bgp 65001
PE1(config-router)# bgp log-neighbor-changes
PE1(config-router)# neighbor 3.3.3.3 remote-as 65001
PE1(config-router)# neighbor 3.3.3.3 update-source Loopback0
PE1(config-router)# neighbor 203.0.113.1 remote-as 65000
PE1(config-router)# address-family ipv4
PE1(config-router-af)# network 0.0.0.0
PE1(config-router-af)# neighbor 3.3.3.3 activate
PE1(config-router-af)# neighbor 3.3.3.3 next-hop-self
PE1(config-router-af)# neighbor 203.0.113.1 activate
PE1(config-router-af)# neighbor 203.0.113.1 next-hop-self
PE1(config-router-af)# exit
PE1(config-router)# exit
PE1(config)# exit
P 라우터
Interface 설정
P(config)# interface Loopback0
P(config-if)# ip address 2.2.2.2 255.255.255.255
P(config-if)# exit
P(config)# interface GigabitEthernet0/0
P(config-if)# ip address 10.0.0.2 255.255.255.252
P(config-if)# duplex auto
P(config-if)# speed auto
P(config-if)# media-type rj45
P(config-if)# mpls ip
P(config-if)# no shutdown
P(config-if)# exit
P(config)# interface GigabitEthernet0/1
P(config-if)# ip address 10.0.1.1 255.255.255.252
P(config-if)# duplex auto
P(config-if)# speed auto
P(config-if)# media-type rj45
P(config-if)# mpls ip
P(config-if)# no shutdown
P(config-if)# exit
OSPF 설정
P(config)# router ospf 1
P(config-router)# network 2.2.2.2 0.0.0.0 area 0
P(config-router)# network 10.0.0.0 0.0.0.3 area 0
P(config-router)# network 10.0.1.0 0.0.0.3 area 0
P(config-router)# exit
P(config)# exit
PE2 라우터
Interface 설정
PE2(config)# interface Loopback0
PE2(config-if)# ip address 3.3.3.3 255.255.255.255
PE2(config-if)# exit
PE2(config)# interface GigabitEthernet0/0
PE2(config-if)# ip address 10.0.1.2 255.255.255.252
PE2(config-if)# duplex auto
PE2(config-if)# speed auto
PE2(config-if)# media-type rj45
PE2(config-if)# mpls ip
PE2(config-if)# no shutdown
PE2(config-if)# exit
PE2(config)# interface GigabitEthernet0/1
PE2(config-if)# ip address 192.168.2.1 255.255.255.252
PE2(config-if)# duplex auto
PE2(config-if)# speed auto
PE2(config-if)# media-type rj45
PE2(config-if)# no shutdown
PE2(config-if)# exit
OSPF 설정
PE2(config)# router ospf 1
PE2(config-router)# network 3.3.3.3 0.0.0.0 area 0
PE2(config-router)# network 10.0.1.0 0.0.0.3 area 0
PE2(config-router)# exit
PE2(config)#
BGP 설정
PE2(config)# router bgp 65001
PE2(config-router)# bgp log-neighbor-changes
PE2(config-router)# neighbor 1.1.1.1 remote-as 65001
PE2(config-router)# neighbor 1.1.1.1 update-source Loopback0
PE2(config-router)# neighbor 192.168.2.2 remote-as 65002
PE2(config-router)# address-family ipv4
PE2(config-router-af)# network 0.0.0.0
PE2(config-router-af)# network 192.168.2.0 mask 255.255.255.252
PE2(config-router-af)# neighbor 1.1.1.1 activate
PE2(config-router-af)# neighbor 1.1.1.1 next-hop-self
PE2(config-router-af)# neighbor 192.168.2.2 activate
PE2(config-router-af)# exit
PE2(config-router)# exit
PE2(config)# exit
CE 라우터
Interface 설정
CE(config)# interface GigabitEthernet0/0
CE(config-if)# ip address 192.168.2.2 255.255.255.252
CE(config-if)# duplex auto
CE(config-if)# speed auto
CE(config-if)# media-type rj45
CE(config-if)# no shutdown
CE(config-if)# exit
BGP 설정
설정 검증
PE1라우터 MPLS 테이블
P라우터 MPLS 테이블
PE2라우터 MPLS 테이블
Tracertoute를 통한 라벨 스위칭 확인(PE1 → PE2)
BGP 통신 확인(ISP → CE)
bgp 세션
728x90
'Network > 시스코 보안 아카데미 1기' 카테고리의 다른 글
[시스코 보안 아카데미 1기] IPv6 실습, IPv6 Tunnel (0) | 2024.12.20 |
---|---|
[시스코 보안 아카데미 1기] Multicast 실습 (0) | 2024.12.20 |
[시스코 보안 아카데미 1기] ACI , Cisco APIC 설정 (0) | 2024.12.20 |
[시스코 보안 아카데미 1기] Time-Based , Reflexive, Dynamic ACL, Stateful Inspection (0) | 2024.12.19 |
[시스코 보안 아카데미 1기] PACLs, VACLs, Private Vlan (0) | 2024.12.19 |