티스토리 뷰

r1]

ip dhcp pool VLAN10

network 1.1.10.0 /25

default-router 1.1.10.126

lease 8

dhcp 유효기간8

dns-server 168.126.63.1

class V10

address range 1.1.10.1 1.1.10.125

exit

 

ip dhcp pool VLAN20

network 1.1.10.128 /25

default-router 1.1.10.254

lease 8

dhcp 유효기간8

dns-server 168.126.63.1

class V20

address range 1.1.10.129 1.1.10.253

exit

 

int f0/0.10

ip dhcp client class-id V10

exit

int f0/0.20

ip dhcp client class-id V20

exit

 

 

특정 ip 제외는 conf t에서

ip dhcp excluded-address 1.1.10.254

범위 ip 제외는 conf t에서

ip dhcp excluded-address 1.1.10.100 1.1.10.254

 

 

 

PC1]

int f0/0

no sh

ip add dhcp

 

PC2]

int f0/0

no sh

ip add dhcp

 

 

r1]

int f0/1

no sh

ip add dhcp

학원 컴퓨터 사설망 네트워크 dhcp방식으로 받아옴.

 

 

 

 

conf t

access-list 99 permit 1.1.10.0 0.0.0.255

ip nat inside source list 99 interface f0/1 overload

 

int f0/0.10

ip nat inside

exit

int f0/0.20

ip nat inside

exit

int f0/1

ip nat outside

exit

ip route 0.0.0.0 0.0.0.0 f0/1 10.0.0.1

댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
more
«   2025/04   »
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
글 보관함