##기본설정.txt 기본설정하기.
##SW2
int vlan 10
standby 10 ip 10.10.10.254
standby 10 priority 110
standby 10 track fa 1/12 50
standby 10 preempt delay minimum 60
standby 10 authentication md5 key-string ccnp
int vlan 20
standby 20 ip 10.10.20.254
standby 20 preempt
standby 20 authentication md5 key-string ccnp
##SW3
int vlan 10
standby 10 ip 10.10.10.254
standby 10 preempt
standby 10 authentication md5 key-string ccnp
int vlan 20
standby 20 ip 10.10.20.254
standby 20 priority 110
standby 20 track fa 1/14 50
standby 20 authentication md5 key-string ccnp
===========확인하기
##SW2
sh standby bri
##DHCP설정##
##SW4
en
conf t
ip dhcp pool VLAN_10
network 10.10.10.0 255.255.255.0
default-router 10.10.10.254
dns-server 168.126.63.1 168.126.63.2
lease 1
exit
ip dhcp pool VLAN_20
network 10.10.20.0 255.255.255.0
default-router 10.10.20.254
dns-server 128.126.63.1 168.126.63.2
lease infinite
exit
//제외하여야 할 주소
ip dhcp excluded-address 10.10.10.252 10.10.10.254
ip dhcp excluded-address 10.10.20.252 10.10.20.254
===================================
DHCP설정
##SW2
int vlan 10
ip helper-address 10.10.23.2
int vlan 20
ip helper-address 10.10.23.2
##SW3
int vlan 10
ip helper-address 10.10.34.2
int vlan 20
ip helper-address 10.10.34.2
##R1,R2
int fa 0/0
ip address dhcp
===================================
PAT설정
##SW4
en
conf t
access-list 10 permit 10.10.10.0 0.0.0.255
access-list 10 permit 10.10.20.0 0.0.0.255
access-list 10 permit 10.10.23.0 0.0.0.3
access-list 10 permit 10.10.34.0 0.0.0.3
ip nat inside source list 10 int fa 1/4 overload
int fa 1/12
ip nat inside
int fa 1/14
ip nat inside
int fa 1/4
ip nat outside
ip route 0.0.0.0 0.0.0.0 fa 1/4
//do sh ip route로 확인
##R1
ping 59.5.100.254
//된다.
ping 4.4.4.4
//닿지않는다.
##SW2
en
conf t
ip route 0.0.0.0 0.0.0.0 fa 1/12
##SW3
en
conf t
ip route 0.0.0.0 0.0.0.0 fa 1/14
##SW4
en
conf t
router ospf 1
default-information originate
//SW2, 3 번에서 sh ip route를 해보면 sw4번이 주소를 요구한 것을 알 수 있다.
##R1
ping 4.4.4.4 repeat 100000
'개인 공부방 > CCNP(S/W)' 카테고리의 다른 글
13일차-1 스위치보안 & STP 보안 (0) | 2011.11.23 |
---|---|
12일차-2 포트보안 (0) | 2011.11.22 |
10일차-3 (0) | 2011.11.18 |
10일차-2 (0) | 2011.11.18 |
10일차-1 DHCP (0) | 2011.11.18 |