Add steps for configuring dhcp
This commit is contained in:
parent
b1ddc0b12f
commit
bfad22a4de
1 changed files with 15 additions and 3 deletions
|
@ -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
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue