© 2015 Mohamed Samir YouTube channel All rights reserved. Samir CCNP-SWITCHING Mohamed Samir YouTube channel Double CCIEs #27042(R/S&SP)
© 2015 Mohamed Samir YouTube channel All rights reserved. Samir Part IV: Multilayer Switching
© 2015 Mohamed Samir YouTube channel All rights reserved. Samir Configuring DHCP
© 2015 Mohamed Samir YouTube channel All rights reserved. Samir Using DHCP with a Multilayer Switch Dynamic Host Configuration Protocol (DHCP) : DHCP client/server. DHCP negotiation 1-The client sends a “DHCP Discover” message as a broadcast: 2. A DHCP server replies with a “DHCP Offer” message: IP address, subnet mask, default gateway, and some parameters for using the IP address The server also includes its own IP address 3. The client sends a “DHCP Request” message The DHCP server replies with a “DHCP ACK” message: The IP address and all parameters for its use are returned to the client as formal approval to begin using the address This design would require one DHCP server for each broadcast domain How to configure : DHCP server DHCP relay
© 2015 Mohamed Samir YouTube channel All rights reserved. Samir Configuring an IPv4 DHCP Server Switch(config)# interface vlan10 Switch(config-if)# ip address Switch(config-if)# no shutdown Switch(config-if)# exit Switch(config)# ip dhcp excluded-address Switch(config)# ip dhcp pool Users Switch(dhcp-config)# network Switch(dhcp-config)# default-router Switch(dhcp-config)# exit show ip dhcp binding
© 2015 Mohamed Samir YouTube channel All rights reserved. Samir An address lease is normally released or cleared by the client that is using it. Switch# clear ip dhcp binding {* | ip-address} Configuring a Manual Address Binding and client identifier b6.5bc0.b5 Switch(config)# ip dhcp pool my-pc Switch(dhcp-config)# host Switch(dhcp-config)# client-identifier b6.5bc0.b5 Switch(dhcp-config)# exit Switch(config)# exit Switch# debug ip dhcp server Mar 31 02:40:35.528: DHCPD: Sending notification of DISCOVER: Mar 31 02:40:35.528: DHCPD: htype 1 chaddr 0050.b65b.c0b5 Mar 31 02:40:35.528: DHCPD: interface = Vlan1 Mar 31 02:40:35.528: DHCPD: class id 4d e30 Mar 31 02:40:35.528: DHCPD: out_vlan_id 0 Mar 31 02:40:37.541: DHCPD: assigned IP address to client b6.5bc0.b5. (2069 0) Mar 31 02:40:37.541: DHCPD: DHCPOFFER notify setup address mask Mar 31 02:40:37.541: DHCPD: Sending notification of ASSIGNMENT: Mar 31 02:40:37.541: DHCPD: address mask Mar 31 02:40:37.541: DHCPD: htype 1 chaddr 0050.b65b.c0b5 Mar 31 02:40:37.541: DHCPD: lease time remaining (secs) = Mar 31 02:40:37.541: DHCPD: interface = Vlan1 Mar 31 02:40:37.541: DHCPD: out_vlan_id 0
© 2015 Mohamed Samir YouTube channel All rights reserved. Samir Configuring DHCP Options Switch(dhcp-config)# option option-num value
© 2015 Mohamed Samir YouTube channel All rights reserved. Samir Configuring a DHCP Relay Switch(config)# interface vlan5 Switch(config-if)# ip address Switch(config-if)# ip helper-address Switch(config-if)# exit
© 2015 Mohamed Samir YouTube channel All rights reserved. Samir Configuring DHCP to Support IPv6 Stateless Autoconfiguration DHCPv6 Switch(config)# ipv6 dhcp pool v6-users Switch(config-dhcpv6)# address prefix 2001:db8:a::/64 Switch(config-dhcpv6)# dns-server 2001:db8:c12::10 Switch(config-dhcpv6)# domain-name mydomain.com Switch(config-dhcpv6)# exit Switch(config)# interface vlan 5 Switch(config-if)# ipv6 address 2001:db8:a::1/64 Switch(config-if)# ipv6 dhcp server v6-users Switch(config-if)# no shutdown
© 2015 Mohamed Samir YouTube channel All rights reserved. Samir Configuring a DHCPv6 Relay Agent Switch(config-if)# ipv6 dhcp relay destination ipv6-address Switch# show ipv6 dhcp pool DHCPv6 pool: v6-users Domain name: myV6domain.net Active clients: 1 Switch# Switch# show ipv6 dhcp binding Client: FE80::DA5:D707:B5F2:8E81 (Vlan1) DUID: C482DC48508B164FD IA NA: IA ID 0x220050B6, T1 0, T2 0 Switch# clear ipv6 dhcp binding {* | ipv6-address}
© 2015 Mohamed Samir YouTube channel All rights reserved. Samir Any questions ?
© 2015 Mohamed Samir YouTube channel All rights reserved. Samir Thank you for your time ! شكرا جزاكم الله خير