Add steps for configuring dhcp

This commit is contained in:
Manuel Thalmann 2023-10-19 09:56:23 +02:00
parent b1ddc0b12f
commit bfad22a4de

View file

@ -19,7 +19,7 @@ ip nat outside
no shutdown no shutdown
interface gi0/1 interface gi0/1
ip address 192.168.1.254 255.255.255.0 ip address 192.168.1.1 255.255.255.0
ip nat outside ip nat outside
no shutdown no shutdown
@ -32,12 +32,24 @@ access-list 24 permit 192.168.1.0 0.0.0.255
# ip nat inside source { list <acln> pool <name> [overload] | static <local-ip><global-ip> } # ip nat inside source { list <acln> pool <name> [overload] | static <local-ip><global-ip> }
ip nat inside source list 24 pool okayletsgo overload ip nat inside source list 24 pool okayletsgo overload
# Configure DHCP
ip dhcp excluded-address 192.168.1.1 192.168.1.1
ip dhcp pool AddSomeProtein
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 208.67.222.222
exit
# Enable DHCP for inner network
service dhcp gi0/1
exit
``` ```
## Client Configuration ## Client Configuration
- `XX`: Computer Number - `XX`: Computer Number
```sh ```sh
ifconfig eth0 192.168.1.XX 255.255.255.0 ifconfig eth0 0.0.0.0
route add default gw 192.168.1.254 dhclient eth0
``` ```