DHCP
서버를 DHCP 서버로 설정
Server0 설정(DHCP+DNS)
PC3
서버를 DNS 서버로 설정
라우터를 DHCP 서버로 설정
R4
Router>en
Router#conf t
Router(config)#ip dhcp pool DHCP
Router(dhcp-config)#network 192.168.20.0 255.255.255.0
Router(dhcp-config)#default-router 192.168.20.254
Router(dhcp-config)#dns-server 192.168.10.2
Router(dhcp-config)#exit
Router(config)#int f0/1
Router(config-if)#ip addr 192.168.20.254 255.255.255.0
Router(config-if)#no sh
Router(config)#int f0/0
Router(config-if)#ip addr 10.0.0.2 255.255.255.0
Router(config-if)#no sh
Router(config)#ip route 192.168.10.0 255.255.255.0 10.0.0.1
R3
Router>en
Router#conf t
Router(config)#int f0/1
Router(config-if)#ip addr 192.168.10.254 255.255.255.0
Router(config-if)#no sh
Router(config)#int f0/0
Router(config-if)#ip addr 10.0.0.1 255.255.255.0
Router(config-if)#no sh
Router(config)#ip route 192.168.20.0 255.255.255.0 10.0.0.2
PC4
'네트워크 > lab' 카테고리의 다른 글
IPv4, IPv6 (0) | 2024.04.05 |
---|---|
GNS 연결, access-list, Network-Automation (0) | 2024.04.05 |
Loopback interface, Sub-interface (0) | 2024.04.04 |
Router&Switch 접속 및 Passwd 설정 (0) | 2024.04.03 |
기본 IP 입력 (0) | 2024.04.03 |