
Q. 라우터를 DHCP 서버로 설정한 후 PC, SWITCH 등 호스트들이 서버를 통해 IP를 획득하게 하시오.
ROUTER IP: 30.1.1.0/24
GW(GATEWAY): 30.1.1.254
DNS: 8.8.8.8
[ Router ]
en
conf t
int f0/1
no sh
ip add 192.168.1.1 255.255.255.0
exit
ip dhcp pool
👀확인
sh ip dhcp binding
[ Switch ]
en
conf t
int vlan 1
no sh
2. NAT 설정으로 외부 연결 테스트를 하시오.

👣 DHCP SERVER 구축
: 자동 IP 할당을 위해 서버를 만들어 줘야함.
en
conf t
ip dhcp pool DHCP👈그냥 이름
(dhcp-config에서 입력해야함)
network 30.1.1.0 255.255.255.0
default-router 30.1.1.254
dns-server 8.8.8.8