Quagga Case 1
来源:互联网 发布:最新网络歌曲情歌对唱 编辑:程序博客网 时间:2024/06/05 03:40
http://openmaniak.com/quagga_case1.php
1. CASE PRINCIPLE
In this first case study, we will see a very simple example where the routing is done with only static routes.
2. PICTURE
Interface settings
Static routes
Telnet access
3. CONFIGURATIONS
See the Quagga tutorial for assisstance. LINUX CONFIGURATIONS
Check that the zebra daemon is activated:
#vim /etc/quagga/daemonszebra=yes
bgpd=no
ospfd=no
ospf6d=no
ripd=no
ripngd=no
isisd=no
If you changed your daemons file, restart the quagga service:
Removing all routes made by zebra.
Nothing to flush.
Loading capability module if not yet done.
Starting Quagga daemons (prio:10): zebra.
Set the Quagga A hostname in the /etc/quagga/vtysh.conf file:
#vim /etc/quagga/vtysh.conf!
! Sample
!
! service integrated-vtysh-config
hostname Quagga_A
username root nopassword
!
Set the Quagga B hostname in the /etc/quagga/vtysh.conf file:
#vim /etc/quagga/vtysh.conf!
! Sample
!
! service integrated-vtysh-config
hostname Quagga_B
username root nopassword
!
Don't forget to activate the ip forwarding on the Quagga A router!
It is not necessary to activate ip forwarding on the Quagga B router because it has only one network interface.
ROUTERS CONFIGURATIONS
CISCO ROUTER 2651 IOS: 12.2-23aQUAGGA ROUTER A 0.99.6interface FastEthernet0/1
ip address 10.1.3.2 255.255.255.0
no shutdowninterface eth0
ip address 10.1.3.1/24
link-detectinterface FastEthernet0/0
ip address 10.1.4.2 255.255.255.0
no shutdowninterface eth1
ip address 10.1.1.1/24
link-detecthostname Cisco-2651 ip route 10.1.0.0 255.255.0.0 10.1.3.1
ip route 10.200.1.4 255.255.255.255 10.1.4.1
ip route 10.200.1.1 255.255.255.255 10.1.3.1ip route 10.1.0.0/16 10.1.3.2
ip route 10.200.1.4/32 10.1.3.2
ip route 10.200.1.1/32 10.1.1.2line vty 0 4
no loginline vty
no loginenable secret passwordenable password password
CISCO SWITCH L3 3750 IOS: 12.2-25.SEE2
QUAGGA ROUTER B 0.99.6interface vlan 1
ip address 10.1.1.2 255.255.255.0
no shutdowninterface eth0
ip address 10.1.4.1/24
link-detectinterface Loopback 1
ip address 10.200.1.1 255.255.255.255
interface lo
ip address 10.200.1.4/32
link-detecthostname 3750_L3hostname quagga-router-bip route 0.0.0.0 0.0.0.0 10.1.1.1ip route 0.0.0.0/0 10.1.4.2line vty 0 4
no loginline vty 0 4
no loginenable secret password
enable password password
ip routing
ip multicast-routing distributed SEE THE ENTIRE CONFIGURATION OF THE DEVICES:
Quagga A
Quagga B
Cisco 2651
Cisco 3750 L3
4. SHOW COMMANDS
ROUTING TABLE
Quagga_A#show ip route
Kernel IP routing tableDestinationGatewayGenmaskIndicMetricRefUseIface10.200.1.110.1.1.2255.255.255.255UGH000eth110.200.1.410.1.3.2255.255.255.255UGH000eth010.1.1.00.0.0.0255.255.255.0U000eth110.1.3.00.0.0.0255.255.255.0U000eth010.1.0.010.1.3.2255.255.0.0UG000eth0Cisco-2651#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route Gateway of last resort is not set 10.0.0.0/8 is variably subnetted, 5 subnets, 3 masksC 10.1.3.0/24 is directly connected, FastEthernet0/1S 10.1.0.0/16 [1/0] via 10.1.3.1C 10.1.4.0/24 is directly connected, FastEthernet0/0S 10.200.1.1/32 [1/0] via 10.1.3.1S 10.200.1.4/32 [1/0] via 10.1.4.1Quagga_B#show ip route
Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF, I - ISIS, B - BGP, > - selected route, * - FIB route C>*10.200.1.4/32 is directly connected, loC>*127.0.0.0/8 is directly connected, loC>*10.1.4.0/24 is directly connected, eth0S>*0.0.0.0/0 [1/0] via 10.1.4.2, eth0Quagga_B (Linux level)#route -n
Kernel IP routing tableDestinationGatewayGenmaskFlagsMetricRefUseIface10.1.4.00.0.0.0255.255.255.0U000eth00.0.0.010.1.4.20.0.0.0UG000eth03750_L3#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route Gateway of last resort is 10.1.1.1 to network 0.0.0.0 10.0.0.0/8 is variably subnetted, 2 subnets, 2 masksC 10.1.1.0/24 is directly connected, Vlan1C 10.200.1.1/32 is directly connected, Loopback1S*0.0.0.0/0 [1/0] via 10.1.1.1
INTERFACES
Quagga_A#show interface eth0
Interface eth0 is up, line protocol detection is disabled index 3 metric 1 mtu 1500 flags: <UP,BROADCAST,RUNNING,MULTICAST> HWaddr: 00:02:11:22:33:44 inet 10.1.3.1/24 broadcast 10.1.3.255 inet6 fe80::201:66ff:1122:3344/64 46 input packets (0 multicast), 5838 bytes, 0 dropped 0 input errors, 0 length, 0 overrun, 0 CRC, 0 frame 0 fifo, 0 missed 251 output packets, 45451 bytes, 0 dropped 0 output errors, 0 aborted, 0 carrier, 0 fifo, 0 heartbeat 0 window, 0 collisionsCisco-2651#show interface FastEthernet 0/0
FastEthernet0/0 is up, line protocol is up Hardware is AmdFE, address is 0011.2211.3345 (bia 0011.2211.3345) Internet address is 10.1.4.2/24 MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation ARPA, loopback not set
Keepalive set (10 sec) Full-duplex, 100Mb/s, 100BaseTX/FX ARP type: ARPA, ARP Timeout 04:00:00 Last input 00:01:20, output 00:00:09, output hang never Last clearing of "show interface" counters never Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0 Queueing strategy: fifo Output queue: 0/40 (size/max) 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec 477 packets input, 46396 bytes Received 303 broadcasts, 0 runts, 0 giants, 0 throttles 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored 0 watchdog 0 input packets with dribble condition detected 603 packets output, 58014 bytes, 0 underruns 0 output errors, 0 collisions, 1 interface resets 0 babbles, 0 late collision, 0 deferred 0 lost carrier, 0 no carrier 0 output buffer failures, 0 output buffers swapped out
SOFTWARE VERSIONS
Quagga_A#show version
Quagga 0.99.6 ().Copyright 1996-2005 Kunihiro Ishiguro, et al.Cisco-2651#show version
Cisco Internetwork Operating System SoftwareIOS (tm) C2600 Software (C2600-IS-M), Version 12.2(23a), RELEASESOFTWARE (fc2)Copyright (c) 1986-2004 by cisco Systems, Inc.Compiled Tue 30-Mar-04 15:04 by kellmillImage text-base: 0x8000808C, data-base: 0x81118FD4 ROM: System Bootstrap, Version 12.2(6r), RELEASE SOFTWARE (fc1) Cisco-2651 uptime is 1 hour, 21 minutesSystem returned to ROM by reloadSystem image file is "flash:c2600-is-mz.122-23a.bin" cisco 2651 (MPC860) processor (revision 0x00) with 60416K/5120K bytes ofmemory.Processor board ID JAD063356E5 (335158987)M860 processor: part number 0, mask 49Bridging software.X.25 software, Version 3.0.0.2 FastEthernet/IEEE 802.3 interface(s)1 Serial network interface(s)32K bytes of non-volatile configuration memory.16384K bytes of processor board System flash (Read/Write) Configuration register is 0x2102
QUAGGA DAEMONS PROCESSES
Quagga_A (Linux level)#ps -ef | grep quagga
UIDPIDPPIDCSTIMETTYTIMECMDquagga105251011:36?00:00:00/usr/lib/quagga/zebra --daemon
LINUX IP FORWARDING
Quagga_A#show ip forwarding
Quagga_B#show ip forwarding
IP forwarding is off
0 0
- Quagga Case 1
- Quagga Case 2
- Quagga Case 3
- Quagga Case 4
- Quagga使用笔记1
- quagga
- quagga
- quagga实现 isis路由(1)
- quagga-0.99.20mr2.1
- NS3(1)---dce及quagga的安装
- (1) quagga源码分析--大内总管zebra
- 初识quagga
- quagga 安装
- Quagga 简介
- quagga安装
- quagga简介
- Quagga-RE
- (OK) quagga
- hive内部表与外部表区别详细介绍
- 【算法】2SUM/3SUM/4SUM问题
- STM32CubeMX教程之一LED控制
- X电容和Y电容
- 集合框架-HashSet集合的add()方法的源码
- Quagga Case 1
- 星星
- Android 出现00M
- 技术转型产品学习笔记与理解——第七天
- 记多年回归.....
- 剑指offer-面试题61-按之字形顺序打印二叉树
- FBX导入选项参考指南
- 12.[个人]C++线程入门到进阶(12)----读者写者问题&读写锁SRWLock
- 四无年轻人如何逆袭