5 분 소요

OSPF 실습 3일차 -1

image

# 공통 설정

en
conf t
no ip domain lookup
ali exec c conf t
ali exec r show run
ali exec b show ip int b
ali exec i show ip route
line c 0
exec-timeout 0
logg syn
exit
int s1/0
no shut
encap fram
no fram inver
clock rate 64000
exit
hostname 
# IP Address & Mapping 

R1]
conf t
int l0
ip add 11.11.1.1 255.255.255.0
exit
int s1/0
ip add 11.11.12.1 255.255.255.0
fram map ip 11.11.12.2 102 br

R2]
conf t
int l0
ip add 11.11.2.2 255.255.255.0
exit
int s1/0.12 m
ip add 11.11.12.2 255.255.255.0
fram map ip 11.11.12.1 201 br
exit
int s1/0.23 m
ip add 11.11.23.2 255.255.255.0
fram map ip 11.11.23.3 203 br

R3]
conf t
int l0
ip add 11.11.3.3 255.255.255.0
exit
int s1/0.23 m
ip add 11.11.23.3 255.255.255.0
fram map ip 11.11.23.2 302 br
exit
int s1/0.34 p
ip add 11.11.34.3 255.255.255.0
fram inter 304

R1]
conf t
int l0
ip add 11.11.11.11 255.255.255.0
exit
int s1/0.34 p
ip add 11.11.34.11 255.255.255.0
fram inter 403
# OSPF 

R1]
conf t
router ospf 11
router-id 11.11.1.1
network 11.11.1.1 0.0.0.0 area 12
network 11.11.12.1 0.0.0.0 area 12

R2]
conf t
router ospf 11
router-id 11.11.2.2
network 11.11.2.2 0.0.0.0 area 12
network 11.11.12.2 0.0.0.0 area 12
network 11.11.23.2 0.0.0.0 area 0

R3]
conf t
router ospf 11
router-id 11.11.3.3
network 11.11.3.3 0.0.0.0 a 34
network 11.11.23.3 0.0.0.0 a 0
network 11.11.34.3 0.0.0.0 a 34

R4]
conf t
router ospf 11
router-id 11.11.4.4
router-id 11.11.4.4
network 11.11.4.4 0.0.0.0 a 34
network 11.11.34.4 0.0.0.0 a 34
# Neighbor 

R1]
conf t
router ospf 11
neighbor 11.11.12.2

R2]
conf t
int s1/0.23
ip ospf network point-to-multi

R3]
conf t
int s1/0.23
ip ospf network point-to-multi
# Normal Stub
R1] area 12 stub
R2] area 12 stub

- LSA type 5(OE1, OE2)를 차단하고 stub장비에게 디폴트루트를 준다.
# Totally Stub
R1] area 12 stub
R2] area 12 stub no-summary 

- LSA type 3과5 (OIA,OE1,OE2)를 차단하고 stub장비에게 디폴트루트를 준다.
# Nomal NSSA
R3] area 34 nssa default-information-orginate
R4] area 34 nssa


- LSA type 5를 차단하고 stub 장비에게 디폴트루트를 준다. 대신에 차단한 LSA type 5는 N경로(type 7)로 변형되어 stub장비에게 건너간다.

image

# Totally NSSA
R3] area 34 nssa no-summary no-redistribution
R4] area 34 nssa

- LSA type 3과5를 차단하고 stub 장비에게 디폴트루트를 준다. 

OSPF 실습 3일차 - 2

image

#공통 설정

en
conf t
no ip domain lookup
ali exec c conf t
ali exec r show run
ali exec b show ip int b
ali exec i show ip route
line c 0
exec-timeout 0
logg syn
exit

R1] - R3]

int s1/0
no shut
encap fram
no fram inver
clock rate 64000
exit
# VLAN , EtherChannel

SW1]

int vlan 100
exit
do sh cdp nei
int range  f1/1 - 2
sw trunk encap dot1
sw mode trunk
channel-group 1 mode on
end
show ether summary


SW2]

int vlan 100
int range f1/1 - 2
sw mode acc
sw acc vlan 100
channel-group 2 mode on
end
show ether summary


SW3]

int vlan 100
int range f1/1 - 2
sw trunk encap dot1
sw mode trunk
channel-group 1 mode on
end
show ether summary


SW4]

int vlan 100
int range f1/1 - 2
sw mode acc
sw acc vlan 100
channel-group 2 mode on
end
show ether summary
# ip address & mapping

SW1]
int l0
ip add 1.1.7.7 255.255.255.0
exit
int f1/0
no sw
no shut
ip add 1.1.17.7 255.255.255.0
exit
int f1/10
no shut
ip add 1.1.78.7 255.255.255.0
int vlan 100
ip add 1.1.79.7 255.255.255.0


SW2]
int l0
ip add 1.1.8.8 255.255.255.0
exit
int f1/0
ip add 1.1.18.8 255.255.255.0
exit
int vlan 100
ip add 1.1.108.8 255.255.255.0
exit
int f1/10
ip add 1.1.78.8 255.255.255.0


SW3]
int l0
ip add 1.1.9.9 255.255.255.0
exit
int vlan 100
ip add 1.1.79.9 255.255.255.0

SW4]
int l0
ip add 1.1.10.10 255.255.255.0
exit
int vlan 100
ip add 1.1.108.10 255.255.255.0

R1]
int l0
ip add 1.1.1.1 255.255.255.0
exit
int s1/0.1 m
ip add 1.1.11.1 255.255.255.0
fram map ip 1.1.11.2 102 br
fram map ip 1.1.11.3 103 br

R2]
int l0
ip add 1.1.2.2 255.255.255.0
exit
int s1/0.2 p
ip add 1.1.11.2 255.255.255.0
fram inter 201

R3]
int l0
ip add 1.1.3.3 255.255.255.0
exit
int s1/0.3 p
ip add 1.1.11.3 255.255.255.0
fram inter 301
# OSPF

R1]
router ospf 1
router-id 1.1.1.1
network 1.1.1.1 0.0.0.0 a 0
network 1.1.17.1 0.0.0.0 a 0
network 1.1.18.1 0.0.0.0 a 0
network 1.1.11.1 0.0.0.0 a 11

R2]
router ospf 1
router-id 1.1.2.2
network 1.1.2.2 0.0.0.0 a 11
network 1.1.11.2 0.0.0.0 a 11


R3]
router ospf 1
router-id 1.1.3.3
network 1.1.3.3 0.0.0.0 a 11
network 1.1.11.3 0.0.0.0 a 11

SW1]
router ospf 1
router-id 1.1.7.7
network 1.1.7.7 0.0.0.0 a 0
network 1.1.17.7 0.0.0.0 a 0
network 1.1.78.7 0.0.0.0 a 0
network 1.1.79.7 0.0.0.0 a 78

SW2]
router ospf 1
router-id 1.1.8.8
network 1.1.8.8 0.0.0.0 a 0
network 1.1.18.8 0.0.0.0 a 0
network 1.1.78.8 0.0.0.0 a 0
network 1.1.108.8 0.0.0.0 a 108

SW3]
router ospf 1
router-id 1.1.9.9
network 1.1.9.9 0.0.0.0 a 78
network 1.1.79.9 0.0.0.0 a 78

SW4]
router ospf 1
router-id 1.1.10.10
network 1.1.10.10 0.0.0.0 a 108
network 1.1.108.10 0.0.0.0 a 108


R1] -SW4]

int l0
ip ospf network p-to-p
# 그림을 참조하여 OSPF를 설정하되 Area 11 구간은 최적의 컨버젼스 타임을 갖도록 구현하라.

R1]
int s1/0.1
ip ospf network p-to-m 
ip ospf hello-intervel 10

- DR을 뽑게되면 2way 상태에서 wait time이 발생하기때문에, 최적의 컨버젼스 타임을 갖기위해 DR/BDR을 안뽑고 헬로가 적은 10초로 선택.
- DR를 뽑는것끼리 맺고, 안뽑는것 끼리 맺는다.
# OSPF에서 etherchannel 200MB/bps, etherfast 100MB/bps 일때, 서로의 interface 와의 속도가 같아 routing table의 metric값이 동일하게 보일때 조정.

SW1] - SW4]
int vlan 100
bandwidth 200000
exit
router ospf 1
auto-cost reference bandwidth 1000 => ospf는 소수점은 안본다. 그래서 분자를 높여야함.
clear ip ospf process y
clear ip route *
# SW1의 VLAN_100과 FastEth 1/9를 non-IP packet을 forwarding 가능하도록 Fallback Bridge로 구성하라.

SW1]
bridge 1 protocol vlan-bridge => 그룹 생성.
int vlan 100
bridge-group 1
exit
int f1/10
bridge-group 1
# Area 11을 totally stuby area로 구성하라

R1]
Router ospf 1
Area 11 stub no-summary

R2]
Router ospf 1
Area 11 stub

R3]
Router ospf 1
Area 11 stub
# R3에서 system error message를 아래 조건을 참조하여 local buffer에 저장하시오.
  a. buffer에는 erergency, alerts, critical, error들이 저장된다.
  b. buffer size는 8192bytes로 설정하라.
  c. 각 log entry에는 시간이 명시되어야 한다.
  d. 각 entry 별로 발생한 횟수를 알 수 있게 하라.


R3]
logging buffered 8192 3 => a, b 
service timestamps log datetime => c
logging count => d , show logging count로 확인.

댓글남기기