bxm's IT Story
동적 라우팅 프로토콜 Test 1 (OSPF) 본문
공통]
conf t
no ip domain lookup
line consol 0
exec-timeout 0
logg sy
exit
line vty 0 4
pass cisco
exit
R1, R2, R3]
int s1/0
no shut
enc fram
fram inverse-arp
clock rate 64000
exit
## Frame-Relay ##
R1]
## 1번답 ##
show frame-relay pvc | include DLCI
int lo0
ip ospf network point-to-point ## 이거 안해주면 32bit로 광고된다.
ip address 8.8.1.1 255.255.255.0
exit
int s1/0.1 m
ip add 8.8.11.1 255.255.255.0
fram map ip 8.8.11.2 102 br
fram map ip 8.8.11.3 103 br
exit
int f0/0
no shut
ip add 8.8.17.1 255.255.255.0
int f0/1
no shut
ip add 8.8.18.1 255.255.255.0
end
R2]
int lo0
ip address 8.8.2.2 255.255.255.0
int s1/0.2 p
ip add 8.8.11.2 255.255.255.0
fram inter 201
end
R3]
int lo0
ip address 8.8.3.3 255.255.255.0
int s1/0.3 p
ip add 8.8.11.3 255.255.255.0
fram inter 301
end
// Ping Test
R1]
ping 8.8.11.2
ping 8.8.11.3
// 2번답 : OSPF 11 및 최상의 컨버전스 타임 구축
// 4번답 : Area 11을 'Totally stuby area' 로 구성
R1]
conf t
router ospf 8
router-id 8.8.1.1
network 8.8.1.1 0.0.0.0 area 11
network 8.8.11.1 0.0.0.0 area 11
area 11 stub no-summary
exit
int s1/0.1 m
ip ospf network point-to-multi
ip ospf hello-interval 10
exit
int f0/0
no shut
ip add 8.8.17.1 255.255.255.0
exit
int f0/1
no shut
ip add 8.8.18.1 255.255.255.0
end
R2]
conf t
router ospf 8
router-id 8.8.2.2
network 8.8.2.2 0.0.0.0 area 11
network 8.8.11.2 0.0.0.0 area 11
area 11 stub
exit
int s1/0.2 p
ip ospf network point-to-point
end
R3]
conf t
router ospf 8
router-id 8.8.3.3
network 8.8.3.3 0.0.0.0 area 11
network 8.8.11.3 0.0.0.0 area 11
area 11 stub
exit
int s1/0.3 p
ip ospf network point-to-point
end
// 윗쪽 OSPF 맺은 후 Ping Test
R1]
ping 8.8.2.2
ping 8.8.3.3
R2]
ping 8.8.1.1
ping 8.8.3.3
R3]
ping 8.8.1.1
ping 8.8.2.2
## VLAN 100 및 Trunking, Access ##
SW1 ~ SW4]
conf t
vlan 100
exit
SW1, SW3] - 이 구간은 Trunking으로 구현하라고 문제 제시
int range f1/1 - 2
sw tr enc dot
sw mo tr
end
SW2, SW4] - 이 구간은 Access로 구현하라고 문제 제시
int range f1/1 - 2
sw mo ac
sw ac vlan 100
end
## Ether Channel ##
SW1 ~ SW4]
// 연결 상태 확인
show cdp nei
SW1, SW3]
conf t
int range f1/1 - 2
channel-group 1 mo on
end
SW2, SW4]
conf t
int range f1/1 - 2
channel-group 2 mo on
end
SW1, SW3] - Channel 1
show ether summary
SW2, SW4] - Channel 2
show ether summary
## Switch에 IP 할당해주기 ##
SW1]
conf t
int lo0
ip add 8.8.7.7 255.255.255.0
exit
## R1과
int f0/0
no shut
ip add 8.8.17.7 255.255.255.0
exit
## SW2와 (ROUTER 모드이기 때문에 Switchport 모드를 해제해줘야함)
int f1/15
no switchport
ip add 8.8.78.7 255.255.255.0
exit
## SW3과 (L3 스위치기 모드이때문에 VLAN을 통해 IP를 기입해줘야 함)
int vlan 100
ip add 8.8.79.7 255.255.255.0
end
SW2]
conf t
int lo0
ip add 8.8.8.8 255.255.255.0
exit
## R1과
int f0/1
no shut
ip add 8.8.18.8 255.255.255.0
exit
## SW1과 (ROUTER 모드이기 때문에 Switchport 모드를 해제해줘야함)
int f1/15
no switchport
ip add 8.8.78.8 255.255.255.0
exit
## SW4와 (L3 스위치 모드이기 때문에 VLAN을 통해 IP를 기입해줘야 함)
int vlan 100
ip add 8.8.108.8 255.255.255.0
end
SW3]
conf t
int lo0
ip add 8.8.9.9 255.255.255.0
exit
int vlan 100
ip add 8.8.79.9 255.255.255.0
end
SW4]
conf t
int lo0
ip add 8.8.10.10 255.255.255.0
exit
int vlan 100
ip add 8.8.108.10 255.255.255.0
end
## Ping Test ##
R1]
ping 8.8.17.7
ping 8.8.18.8
SW1]
ping 8.8.17.1
ping 8.8.78.8
ping 8.8.79.9
SW2]
ping 8.8.18.1
ping 8.8.78.7
ping 8.8.108.10
SW3]
ping 8.8.79.9
SW4]
ping 8.8.108.8
## L3 Switch 단 OSPF(Area0, Area78, Area108) 구축 ##
R1]
conf t
router ospf 8
network 8.8.17.1 0.0.0.0 area 0
network 8.8.18.1 0.0.0.0 area 0 // 아까 위의 프레임릴레이 공간만 OSPF를 돌렸기에 여기도 추가해줘야함.
end
SW1]
conf t
router ospf 8
router-id 8.8.7.7
network 8.8.7.7 0.0.0.0 area 0
network 8.8.17.7 0.0.0.0 area 0
network 8.8.78.7 0.0.0.0 area 0
network 8.8.79.7 0.0.0.0 area 78
exit
int lo0
ip ospf network point-to-point
end
SW2]
conf t
router ospf 8
router-id 8.8.8.8
network 8.8.8.8 0.0.0.0 area 0
network 8.8.18.8 0.0.0.0 area 0
network 8.8.78.8 0.0.0.0 area 0
network 8.8.108.8 0.0.0.0 area 108
exit
int lo0
ip ospf network point-to-point
end
SW3]
conf t
router ospf 8
router-id 8.8.9.9
network 8.8.9.9 0.0.0.0 area 78
network 8.8.79.9 0.0.0.0 area 78
int lo0
ip ospf network point-to-p
end
SW4]
conf t
router ospf 8
router-id 8.8.10.10
network 8.8.10.10 0.0.0.0 area 108
network 8.8.108.10 0.0.0.0 area 108
exit
int lo0
ip ospf network point-to-p
end
## 라우팅 테이블 및 핑테스트 최종 확인 ##
## Fallback Bridging ##
// 3번답 : Fallback Bridging
IP 라우팅이 안되는 Protocol을 스위칭시킨다. L3포트에서 Layer2 정보를 보고 동작한다.
일반적인 라우팅 경로를 보고 스위칭 시킨다. 라우팅이 안되는 것은 MAC 주소만 보고 전송한다.
1. 네트워크 인터페이스 사이에 라우팅이 가능하지 않은 모든 트래픽을 브리지 하기 위해서 브리지 그룹을 생성한다. |
2. 만약 패킷 목적기 주소가 브리지 테이블에 있다면 브리지 그룹에서 해당 인터페이스로 포워드 되어진다. 그러나 패킷 목적지 주소가 브리지 테이블에 없다면 브리지 그룹안에 모든 포워딩 인터페이스로 플러딩한다. |
3. 폴백 브리징은 스위치와 함꼐 두개 또는 더 많은 vlan 또는 라우티드포트들을 브리지 한다. 그리고 본질적으로 하나의 브리지 도메인 내에 다중 vlan 들을 연결한다. |
4. 폴백 브리징은 멀티레이어 스위치가 경로가 없거나 DECent 과 같은 라우팅이 가능하지 않은 프로토콜에 속하는 트래픽을 포워드하기 위해서 사용한다. |
5. SVI가 시스템에 라우팅 또는 브리징 기능에 1개의 인터페이스로서 스위치 포트들의 vlan을 표현한다. |
SW1]
conf t
bridge 1 protocol vlan-bridge
int f1/9
no switchport
bridge-group 1
exit
int vlan 100
bridge-group 1
end
show run int f1/9
## System log ##
// 5번답 : logging console 확인
R3]
conf t
service timestamps log datetime msec localtime
logging on
logging buffer 8192 errors
logging count
end
show logging
! ! ! 끝 ! ! !
![](https://t1.daumcdn.net/keditor/emoticon/friends1/large/002.gif)
![](https://t1.daumcdn.net/keditor/emoticon/friends1/large/003.gif)
'Network > Cisco (KEDU)' 카테고리의 다른 글
동적 라우팅 프로토콜 Test 2 (OSPF & EIGRP 재분배) (0) | 2021.11.08 |
---|---|
프로젝트 (0) | 2021.07.28 |
P 리허설 (0) | 2021.07.26 |
VLAN 이중화 Test (1시간 안에 풀어야 하는 과제, 배운거임.) (0) | 2021.07.12 |
IPv4와 IPv6의 통신을 위한 터널링 기법 (0) | 2021.07.09 |