티스토리 뷰

[기본설정]

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

댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
more
«   2025/12   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31
글 보관함