티스토리 뷰

[기본설정]
ena
conf t
no ip domain lookup
line c 0
logg sy
exec-timeout 0
exit
hostname
[SW1]
int lo0
ip add 1.1.1.1 255.255.255.0
exit
int f1/1
no switchport
ip add 1.1.12.1 255.255.255.0
bandwidth 10000
speed 10
exit
int f1/2
no switchport
ip add 1.1.23.1 255.255.255.0
[SW2]
vlan 234
name VLAN234
exit
int f1/1
no switchport
ip add 1.1.12.2 255.255.255.0
bandwidth 10000
speed 10
exit
int f1/2
switchport mode access
switchport access vlan 234
exit
int vlan 234
ip add 1.1.234.252 255.255.255.0
exit
[SW3]
vlan 234
name VLAN234
exit
int f1/2
no switchport
ip add 1.1.23.3 255.255.255.0
exit
int f1/3
switchport mode access
switchport access vlan 234
exit
int vlan 234
ip add 1.1.234.253 255.255.255.0
[SW4]
conf t
no ip routing
vlan 234
name VLAN234
exit
int range f1/1 - 4
swtichport mode access
switchport access vlan 234
exit
PC1]
conf t
no ip routing
ip default-gateway 1.1.234.253
int f0/0
no sh
ip add 1.1.234.1 255.255.255.0
exit
PC2]
conf t
no ip routing
ip default-gateway 1.1.234.253
int f0/0
no sh
ip add 1.1.234.2 255.255.255.0
exit


정적 루트 출구단자 AD 0
SW1] ip route 1.1.234.0 255.255.255. f1/2
정적 루트 다음 단자 AD 1
SW1] ip route 1.1.234.0 255.255.255.0 1.1.23.3
S 1.1.234.0 [1/0] via 1.1.23.3, FastEthernet1/2
[1/0] via 1.1.12.2, FastEthernet1/1
위에서 [1/0] 를 분석해 보면 좌측 숫자는 AD값 우측 숫자는 Metric(목적지 까지 트래픽이 가는데 드는 힘 또는 부하)
속도가 높은 우측라인만 이용하도록 하고 좌측은 백업경로로 활용하기 위하여 좌측으로 돌아가는 트래픽의 AD 값을 열등하게 즉, 현재 스태틱의 AD값 1 보다 크게 설정하면 라우팅 테이블에서 사라지고 우측 라인이 죽게 되면 열등했던 좌측라인의 라우팅 경로가 살아난다.
SW1]
ip route 1.1.234.0 255.255.255.0 f1/1 1.1.12.2 100
ip route 1.1.234.0 255.255.255.0 f1/2 1.1.23.3 1 [기본값 1이므로 생략 가능]
SW2]
----> ip route 0.0.0.0 0.0.0.0 f1/1 1.1.12.1
SW3]
----> ip route 0.0.0.0 0.0.0.0 f1/2 1.1.23.1
'네트워크 > LAB실습 및 이론' 카테고리의 다른 글
| [keduit]BPDU, frame_floating_static-2023/03/05 (0) | 2023.03.08 |
|---|---|
| [keduit]vlan dot1q 라우팅 -2023/03/04 (0) | 2023.03.08 |
| [개념정리]인터넷 주소 및 캡슐화, 인터넷 프로토콜, 라우터 (0) | 2023.02.27 |
| [개념정리] OSI-7Layer, TCP/IP-4Layer (0) | 2023.02.27 |
| [keduit]vlan, native vlan, svi -2023/02/25 (0) | 2023.02.27 |