-
Notifications
You must be signed in to change notification settings - Fork 0
/
10DHCP.txt
109 lines (92 loc) · 3.39 KB
/
10DHCP.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
DHCP Configuration
===================
1. HQ Router Configuration
----------------------------
Router>en
Router#conf terminal
Router(config)#hostname HQ
HQ(config)#interface f0/0
HQ(config-if)#description Admin
HQ(config-if)#ip address 172.16.10.2 255.255.255.192
HQ(config-if)#no shutdown
HQ(config-if)#exit
HQ(config)#interface f0/1
HQ(config-if)#description HR
HQ(config-if)#ip address 172.16.5.2 255.255.255.224
HQ(config-if)#no shutdown
HQ(config-if)#exit
HQ(config)#interface s0/3/1
HQ(config-if)#ip address 12.12.12.1 255.255.255.252
HQ(config-if)#no shutdown
HQ(config-if)#exit
DHCP Configuration for Admin Department
-----------------------------------------
HQ(config)#ip dhcp pool Admin_Pool
HQ(dhcp-config)#network 172.16.10.0 255.255.255.192
HQ(dhcp-config)#default-router 172.16.10.2
HQ(dhcp-config)#dns-server 172.16.10.100
HQ(dhcp-config)#exit
DHCP Configuration for HR Department
--------------------------------------
HQ(config)#ip dhcp pool HR_Pool
HQ(dhcp-config)#network 172.16.5.0 255.255.255.224
HQ(dhcp-config)#default-router 172.16.5.2
HQ(dhcp-config)#dns-server 172.16.10.100
HQ(dhcp-config)#exit
2. Branch-1 Router Configuration
----------------------------------
Router>enable
Router#configure terminal
Router(config)#hostname Branch-1
Branch-1(config)#interface g0/0
Branch-1(config-if)#description IT
Branch-1(config-if)#ip address 172.16.3.2 255.255.255.128
Branch-1(config-if)#no shutdown
Branch-1(config-if)#exit
Branch-1(config)#interface g0/1
Branch-1(config-if)#description Marketing
Branch-1(config-if)#ip address 172.16.4.2 255.255.255.248
Branch-1(config-if)#no shutdown
Branch-1(config-if)#exit
Branch-1(config)#interface g0/2
Branch-1(config-if)#description Sales
Branch-1(config-if)#ip address 172.16.1.2 255.255.255.0
Branch-1(config-if)#no shutdown
Branch-1(config-if)#exit
Branch-1(config)#interface s0/3/0
Branch-1(config-if)#ip address 12.12.12.2 255.255.255.252
Branch-1(config-if)#no shutdown
Branch-1(config-if)#exit
DHCP Configuration for IT Department
--------------------------------------
Branch-1(config)#ip dhcp pool IT_Pool
Branch-1(dhcp-config)#network 172.16.3.0 255.255.255.128
Branch-1(dhcp-config)#default-router 172.16.3.2
Branch-1(dhcp-config)#dns-server 172.16.10.100
Branch-1(dhcp-config)#exit
Exclude Ip Addresses from IT DHCP pool
----------------------------------------
Branch-1(config)#ip dhcp excluded-address 172.16.3.1 172.16.3.5
DHCP Configuration for Sales Department
-----------------------------------------
Branch-1(config)#ip dhcp pool Sales_Pool
Branch-1(dhcp-config)#network 172.16.1.0 255.255.255.0
Branch-1(dhcp-config)#default-router 172.16.1.2
Branch-1(dhcp-config)#dns-server 172.16.10.100
Branch-1(dhcp-config)#exit
DHCP Configuration for Marketing Department
---------------------------------------------
Branch-1(config)#ip dhcp pool Marketing_Pool
Branch-1(dhcp-config)#network 172.16.4.0 255.255.255.248
Branch-1(dhcp-config)#default-router 172.16.4.2
Branch-1(dhcp-config)#dns-server 172.16.10.100
Branch-1(dhcp-config)#exit
Exclude Ip Addresses from Marketing DHCP pool
-----------------------------------------------
Branch-1(config)#ip dhcp excluded-address 172.16.4.1 172.16.4.5
Branch-1(config)#exit
Show DHCP Pool Information
---------------------------
Branch-1#show ip dhcp pool
Branch-1#show ip dhcp binding
Branch-1#show ip dhcp conflict