Presentation is loading. Please wait.

Presentation is loading. Please wait.

© 2015 Mohamed Samir YouTube channel All rights reserved. www.mohamedsamir.comMohamed Samir CCNP-SWITCHING 300-115 Mohamed Samir YouTube channel Double.

Similar presentations


Presentation on theme: "© 2015 Mohamed Samir YouTube channel All rights reserved. www.mohamedsamir.comMohamed Samir CCNP-SWITCHING 300-115 Mohamed Samir YouTube channel Double."— Presentation transcript:

1 © 2015 Mohamed Samir YouTube channel All rights reserved. www.mohamedsamir.comMohamed Samir CCNP-SWITCHING 300-115 Mohamed Samir YouTube channel Double CCIEs #27042(R/S&SP)

2 © 2015 Mohamed Samir YouTube channel All rights reserved. www.mohamedsamir.comMohamed Samir Part IV: Multilayer Switching

3 © 2015 Mohamed Samir YouTube channel All rights reserved. www.mohamedsamir.comMohamed Samir Configuring DHCP

4 © 2015 Mohamed Samir YouTube channel All rights reserved. www.mohamedsamir.comMohamed 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

5 © 2015 Mohamed Samir YouTube channel All rights reserved. www.mohamedsamir.comMohamed Samir Configuring an IPv4 DHCP Server Switch(config)# interface vlan10 Switch(config-if)# ip address 192.168.1.1 255.255.255.0 Switch(config-if)# no shutdown Switch(config-if)# exit Switch(config)# ip dhcp excluded-address 192.168.1.2 192.168.1.5 Switch(config)# ip dhcp pool Users Switch(dhcp-config)# network 192.168.1.0 255.255.255.0 Switch(dhcp-config)# default-router 192.168.1.1 Switch(dhcp-config)# exit show ip dhcp binding

6 © 2015 Mohamed Samir YouTube channel All rights reserved. www.mohamedsamir.comMohamed 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 192.168.1.99 and client identifier 0100.50b6.5bc0.b5 Switch(config)# ip dhcp pool my-pc Switch(dhcp-config)# host 192.168.1.99 255.255.255.0 Switch(dhcp-config)# client-identifier 0100.50b6.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 4d53465420352e30 Mar 31 02:40:35.528: DHCPD: out_vlan_id 0 Mar 31 02:40:37.541: DHCPD: assigned IP address 192.168.1.99 to client 0100.50b6.5bc0.b5. (2069 0) Mar 31 02:40:37.541: DHCPD: DHCPOFFER notify setup address 192.168.1.99 mask 255.255.255.0 Mar 31 02:40:37.541: DHCPD: Sending notification of ASSIGNMENT: Mar 31 02:40:37.541: DHCPD: address 192.168.1.99 mask 255.255.255.0 Mar 31 02:40:37.541: DHCPD: htype 1 chaddr 0050.b65b.c0b5 Mar 31 02:40:37.541: DHCPD: lease time remaining (secs) = 86400 Mar 31 02:40:37.541: DHCPD: interface = Vlan1 Mar 31 02:40:37.541: DHCPD: out_vlan_id 0

7 © 2015 Mohamed Samir YouTube channel All rights reserved. www.mohamedsamir.comMohamed Samir Configuring DHCP Options Switch(dhcp-config)# option option-num value

8 © 2015 Mohamed Samir YouTube channel All rights reserved. www.mohamedsamir.comMohamed Samir Configuring a DHCP Relay Switch(config)# interface vlan5 Switch(config-if)# ip address 192.168.1.1 255.255.255.0 Switch(config-if)# ip helper-address 192.168.199.4 Switch(config-if)# exit

9 © 2015 Mohamed Samir YouTube channel All rights reserved. www.mohamedsamir.comMohamed 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

10 © 2015 Mohamed Samir YouTube channel All rights reserved. www.mohamedsamir.comMohamed 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: 00010001194C482DC48508B164FD IA NA: IA ID 0x220050B6, T1 0, T2 0 Switch# clear ipv6 dhcp binding {* | ipv6-address}

11 © 2015 Mohamed Samir YouTube channel All rights reserved. www.mohamedsamir.comMohamed Samir Any questions ?

12 © 2015 Mohamed Samir YouTube channel All rights reserved. www.mohamedsamir.comMohamed Samir Thank you for your time ! شكرا جزاكم الله خير


Download ppt "© 2015 Mohamed Samir YouTube channel All rights reserved. www.mohamedsamir.comMohamed Samir CCNP-SWITCHING 300-115 Mohamed Samir YouTube channel Double."

Similar presentations


Ads by Google