Skip to content

Instantly share code, notes, and snippets.

@davidcrx
Last active March 20, 2018 17:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidcrx/e80880200410448facc1ae3860de9f70 to your computer and use it in GitHub Desktop.
Save davidcrx/e80880200410448facc1ae3860de9f70 to your computer and use it in GitHub Desktop.
DHCP Server
!Router R2 configuration
enable
conf t
interface serial 0/0/1
ip address 192.168.101.1 255.255.255.0
no shutdown
end
conf t
ip dhcp excluded-address 192.168.102.1 192.168.102.3
end
!Create DHCP Pool
conf t
ip dhcp pool N3
network 192.168.102.0 255.255.255.0
default-router 192.168.102.1
end
!set ip route
conf t
ip route 192.168.102.0 255.255.255.0 192.168.101.2
!Router R3 configuration
enable
conf t
interface serial 0/0/0
ip address 192.168.101.2 255.255.255.0
no shutdown
end
conf t
interface GigabitEthernet 0/0
ip address 192.168.102.1 255.255.255.0
no shutdown
ip helper-address 192.168.101.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment