TCP/IP: Quagga OSPF lanjut

From OnnoWiki
Revision as of 06:54, 3 January 2019 by Onnowpurbo (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

1. CASE PRINCIPLE

We will test in this third example a medium difficulty level environment where two routers (Cisco 3750 & Quagga B) are linked together with two OPSF areas, one OSPF area is tagged as stub area.

The Quagga B router and the Cisco 2651 are located in a stub area. They have OPSF intra (O) and inter-area routes (OIA) in their routing tables but no external OSPF route. To route these external OPSF networks like 10.200.1.1 (see next paragraph), there is a default OSPF route to the border router (Quagga A router) on the routers inside area 1. Quagga A is a border router because it is in area 0 or backbone area and in area 1.

For the purpose of our case study, the 10.200.1.1 static route is redistributed into OSPF on the Quagga A router to "artificially" create an external OPSF network tagged as OE2. Because of the stub area, this network should not be propagated on the Quagga B router and the Cisco 2651.

2. PICTURE

quagga cisco case study opsf advanced 3750 2651 Functionalities tested:

(click on the web links to have more details about a protocol)

Interface settings

OSPF - backbone area
OSPF - multi area
OSPF - stub area
Static routing
Redistribution - static to OSPF
Telnet access





3. CONFIGURATIONS

You must set your Linux system correctly to launch Quagga successfully. See the Quagga tutorial for help about this.

LINUX CONFIGURATIONS

Check that the zebra and ospfd daemons are activated:

#vim /etc/quagga/daemons
zebra=yes
bgpd=no
ospfd=yes
ospf6d=no
ripd=no
ripngd=no
isisd=no

If you changed your daemons file, restart the quagga service:

#vim /etc/init.d/quagga restart
Stopping Quagga daemons (prio:0): ospfd zebra (bgpd) (ripd) (ripngd) (ospf6= d) (isisd).
Removing all routes made by zebra.
Nothing to flush.
Loading capability module if not yet done.
Starting Quagga daemons (prio:10): zebra ospfd.

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-23a QUAGGA ROUTER A 0.99.6

interface FastEthernet0/1
  ip address 10.1.3.2 255.255.255.0
  no shutdown 	interface eth0
  ip address 10.1.3.1/24
  link-detect
interface FastEthernet0/0
  ip address 10.1.4.2 255.255.255.0
  no shutdown 	interface eth1
  ip address 10.1.1.1/24
  link-detect
interface Loopback 1
  ip address 10.200.1.3 255.255.255.255
  	interface lo
  ip address 10.200.1.2/32
  link-detect
hostname Cisco-2651 	
	ip route 10.200.1.1/32 10.1.1.2
router ospf 1
  area 1 stub
  network 10.1.3.0 0.0.0.255 area 1
  network 10.1.4.0 0.0.0.255 area 1
  network 10.200.1.3 0.0.0.0 area 1 	router ospf
  area 1 stub
  network 10.1.3.0/24 area 1
  network 10.1.1.0/24 area 0
  network 10.200.1.2/32 area 0
line vty 0 4
  no login
	line vty
  no login
enable secret password 	enable password password

CISCO SWITCH L3 3750 IOS: 12.2-25.SEE2 QUAGGA ROUTER B 0.99.6

interface vlan 1
  ip address 10.1.1.2 255.255.255.0
  no shutdown 	interface eth0
  ip address 10.1.4.1/24
  link-detect
interface Loopback 1
  ip address 10.200.1.1 255.255.255.255
  	interface lo
  ip address 10.200.1.4/32
  link-detect
hostname 3750_L3 	
router ospf 1
 
  network 10.1.1.0 0.0.0.255 area 0
   	router ospf
  area 1 stub
  network 10.1.4.0/24 area 1
  network 10.200.1.4/32 area 1
line vty 0 4
  no login
	line vty 0 4
  no login
enable 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

CISCO 3750 L3 QUAGGA A ROUTER CISCO 2651 QUAGGA B ROUTER CISCO 3750 LAYER 3

3750_L3##show interface vlan 1
3750_L3#show ip route
3750_L3#show ip ospf interface
3750_L3#show ip ospf database
3750_L3#show ip ospf neighbor

QUAGGA A ROUTER

Quagga_A#show interface description
Quagga_A#show interface eth0
Quagga_A (Linux level)#route -n
Quagga_A#show ip route
Quagga_A#show ip ospf interface
Quagga_A#show ip ospf database
Quagga_A#show ip border-routers
Quagga_A#show ip neighbor
Quagga_A#show ip ospf route
Quagga_A#show ip forwarding

CISCO 2651

Cisco_2651#show ip interface brief
Cisco-2651#show interface FastEthernet 0/0
Cisco-2651#show ip route
Cisco-2651#show ip ospf border-routers
Cisco-2651#show ip ospf database
Cisco-2651#show ip ospf interface

QUAGGA B ROUTER

Quagga_B#show interface description
Quagga_B (Linux level)#route -n
Quagga_B#show ip route
Quagga_B#show ip ospf border-routers
Quagga_B#show ip ospf database
Quagga_B#show ip ospf route
Quagga_B#show ip forwarding
Quagga_B#show ip ospf interface
Quagga_B#traceroute 10.200.1.1