Presentation is loading. Please wait.

Presentation is loading. Please wait.

Copyright © 2005 Juniper Networks, Inc. Proprietary and Confidentialwww.juniper.net 4-1 Operating Juniper Networks Routers in the Enterprise Chapter 8:

Similar presentations


Presentation on theme: "Copyright © 2005 Juniper Networks, Inc. Proprietary and Confidentialwww.juniper.net 4-1 Operating Juniper Networks Routers in the Enterprise Chapter 8:"— Presentation transcript:

1 Copyright © 2005 Juniper Networks, Inc. Proprietary and Confidentialwww.juniper.net 4-1 Operating Juniper Networks Routers in the Enterprise Chapter 8: Miscellaneous Features

2 Copyright © 2007 Juniper Networks, Inc. 8-2 Education Services 8-2 Chapter Objectives  After successfully completing this chapter, you will be able to: List some commonly used features found in the enterprise Describe the purpose of VRRP and identify when it is used Configure and monitor VRRP Describe the DHCP services offered in JUNOS software Configure and verify proper operation of DHCP services

3 Copyright © 2007 Juniper Networks, Inc. 8-3 Education Services 8-3 Agenda: Miscellaneous Features  Introduction to VRRP  Configuring VRRP  Monitoring VRRP Operation  Introduction to DHCP Services  Configuring a DHCP Server  Monitoring DHCP Server Operation  Configuring a DHCP/BOOTP Relay Agent  Monitoring DHCP/BOOTP Relay Operation

4 Copyright © 2007 Juniper Networks, Inc. 8-4 Education Services 8-4 What Is VRRP?  An election protocol used to designate one of multiple VRRP routers as master, which assumes the forwarding responsibilities for a LAN Means of incorporating redundancy in a LAN Typically used in high-availability Ethernet networks Defined in RFC 2338

5 Copyright © 2007 Juniper Networks, Inc. 8-5 Education Services 8-5 VRRP Terminology  Virtual router—Virtual entity that functions as default router on LAN; consists of VRID and IP address used as gateway address known as VIP address  VRRP router—Any router participating in VRRP including the master and all backup routers  Master router—VRRP router performing packet forwarding and responding to ARP requests  Backup router—VRRP router available to assume the role of the master router upon failure

6 Copyright © 2007 Juniper Networks, Inc. 8-6 Education Services 8-6 VRRP Mechanics  VRRP communications: Communicates using multicast address (224.0.0.18) Communication interval (every second by default) Communication confined to local network (TTL = 255) Speakers must be configured with common settings (for example, VRID and authentication parameters) Virtual router MAC address used for LAN communications  Determining master: Priority (higher is preferred) Router that owns virtual router’s IP address (always master) Preemption behavior is optional (except when VIP address is owned)

7 Copyright © 2007 Juniper Networks, Inc. 8-7 Education Services 8-7 Intentionally Left Blank

8 Copyright © 2007 Juniper Networks, Inc. 8-8 Education Services 8-8 VRRP States  VRRP states include: Initialize—Router negotiates VRRP roles through startup events, no forwarding can be performed while in this state Master—Router assumes traffic forwarding responsibilities for the LAN and responds to ARP requests Backup—Router monitors master VRRP router and is ready to assume forwarding responsibilities if failure occurs Transition—Router switches between master and backup states, no forwarding can be performed while in this state

9 Copyright © 2007 Juniper Networks, Inc. 8-9 Education Services 8-9 VRRP Design Considerations (1 of 3)  What does your network topology consist of? How many routers are participating in VRRP? How many outbound WAN circuits exist, and is one circuit preferred over another?  Which router do you want as master? Does one router have advantages over another router? What address will be used for the VIP address?  Will load balancing be needed? Is the load significant, and is there a benefit to balancing the traffic in your environment?

10 Copyright © 2007 Juniper Networks, Inc. 8-10 Education Services 8-10 Intentionally Left Blank

11 Copyright © 2007 Juniper Networks, Inc. 8-11 Education Services 8-11 VRRP Design Considerations (2 of 3)  Will preemption be enabled? Is maintaining the same VRRP router as the master router more important than the possible disruption that comes with preemption?  Is security on the LAN a concern? Do you need the VRRP exchanges secured to avoid any potential security risks?

12 Copyright © 2007 Juniper Networks, Inc. 8-12 Education Services 8-12 VRRP Design Considerations (3 of 3)  Design should account for WAN link failure scenarios Add alternate paths Track WAN interface state to force failover R1 = Master.100/24 VIP =.1/24 fe-2/0/1 se-1/0/0.1/30.2/30 fe-2/0/1 R2 = Backup.2/24.3/24.1/30.2/30 se-1/0/0 X Force mastership changes from R1 to R2 if circuit goes down Add alternate path between R1 and R2 GW=.1

13 Copyright © 2007 Juniper Networks, Inc. 8-13 Education Services 8-13 VRRP Case Study: Overview  Scenario: Occasionally, all external communications for ZooNet Inc. cease because of disruptions, caused by various reasons, which affect the network’s only path out towards the Internet and remote locations Mr. Billy “The Man” Bob, the CEO of ZooNet Inc., has noticed a drop in productivity because of the disruptions and has authorized the purchase of new Juniper Networks equipment to incorporate redundancy into the network design, and as a result, reduce the number of network-related disruptions

14 Copyright © 2007 Juniper Networks, Inc. 8-14 Education Services 8-14 VRRP Case Study: Existing Topology  ZooNet Inc.’s existing topology consists of end users connecting to a switch that has a single connection to a single router, with a single circuit to the Internet Test your understanding: What events could disrupt connectivity towards the Internet with the current design? R1.100/24.1/24 fe-2/0/1 se-1/0/0.1/30.2/30 GW=.1

15 Copyright © 2007 Juniper Networks, Inc. 8-15 Education Services 8-15 VRRP Case Study: Proposed Topology  ZooNet Inc.’s proposed topology consists of adding an additional router, configuring VRRP on the LAN interfaces for both routers, and adding a second circuit for external communications R1 = Master.100/24 VIP =.1/24 fe-2/0/1 se-1/0/0.1/30.2/30 fe-2/0/1 R2 = Backup.2/24.3/24.1/30.2/30 se-1/0/0 GW=.1

16 Copyright © 2007 Juniper Networks, Inc. 8-16 Education Services 8-16 VRRP Case Study: Results  The results of this design: Traffic flows through R1 under normal operation If R1 fails, R2 assumes the master role and forwards traffic Failover between R1 and R2 is transparent for end users R1 = Master.100/24 VIP =.1/24 fe-2/0/1 se-1/0/0.1/30.2/30 fe-2/0/1 R2 = Backup.2/24.3/24.1/30.2/30 se-1/0/0 GW=.1

17 Copyright © 2007 Juniper Networks, Inc. 8-17 Education Services 8-17 Agenda: Miscellaneous Features  Introduction to VRRP  Configuring VRRP  Monitoring VRRP Operation  Introduction to DHCP Services  Configuring a DHCP Server  Monitoring DHCP Server Operation  Configuring a DHCP/BOOTP Relay Agent  Monitoring DHCP/BOOTP Relay Operation

18 Copyright © 2007 Juniper Networks, Inc. 8-18 Education Services 8-18 Sample VRRP Topology  Goals: Configure VRRP on R1 and R2 to allow for redundancy during failure scenarios Continue load-balancing all outbound traffic to make use of resources involved in the forwarding path fe-2/0/1 se-1/0/0.1/30.2/30 fe-2/0/1.1/24.2/24.1/30.2/30 se-1/0/0 R1 R2 User X (.100/24) User Y (.101/24) GW=.1 GW=.2

19 Copyright © 2007 Juniper Networks, Inc. 8-19 Education Services 8-19 Sample VRRP Configuration  Configuration on R1 and R2 to accomplish objectives fe-2/0/1 { vlan-tagging; unit 100 { vlan-id 100; family inet { address 10.222.1.1/24 { vrrp-group 100 { virtual-address 10.222.1.1; priority 255; } vrrp-group 101 { virtual-address 10.222.1.2; priority 100; } R1 Configuration fe-2/0/1 { vlan-tagging; unit 100 { vlan-id 100; family inet { address 10.222.1.2/24 { vrrp-group 100 { virtual-address 10.222.1.1; priority 100; } vrrp-group 101 { virtual-address 10.222.1.2; priority 255; } R2 Configuration Priority determines master/backup state Group 100 = Backup Group 101 = Master Group 100 = Master Group 101 = Backup Priority value of 255 is required when VIP and interface IP addresses are the same

20 Copyright © 2007 Juniper Networks, Inc. 8-20 Education Services 8-20 VRRP Configuration Options (1 of 2)  track Monitors or tracks interface state for interfaces forwarding traffic received through a VRRP interface Reduces designated priority value for a given VRRP group if tracked interface goes down—ideal way to maintain external reachability during a WAN link failure  accept-data Allows master router to respond to ICMP requests sent to VIP address—by default, master router does not respond Violates RFC 2338 if enabled, but can help avoid unnecessary problem reports

21 Copyright © 2007 Juniper Networks, Inc. 8-21 Education Services 8-21 VRRP Configuration Options (2 of 2)  authentication-type Authentication options include none, simple, and MD5 MD5 authentication is suggested for LANs with security concerns  preempt Router with higher priority will assume master role—default behavior Can turn preemption off to avoid unwanted mastership changes

22 Copyright © 2007 Juniper Networks, Inc. 8-22 Education Services 8-22 Test Your Understanding of VRRP Options fe-2/0/1 { vlan-tagging; unit 100 { vlan-id 100; family inet { address 10.222.1.2/24 { vrrp-group 100 { virtual-address 10.222.1.1; priority 110; no-preempt; accept-data; authentication-type md5; authentication-key "$9$w7saUq.5F6AfT"; ## SECRET-DATA track { interface se-1/0/0.0 { priority-cost 11; }  What happens if se-1/0/0.0 goes down? Assume that a second VRRP router is configured to use similar settings except with the default priority value of 100

23 Copyright © 2007 Juniper Networks, Inc. 8-23 Education Services 8-23 Agenda: Miscellaneous Features  Introduction to VRRP  Configuring VRRP  Monitoring VRRP Operation  Introduction to DHCP Services  Configuring a DHCP Server  Monitoring DHCP Server Operation  Configuring a DHCP/BOOTP Relay Agent  Monitoring DHCP/BOOTP Relay Operation

24 Copyright © 2007 Juniper Networks, Inc. 8-24 Education Services 8-24 Monitoring VRRP Operation (1 of 2)  Use show vrrp to view VRRP state Use the detail or extensive options to increase the amount of VRRP-related details displayed user@host> show vrrp ? Possible completions: Execute this command … detail Display detailed output extensive Display extensive output … | Pipe through a command user@host> show vrrp Interface Unit Group Type Address Int state VR state Timer fe-2/0/1 100 100 lcl 10.222.1.2 up master A 0.839 vip 10.222.1.1

25 Copyright © 2007 Juniper Networks, Inc. 8-25 Education Services 8-25 Monitoring VRRP Operation (2 of 2)  Use show vrrp interface interface to view VRRP details for a specific interface To display an individual group’s details for a given interface, add the group option user@host> show vrrp interface ? Possible completions: Name of interface group Number of VRRP group (0..255) user@host> show vrrp interface fe-2/0/1 Interface: fe-2/0/1.100, Interface index: 68, Groups: 1, Active : 1 Interface VRRP PDU statistics Advertisement sent : 48426 Advertisement received : 19 Packets received : 19 No group match received : 0 Interface VRRP PDU error statistics Invalid IPAH next type received : 0 Invalid VRRP TTL value received : 0 Invalid VRRP version received : 0 Invalid VRRP PDU type received : 0 Invalid VRRP authentication type received: 0 Invalid VRRP IP count received : 0 Invalid VRRP checksum received : 0 …

26 Copyright © 2007 Juniper Networks, Inc. 8-26 Education Services 8-26 VRRP Tracing (1 of 2)  Set traceoptions under [edit protocols vrrp] Flag options are specific to VRRP [edit protocols vrrp] user@host# set traceoptions ? Possible completions: + apply-groups Groups from which to inherit configuration data + apply-groups-except Don't inherit configuration data from these groups > file Trace file information > flag Tracing parameters [edit protocols vrrp] user@host# set traceoptions flag ? Possible completions: all Trace all events database Trace database general Trace general events interfaces Trace interface messages normal Trace normal events packets Trace packets state Trace state transitions timer Trace timer events

27 Copyright © 2007 Juniper Networks, Inc. 8-27 Education Services 8-27 user@host> show log vrrpd Jun 13 11:19:42 Sending Jun 13 11:19:42 Source : 010.222.001.002 Jun 13 11:19:42 Destin : 224.000.000.018 Jun 13 11:19:42 TTL : 255 Jun 13 11:19:42 Protocol: 51 Jun 13 11:19:42 45c00040c2560000ff330c820ade0102e0000012 Jun 13 11:19:42 70040000abababab0000c255c94c67e5a7dcb2d9 Jun 13 11:19:42 dd61c360210159010201781d0ade010100000000 Jun 13 11:19:42 00000000 … VRRP Tracing (2 of 2)  View logged contents with show log filename Logged contents are sent to /var/log/vrrpd by default

28 Copyright © 2007 Juniper Networks, Inc. 8-28 Education Services 8-28 Agenda: Miscellaneous Features  Introduction to VRRP  Configuring VRRP  Monitoring VRRP Operation  Introduction to DHCP Services  Configuring a DHCP Server  Monitoring DHCP Server Operation  Configuring a DHCP/BOOTP Relay Agent  Monitoring DHCP/BOOTP Relay Operation

29 Copyright © 2007 Juniper Networks, Inc. 8-29 Education Services 8-29 DHCP Introduced  DHCP transfers host-specific configuration details from a designated DHCP server to individual DHCP clients while managing the allocation of IP addresses on a LAN Scalable method of managing LAN resources Follows client/server model Based on the BOOTP

30 Copyright © 2007 Juniper Networks, Inc. 8-30 Education Services 8-30 DHCP Terminology  DHCP server—Device that allocates IP addresses and delivers configuration settings to client hosts in a dynamic fashion  DHCP client—Device that requests network configuration details including an IP address assignment from a selected DHCP server  Relay agent—Device (generally a router) that relays DHCP requests from DHCP clients on one network to a DHCP server on a different network  Binding—Group of network configuration details linked or bound to a DHCP client; a binding includes at least an IP address and is managed by the DHCP server

31 Copyright © 2007 Juniper Networks, Inc. 8-31 Education Services 8-31 DHCP Mechanics  DHCP client: Searches for DHCP server Requests configuration details from a specific DHCP server Verifies that assigned address is not in use Applies configuration parameters assigned by DHCP server  DHCP server: Stores configuration details defined by LAN administrator Listens for DHCP requests from DHCP clients Allocates configuration details to clients based on requests Manages IP address assignment

32 Copyright © 2007 Juniper Networks, Inc. 8-32 Education Services 8-32 Intentionally Left Blank

33 Copyright © 2007 Juniper Networks, Inc. 8-33 Education Services 8-33 DHCP Services in the Enterprise  DHCP server mode (J-series routers only) Use J-Web Quick Configuration DHCP wizard or configure through CLI at [system services dhcp] hierarchy Compatible with DHCP server mode used within autoinstallation  DHCP/BOOTP relay agent (all JUNOS software routers) Configured through CLI at [forwarding-options helpers bootp] hierarchy  Cannot use both options simultaneously

34 Copyright © 2007 Juniper Networks, Inc. 8-34 Education Services 8-34 Intentionally Left Blank

35 Copyright © 2007 Juniper Networks, Inc. 8-35 Education Services 8-35 DHCP Server Mode  DHCP server mode (J-series only): Dynamically assigns addresses to end hosts from user-defined pool Eliminates the need for a dedicated DHCP server on a LAN fe-2/0/1.1/24 DHCP Client Request Configuration Details J-series router configured for DHCP server mode PC configured as DHCP client No dedicated DHCP server required X

36 Copyright © 2007 Juniper Networks, Inc. 8-36 Education Services 8-36 DHCP/BOOTP Relay Agent  DHCP/BOOTP relay agent: Router relays DHCP requests from end hosts on one network to a designated server on a different network Eliminates the need for a DHCP server on every LAN fe-2/0/0 fe-1/0/0.1/24.100/24 Router fe-2/0/1 DHCP client (LAN A) DHCP client (LAN B) DHCP server (LAN C) DHCP client request Configuration details are sent from server to router Configuration details relayed from router to DHCP clients DHCP client requests relayed from router to server

37 Copyright © 2007 Juniper Networks, Inc. 8-37 Education Services 8-37 Agenda: Miscellaneous Features  Introduction to VRRP  Configuring VRRP  Monitoring VRRP Operation  Introduction to DHCP Services  Configuring a DHCP Server  Monitoring DHCP Server Operation  Configuring a DHCP/BOOTP Relay Agent  Monitoring DHCP/BOOTP Relay Operation

38 Copyright © 2007 Juniper Networks, Inc. 8-38 Education Services 8-38 Configuring DHCP: Common Configuration Options (1 of 2)  Address pool—User-defined pool of IP addresses that are dynamically allocated to clients Can specifically exclude addresses within pool range from being assigned  Static binding—Mapping between fixed IP address and a specific client’s MAC address or client identifier  Address lease—Length of time in seconds a client holds the lease for an IP address assigned by the DHCP server (default and maximum)

39 Copyright © 2007 Juniper Networks, Inc. 8-39 Education Services 8-39 Configuring DHCP: Common Configuration Options (2 of 2)  Router—IPv4 addresses for one or more routers available to DHCP clients  Domain name server—DNS name servers available to DHCP clients  WINS server—IPv4 addresses for one or more NetBIOS name servers that manage the WINS database for the LAN

40 Copyright © 2007 Juniper Networks, Inc. 8-40 Education Services 8-40 Configuring DHCP: Example [edit interfaces] user@host# show … fe-2/0/0 { unit 0 { family inet { address 10.3.3.1/24; } … [edit system services dhcp] user@host# show pool 10.3.3.0/24 { address-range low 10.3.3.2 high 10.3.3.254; exclude-address { 10.3.3.10; } maximum-lease-time 86400; default-lease-time 86400; name-server { 172.18.35.100; } wins-server { 172.18.35.105; } router { 10.3.3.1; } Interface receiving DHCP requests Address pool and exclusion settings DHCP lease settings DNS and WINS server settings Router IPv4 address sent to DHCP clients

41 Copyright © 2007 Juniper Networks, Inc. 8-41 Education Services 8-41 Agenda: Miscellaneous Features  Introduction to VRRP  Configuring VRRP  Monitoring VRRP Operation  Introduction to DHCP Services  Configuring a DHCP Server  Monitoring DHCP Server Operation  Configuring a DHCP/BOOTP Relay Agent  Monitoring DHCP/BOOTP Relay Operation

42 Copyright © 2007 Juniper Networks, Inc. 8-42 Education Services 8-42 Monitoring DHCP Server Operation (1 of 3)  Use show system services dhcp pool to view DHCP address pool information user@host> show system services dhcp pool Pool name Low address High address Excluded addresses 10.3.3.0/24 10.3.3.1 10.3.3.254 10.3.3.10 Use show system services dhcp binding to view DHCP binding and lease details user@host> show system services dhcp binding IP Address Hardware Address Type Lease expires at 10.3.3.2 00:a0:12:00:12:ab dynamic 2004-05-03 13:01:45 PDT 10.3.3.3 00:a0:12:00:13:02 dynamic 2004-05-03 13:01:52 PDT

43 Copyright © 2007 Juniper Networks, Inc. 8-43 Education Services 8-43 Monitoring DHCP Server Operation (2 of 3)  Use show system services dhcp statistics to view DHCP statistics user@host> show system services dhcp statistics Packets dropped: Total 0 Messages received: BOOTREQUEST 0 DHCPDECLINE 0 DHCPDISCOVER 147 DHCPINFORM 0 DHCPRELEASE 81 DHCPREQUEST 138 Messages sent: BOOTREPLY 0 DHCPOFFER 132 DHCPACK 132 DHCPNAK 0

44 Copyright © 2007 Juniper Networks, Inc. 8-44 Education Services 8-44 Monitoring DHCP Server Operation (3 of 3)  Use show system services dhcp conflict to view address conflict details within the DHCP pool Use clear system services dhcp conflict to clear address conflicts Add the address switch to clear a specific conflict user@host> show system services dhcp conflict Detection time Detection method Address 2004-08-03 19:04:00 PDT client 10.3.3.4 2004-08-04 04:23:12 PDT ping 10.3.3.5 user@host> clear system services dhcp conflict ? Possible completions: Execute this command DHCP conflict address …

45 Copyright © 2007 Juniper Networks, Inc. 8-45 Education Services 8-45 DHCP Tracing  Set traceoptions under [edit system services dhcp] Flag options are specific to DHCP  View logged contents with show log filename Logged contents are sent to /var/log/dhcpd by default [edit system services dhcp] user@host# show traceoptions { file dhcpd; flag conflict; flag binding; flag event; level error; } …

46 Copyright © 2007 Juniper Networks, Inc. 8-46 Education Services 8-46 Agenda: Miscellaneous Features  Introduction to VRRP  Configuring VRRP  Monitoring VRRP Operation  Introduction to DHCP Services  Configuring a DHCP Server  Monitoring DHCP Server Operation  Configuring a DHCP/BOOTP Relay Agent  Monitoring DHCP/BOOTP Relay Operation

47 Copyright © 2007 Juniper Networks, Inc. 8-47 Education Services 8-47 DHCP/BOOTP Relay Configuration  Sample DHCP/BOOTP relay configuration: [edit forwarding-options helpers bootp] user@host# show description "Global DHCP relay service"; server 172.18.24.38; maximum-hop-count 4; minimum-wait-time 1; interface { fe-2/0/0 { no-listen; description "No DHCP relay service"; } fe-2/0/1 { description "Unique DHCP relay service"; server 172.18.36.12; maximum-hop-count 4; minimum-wait-time 1; } Settings used for all interfaces not specifically referenced in configuration Interface will not listen or participate in relay services Interface will use unique settings for relay services

48 Copyright © 2007 Juniper Networks, Inc. 8-48 Education Services 8-48 Agenda: Miscellaneous Features  Introduction to VRRP  Configuring VRRP  Monitoring VRRP Operation  Introduction to DHCP Services  Configuring a DHCP Server  Monitoring DHCP Server Operation  Configuring a DHCP/BOOTP Relay Agent  Monitoring DHCP/BOOTP Relay Operation

49 Copyright © 2007 Juniper Networks, Inc. 8-49 Education Services 8-49 Monitoring DHCP/BOOTP Relay Operation  Use traceoptions to monitor DHCP/BOOTP relay events [edit forwarding-options] user@host# show helpers { traceoptions { level all; flag bootp; } bootp { server 172.19.100.100; }  Logged contents are sent to /var/log/fud by default Use the show log fud command to view logged contents user@host> show log fud Jun 25 17:18:52 new server addr 172.19.100.100 port 67 routing instance default Jun 25 17:18:52 fud_config_bootp_get_defaults(): bootps defaults set Jun 25 17:18:55 requester 0.0.0.0 if fe-2/0/0[l2 if ] hw type 1 hw len 6 secs 0 …

50 Copyright © 2007 Juniper Networks, Inc. 8-50 Education Services 8-50 Review Questions 1.Describe a typical VRRP environment. How do VRRP routers communicate within this environment? 2.Name the VRRP states. What occurs during these VRRP states? 3.What is the purpose of a VRRP virtual router? 4.Describe the purpose of the VIP address and VRID. 5.Which platforms support DHCP server mode? 6.List some benefits of using a Juniper Networks router as a BOOTP/DHCP relay agent.

51 Copyright © 2007 Juniper Networks, Inc. 8-51 Education Services 8-51 Lab 6: Miscellaneous Features (VRRP and DHCP)  Configure and monitor VRRP.  Configure and monitor DHCP services.

52 Copyright © 2007 Juniper Networks, Inc. 8-52 Education Services 8-52 Education Services


Download ppt "Copyright © 2005 Juniper Networks, Inc. Proprietary and Confidentialwww.juniper.net 4-1 Operating Juniper Networks Routers in the Enterprise Chapter 8:"

Similar presentations


Ads by Google