Difference between revisions of "TCP/IP: Quagga OSPF lanjut"
Onnowpurbo (talk | contribs) (New page: 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...) |
Onnowpurbo (talk | contribs) |
||
Line 15: | Line 15: | ||
Interface settings | Interface settings | ||
− | OSPF - backbone area | + | |
− | OSPF - multi area | + | OSPF - backbone area |
− | OSPF - stub area | + | OSPF - multi area |
− | Static routing | + | OSPF - stub area |
− | Redistribution - static to OSPF | + | Static routing |
− | Telnet access | + | Redistribution - static to OSPF |
+ | Telnet access | ||
Line 34: | Line 35: | ||
You must set your Linux system correctly to launch Quagga successfully. | You must set your Linux system correctly to launch Quagga successfully. | ||
See the Quagga tutorial for help about this. | See the Quagga tutorial for help about this. | ||
+ | |||
LINUX CONFIGURATIONS | LINUX CONFIGURATIONS | ||
Check that the zebra and ospfd daemons are activated: | Check that the zebra and ospfd daemons are activated: | ||
− | #vim /etc/quagga/daemons | + | #vim /etc/quagga/daemons |
− | zebra=yes | + | zebra=yes |
− | bgpd=no | + | bgpd=no |
− | ospfd=yes | + | ospfd=yes |
− | ospf6d=no | + | ospf6d=no |
− | ripd=no | + | ripd=no |
− | ripngd=no | + | ripngd=no |
− | isisd=no | + | isisd=no |
If you changed your daemons file, restart the quagga service: | If you changed your daemons file, restart the quagga service: | ||
− | #vim /etc/init.d/quagga restart | + | #vim /etc/init.d/quagga restart |
− | Stopping Quagga daemons (prio:0): ospfd zebra (bgpd) (ripd) (ripngd) (ospf6= d) (isisd). | + | Stopping Quagga daemons (prio:0): ospfd zebra (bgpd) (ripd) (ripngd) (ospf6= d) (isisd). |
− | Removing all routes made by zebra. | + | Removing all routes made by zebra. |
− | Nothing to flush. | + | Nothing to flush. |
− | Loading capability module if not yet done. | + | Loading capability module if not yet done. |
− | Starting Quagga daemons (prio:10): zebra ospfd. | + | Starting Quagga daemons (prio:10): zebra ospfd. |
Set the Quagga A hostname in the /etc/quagga/vtysh.conf file: | Set the Quagga A hostname in the /etc/quagga/vtysh.conf file: | ||
− | #vim /etc/quagga/vtysh.conf | + | #vim /etc/quagga/vtysh.conf |
− | ! | + | ! |
− | ! Sample | + | ! Sample |
− | ! | + | ! |
− | ! service integrated-vtysh-config | + | ! service integrated-vtysh-config |
− | hostname Quagga_A | + | hostname Quagga_A |
− | username root nopassword | + | username root nopassword |
− | ! | + | ! |
Set the Quagga B hostname in the /etc/quagga/vtysh.conf file: | Set the Quagga B hostname in the /etc/quagga/vtysh.conf file: | ||
− | #vim /etc/quagga/vtysh.conf | + | #vim /etc/quagga/vtysh.conf |
− | ! | + | ! |
− | ! Sample | + | ! Sample |
− | ! | + | ! |
− | ! service integrated-vtysh-config | + | ! service integrated-vtysh-config |
− | hostname Quagga_B | + | hostname Quagga_B |
− | username root nopassword | + | username root nopassword |
− | ! | + | ! |
Don't forget to activate the ip forwarding on the Quagga A router! | Don't forget to activate the ip forwarding on the Quagga A router! | ||
Line 84: | Line 86: | ||
CISCO ROUTER 2651 IOS: 12.2-23a QUAGGA ROUTER A 0.99.6 | CISCO ROUTER 2651 IOS: 12.2-23a QUAGGA ROUTER A 0.99.6 | ||
− | interface FastEthernet0/1 | + | |
− | + | interface FastEthernet0/1 | |
− | + | ip address 10.1.3.2 255.255.255.0 | |
− | + | no shutdown interface eth0 | |
− | + | ip address 10.1.3.1/24 | |
− | interface FastEthernet0/0 | + | 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 | |
− | interface Loopback 1 | + | link-detect |
− | + | interface Loopback 1 | |
− | + | ip address 10.200.1.3 255.255.255.255 | |
− | + | interface lo | |
− | + | ip address 10.200.1.2/32 | |
− | hostname Cisco-2651 | + | link-detect |
− | + | hostname Cisco-2651 | |
− | router ospf 1 | + | 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 | |
− | line vty 0 4 | + | network 10.200.1.2/32 area 0 |
− | + | line vty 0 4 | |
− | + | no login | |
− | + | line vty | |
− | enable secret password enable password password | + | no login |
+ | enable secret password enable password password | ||
CISCO SWITCH L3 3750 IOS: 12.2-25.SEE2 | CISCO SWITCH L3 3750 IOS: 12.2-25.SEE2 | ||
QUAGGA ROUTER B 0.99.6 | QUAGGA ROUTER B 0.99.6 | ||
− | interface vlan 1 | + | |
− | + | interface vlan 1 | |
− | + | ip address 10.1.1.2 255.255.255.0 | |
− | + | no shutdown interface eth0 | |
− | + | ip address 10.1.4.1/24 | |
− | interface Loopback 1 | + | link-detect |
− | + | interface Loopback 1 | |
− | + | ip address 10.200.1.1 255.255.255.255 | |
− | + | interface lo | |
− | + | ip address 10.200.1.4/32 | |
− | hostname 3750_L3 | + | link-detect |
− | router ospf 1 | + | 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 | |
− | line vty 0 4 | + | network 10.200.1.4/32 area 1 |
− | + | line vty 0 4 | |
− | + | no login | |
− | + | line vty 0 4 | |
− | enable secret password | + | no login |
− | + | enable secret password | |
− | + | enable password password | |
− | ip routing | + | |
− | ip multicast-routing distributed | + | ip routing |
+ | ip multicast-routing distributed | ||
+ | |||
SEE THE ENTIRE CONFIGURATION OF THE DEVICES: | SEE THE ENTIRE CONFIGURATION OF THE DEVICES: | ||
− | Quagga A | + | Quagga A |
− | Quagga B | + | Quagga B |
− | Cisco 2651 | + | Cisco 2651 |
− | Cisco 3750 L3 | + | Cisco 3750 L3 |
Line 160: | Line 165: | ||
CISCO 3750 LAYER 3 | CISCO 3750 LAYER 3 | ||
− | 3750_L3##show interface vlan 1 | + | 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 | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | 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 ROUTER | ||
− | Quagga_A#show interface description | + | 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 interface eth0 | + | Quagga_A#show ip border-routers |
− | + | Quagga_A#show ip neighbor | |
− | + | Quagga_A#show ip ospf route | |
− | + | Quagga_A#show ip forwarding | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | 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 | ||
− | Cisco_2651#show ip interface brief | + | 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 | |
− | 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 ROUTER | ||
− | Quagga_B#show interface description | + | 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 | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | 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 | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Latest revision as of 06:54, 3 January 2019
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