Introduction to dynamic routing on Linux with Quagga

Slides:



Advertisements
Similar presentations
CCNA3: Switching Basics and Intermediate Routing v3.0 CISCO NETWORKING ACADEMY PROGRAM Chapter 2 – Single Area OSPF Single Area OSPF Link State Routing.
Advertisements

© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 4: Routing Concepts Routing Protocols.
Logically Centralized Control Class 2. Types of Networks ISP Networks – Entity only owns the switches – Throughput: 100GB-10TB – Heterogeneous devices:
IPv6 Static Routes Overview.
Dynamic Routing Overview 1.
Static Routing Exercise. What will the exercise involve?  Unix network interface configuration  Cisco network interface configuration  Static routes.
Dynamic Routing Scalable Infrastructure Workshop, AfNOG2008.
Routing Basics By Craig Lindstrom. Overview Routing Process Routing Process Default Routing Default Routing Static Routing Static Routing Dynamic Routing.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Introduction to Dynamic Routing Protocol Routing Protocols and Concepts – Chapter.
Highly Available Central Services An Intelligent Router Approach Thomas Finnern Thorsten Witt DESY/IT.
1 Routing Simulations – Zebra Routing Software Eric Ciocca Dimitris Zacharopoulos.
CCNA 2 v3.1 Module 6.
CSEE W4140 Networking Laboratory Lecture 4: IP Routing (RIP) Jong Yul Kim
Routing and Routing Protocols
Routing.
Lecture Week 3 Introduction to Dynamic Routing Protocol Routing Protocols and Concepts.
Introduction An introduction to the software and organization of the Internet Lab.
1 Semester 2 Module 6 Routing and Routing Protocols YuDa college of business James Chen
Introduction An introduction to the equipment and organization of the Internet Lab.
The Zebra Distributed routing software Kunihiro Ishiguro Digital Magic Labs, Inc.
Routing. A world without networks and routing  No connection between offices, people and applications  Worldwide chaos because of the lack of centralized.
CISCO NETWORKING ACADEMY Chabot College ELEC IP Routing Protocol Highlights.
Exterior Gateway Protocol Border Gateway Protocol (BGP) Interior Gateway Protocol Routing Information Protocol (RIP) Enhanced Interior Gateway Protocol.
Chapter 12 Intro to Routing & Switching.  Upon completion of this chapter, you should be able to:  Read a routing table  Configure a static route 
Routing and Routing Protocols Routing Protocols Overview.
1 Introducing Routing 1. Dynamic routing - information is learned from other routers, and routing protocols adjust routes automatically. 2. Static routing.
M.Menelaou CCNA2 ROUTING. M.Menelaou ROUTING Routing is the process that a router uses to forward packets toward the destination network. A router makes.
Code : STM#520-1 Samsung Electronics Co., Ltd. OfficeServ7400 Router Operation Distribution EnglishED01.
LAN Switching and WAN Networks Topic 6 - OSPF. What we have done so far! 18/09/2015Richard Hancock2  Looked at the basic switching concepts and configuration.
© 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-1 Determining IP Routes Enabling OSPF.
EMEA Partners XTM Network Training
Interior Gateway Protocol. Introduction An IGP (Interior Gateway Protocol) is a protocol for exchanging routing information between gateways (hosts with.
© 2002, Cisco Systems, Inc. All rights reserved..
Chapter 9. Implementing Scalability Features in Your Internetwork.
Introduction to OSPF Nishal Goburdhan. Routing and Forwarding Routing is not the same as Forwarding Routing is the building of maps Each routing protocol.
Page 110/27/2015 A router ‘knows’ only of networks attached to it directly – unless you configure a static route or use routing protocols Routing protocols.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 3 v3.0 Module 2 Single-Area OSPF.
CCNA 3 Week 2 Link State Protocols OSPF. Copyright © 2005 University of Bolton Distance Vector vs Link State Distance Vector –Copies Routing Table to.
7400 Samsung Confidential & Proprietary Information Copyright 2006, All Rights Reserved. -0/35- OfficeServ 7x00 Enterprise IP Solutions Quick Install Guide.
CCNA 2 Week 6 Routing Protocols. Copyright © 2005 University of Bolton Topics Static Routing Dynamic Routing Routing Protocols Overview.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Introduction to Dynamic Routing Protocol Routing Protocols and Concepts.
GNU Zebra Free software that runs routing protocols Supports RIP v1/v2, OSPF, BGP Configuration syntax is like cisco Linux or *BSD.
IP Routing Principles. Network-Layer Protocol Operations Each router provides network layer (routing) services X Y A B C Application Presentation Session.
Introduction An introduction to the equipment and organization of the Internet Lab.
Chapter 4 Version 1 Virtual LANs. Introduction By default, switches forward broadcasts, this means that all segments connected to a switch are in one.
1 7-Jan-16 S Ward Abingdon and Witney College Dynamic Routing CCNA Exploration Semester 2 Chapter 3.
Routing and Routing Protocols PJC CCNA Semester 2 Ver. 3.0 by William Kelly.
© 2002, Cisco Systems, Inc. All rights reserved..
 RIP — A distance vector interior routing protocol  IGRP — The Cisco distance vector interior routing protocol (not used nowadays)  OSPF — A link-state.
+ Routing Concepts 1 st semester Objectives  Describe the primary functions and features of a router.  Explain how routers use information.
1 24-Feb-16 S Ward Abingdon and Witney College OSPF CCNA Exploration Semester 2 Chapter 11.
Cisco 2 - Routers Perrine modified by Brierley Page 13/21/2016 Chapter 4 Module 6 Routing & Routing Protocols.
Single Area OSPF Module 2, Review How routing information is maintained Link-state routers apply the Dijkstra shortest path first algorithm against.
Routing and Routing Protocols CCNA 2 v3 – Module 6.
+ Dynamic Routing Protocols 2 nd semester
Chapter 4: Routing Concepts
Introduction to Dynamic Routing Protocol
Working at a Small-to-Medium Business or ISP – Chapter 6
Computer Networks Routing Algorithms.
Introduction An introduction to the software and organization of the Internet Lab.
Link State Routing protocol
The Zebra Distributed routing software
Chapter 4: Routing Concepts
Chapter 6: Network Layer
Routing.
Introduction An introduction to the software and organization of the Internet Lab.
Chapter 5: Dynamic Routing
Dynamic Routing and OSPF
Working at a Small-to-Medium Business or ISP – Chapter 6
Routing.
Presentation transcript:

Introduction to dynamic routing on Linux with Quagga FVLUG – July 23, 2007 Wim Kerkhoff – wim@nyetwork.org

Overview Short introduction to dynamic routing Introduce Quagga Installing Quagga on Debian Example Quagga configurations Demo Using Quagga in production

Static Routing Simplist and most common method Manually configured by humans Can’t handle network changes such as outages Doesn’t scale with many network devices Requires least amount of expertise Generally used on hosts (PCs, printers, etc) and simple NAT routers

Dynamic Routing Protocols Applications that automatically discover network destinations First they learn what network routes are directly connected Then chat with neighbouring routers to learn what they know The entire network learns about changes within minutes or even seconds Generally used on Internet backbone routers and in organizations with many routers

Common routing protocols RIP – old one, based on hop count. Timer system can result in slow convergence OSPF – also uses multicast. Calculates shortest path using costs assigned to each link. Easy to setup but less knobs then BGP. Used inside organization BGP – uses TCP session. Can do filtering, route-maps, mangling, etc. Normally used for communicating with other organizations and based on policy

Remember: Routing != Forwarding Routing directs forwarding Routing is the process of selecting paths in a network Forwarding is the relaying of packets through one network segment to another by nodes So a network device can perform routing, forwarding, or both So you’ll have a broken router if /proc/sys/net/ipv4/ip_forward is set to 0 even with a beautiful quagga config

What is Quagga? Open source routing software Forked 4 years ago from Zebra to form a much better and healthier de-centralized community Similar syntax and look to Cisco IOS No control over OS, unlike IOS

Quagga features RIPv1 and v2 (IPv4) RIPng (IPv6) OSPFv2 OSPFv3 BGPv4 with multiprotocol extension VTY shell – Cisco like SNMP IPv6

Supported Platforms GNU/Linux 2.2.x and higher FreeBSD 4.x and higher NetBSD 1.6 and higher OpenBSD 2.5 and higher

System Architecture

Install / configuration overview Install Debian apt-get install quagga tcpdump iproute Add set VTYSH_PAGER=cat to ~/.bashrc Update /etc/quagga/daemons (zebra,ospfd,bgpd) echo username root nopassword > vtysh.conf touch zebra.conf ospfd.conf bgpd.conf /etc/init.d/quagga start Vtysh to start configuring Don’t forget to copy run start like on IOS Reboot and ensure convergence

Demo

Router 1 Configuration interface eth0 ip address 192.168.21.8/24 ! interface lo ip address 10.3.3.1/32 router ospf ospf router-id 10.3.3.1 redistribute connected network 10.3.2.0/30 area 0.0.0.0 default-information originate always ip route 0.0.0.0/0 192.168.21.254 ip forwarding

Router 2 Configuration interface eth0 ip address 10.3.2.2/30 ! interface lo ip address 10.3.3.2/32 router ospf ospf router-id 10.3.3.2 redistribute connected network 10.3.2.0/30 area 0.0.0.0 ip forwarding

Routing table on Router 2 quagga2:~# vtysh Hello, this is Quagga (version 0.99.5). Copyright 1996-2005 Kunihiro Ishiguro, et al. quagga2# show ip route Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF, I - ISIS, B - BGP, > - selected route, * - FIB route O>* 0.0.0.0/0 [110/1] via 10.3.2.1, eth0, 1d20h22m O 10.3.2.0/30 [110/10] is directly connected, eth0, 1d20h33m C>* 10.3.2.0/30 is directly connected, eth0 O>* 10.3.3.1/32 [110/20] via 10.3.2.1, eth0, 1d20h22m C>* 10.3.3.2/32 is directly connected, lo C>* 127.0.0.0/8 is directly connected, lo O>* 192.168.21.0/24 [110/20] via 10.3.2.1, eth0, 1d20h22m

OSPF neighbour details quagga2# show ip ospf neighbor detail Neighbor 10.3.3.1, interface address 10.3.2.1 In the area 0.0.0.0 via interface eth0 Neighbor priority is 1, State is Full, 11 state changes Most recent state change statistics: Progressive change 1d20h25m ago Regressive change 1d20h25m ago, due to 1-WayReceived DR is 10.3.2.2, BDR is 10.3.2.1 Options 2 *|-|-|-|-|-|E|* Dead timer due in 38.944s Database Summary List 0 Link State Request List 0 Link State Retransmission List 0 Thread Inactivity Timer on Thread Database Description Retransmision off Thread Link State Request Retransmission on Thread Link State Update Retransmission on

Production tips? Make sure you have backups of /etc/quagga, /etc/network/interfaces, and iptables rules Keep templates Monitor the router as if it was a server: disk space, memory, load, etc Have redundant routers so that you can perform OS updates safely with 0 downtime Be consistent – stick to your templates Run lean & mean – K.I.S.S. Be secure But make sure you can somehow access the box even if routing is broken Stick to a single protocol if possible

Interior uses of OSPF and BGP Managing multiple ISP links (failover / load balancing) Multisites using VPNs and/or private links Failover between servers

Want to experiment? Setting up 30 machines to simulate a 30 router network is tough Virtualize using Xen, VMWare, OpenVZ etc Linksys WRT54G with DD-WRT/OpenWRT

Worthy competitor to $60k Cisco? Yes! 2 x 1U servers with onboard dual GigE Servers can be under $1500 each and perform just fine for 99% of situations Need more ports? VLAN trunking to managed Layer2 switch Commodity memory and processors are dirt cheap and as fast as expensive ASICs Each full BGP table needs approx 128 MB physical RAM

Documentation Documentation exists for quagga Wiki.quagga.net has more useful examples But it’s geared towards quagga itself and not dynamic routing Understanding routing protocols is critical Having experience with configuring RIP/OSPF/BGP on Cisco via CLI helps a lot CLI has built-in usage info using the ? mark like in Cisco IOS Zebra/Quagga mailing list archives Any Cisco OSPF/BGP syntax guides and examples Google 

Questions/Discussion