[zebra 22880] Re: Installation or Configuration

"K. A. Sharif" <[email protected]>
Newsgroups gmane.network.zebra
Organization Grameen CyberNet Ltd.
Message-ID <[email protected]>
Thanks Arnold/Carlos,
As I said earlier that I am not doing any complex routing right now. I 
am just trying to understand zebra and want to make it work for simple 
routing like static/RIP. If it works then I will have the confidence 
that the zebra is working fine. My intention is to test BGP on this 
after the successful simple routing test. Please see bellow the entire 
information that is extracted from both the routers.

Topology:
(PC1-eth0)<---->(eth1-Router1-eth2)<----->(eth1-Router2-eth0)<---->(PC2-eth0)

IP Allocation:
PC1-eth0-192.168.101.2
192.168.101.1-eth1-Router1-eth2-192.168.1.99
192.168.1.98-eth1-Router2-eth0-192.168.100.1
PC2-eth0-192.168.100.2

Host PC:
PC1: eth0 192.168.101.2 mask 255.255.255.0 dg 192.168.101.1
PC2: eth0 192.168.100.2 mask 255.255.255.0 dg 192.168.100.1

Test Status:
All directly connected interfaces are able to ping each other. My test 
was from host PC1 and Router2 vice versa.
Before Routing Entry: I wasn't able to ping router Router1 eth2 
(192.168.1.99)
After Routing Entry: I was able to ping Router1 eth2 (192.168.1.99) but 
not further like Router2 eth1 (192.168.1.99)

Router Status:

Router1

sharif.citechco.net# sh running-config
Building configuration...

Current configuration:
!
hostname localhost
log file /var/log/zebra.log
no ip forwarding
log stdout
hostname sharif.citechco.net
hostname bgpd
!
interface eth0 (Not functional here)
 ip address 170.16.0.1/24
 ip address 2.0.0.1/8
!
interface eth1
 ip address 192.168.101.1/24
!
interface eth2
 ip address 192.168.1.99/24
!
interface lo
!
router rip
 network 192.168.1.0/24
 network 192.168.101.0/24

-------------------------------------------------------------
 
###sh ip rip
Codes: R - RIP, C - connected, S - Static, O - OSPF, B - BGP
Sub-codes:
      (n) - normal, (s) - static, (d) - default, (r) - redistribute,
      (i) - interface

     Network         Next Hop         Metric From            Tag Time
C(i) 192.168.1.0/24  0.0.0.0               1 self              0
R(n) 192.168.100.0/24192.168.1.98          2 192.168.1.98      0 02:48
C(i) 192.168.101.0/240.0.0.0               1 self              0

--------------------
sharif.citechco.net# sh ip rip status
Routing Protocol is "rip"
  Sending updates every 30 seconds with +/-50%, next due in 15 seconds
  Timeout after 180 seconds, garbage collect after 120 seconds
  Outgoing update filter list for all interface is not set
  Incoming update filter list for all interface is not set
  Default redistribution metric is 1
  Redistributing:
  Default version control: send version 2, receive any version
    Interface        Send  Recv   Key-chain
    eth1             2     1 2
    eth2             2     1 2
  Routing for Networks:
    192.168.1.0/24
    192.168.101.0/24
  Routing Information Sources:
    Gateway          BadPackets BadRoutes  Distance Last Update
    192.168.1.98             0         0       120   00:00:21
  Distance: (default is 120)

--------------------

sharif.citechco.net# sh ip route
Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF,
       B - BGP, > - selected route, * - FIB route

C>* 2.0.0.0/8 is directly connected, eth0
K * 127.0.0.0/8 is directly connected, lo
C>* 127.0.0.0/8 is directly connected, lo
K>* 169.254.0.0/16 is directly connected, eth2
C>* 170.16.0.0/24 is directly connected, eth0
K * 192.168.1.0/24 is directly connected, eth2
C>* 192.168.1.0/24 is directly connected, eth2
R>* 192.168.100.0/24 [120/2] via 192.168.1.98, eth2, 00:08:06
K * 192.168.101.0/24 is directly connected, eth1
C>* 192.168.101.0/24 is directly connected, eth1

------------------------
[root@sharif root]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use 
Iface
192.168.100.0   192.168.1.98    255.255.255.0   UG    2      0        0 eth2
192.168.101.0   0.0.0.0         255.255.255.0   U     0      0        0 eth1
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth2
170.16.0.0      0.0.0.0         255.255.255.0   U     0      0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eth2
2.0.0.0         0.0.0.0         255.0.0.0       U     0      0        0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo

---------------------------
[root@sharif root]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:04:5A:43:84:8E (Not functioning 
here)
          inet addr:203.191.33.42  Bcast:203.191.33.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3213198 errors:0 dropped:0 overruns:0 frame:0
          TX packets:22247 errors:122 dropped:0 overruns:0 carrier:244
          collisions:0 txqueuelen:100
          RX bytes:236230674 (225.2 Mb)  TX bytes:3029094 (2.8 Mb)
          Interrupt:19 Base address:0x9800

eth1      Link encap:Ethernet  HWaddr 00:04:5A:43:89:AE
          inet addr:192.168.101.1  Bcast:192.168.101.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:103 errors:0 dropped:0 overruns:0 frame:0
          TX packets:47 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:12596 (12.3 Kb)  TX bytes:3234 (3.1 Kb)
          Interrupt:18 Base address:0xbc00

eth2      Link encap:Ethernet  HWaddr 00:4F:4A:10:15:35
          inet addr:192.168.1.99  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:20616 errors:0 dropped:0 overruns:0 frame:0
          TX packets:862 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:1676631 (1.5 Mb)  TX bytes:0 (0.0 b)
          Interrupt:18 Base address:0x1400
------------
Router2
------------
noclab# sh running-config
Building configuration...

Current configuration:
!
hostname localhost
log file /var/log/zebra.log
no ip forwarding
log stdout
hostname noclab
hostname bgpd
!
interface eth0
 ip address 192.168.100.1/24
!
interface eth1
 ip address 192.168.1.98/24
!
interface lo
!
router rip
 network 192.168.100.0/24
 network 192.168.1.0/24

---------------------------------------------------------------
noclab# sh ip rip
Codes: R - RIP, C - connected, S - Static, O - OSPF, B - BGP
Sub-codes:
      (n) - normal, (s) - static, (d) - default, (r) - redistribute,
      (i) - interface

     Network            Next Hop         Metric From            Tag Time
C(i) 192.168.0.0/16     0.0.0.0               1 self              0
C(i) 192.168.1.0/24     0.0.0.0               1 self              0
C(i) 192.168.100.0/24   0.0.0.0               1 self              0
R(n) 192.168.101.0/24   192.168.1.99          2 192.168.1.99      0 02:51

------------------------
noclab# sh ip rip status
Routing Protocol is "rip"
  Sending updates every 30 seconds with +/-50%, next due in 21 seconds
  Timeout after 180 seconds, garbage collect after 120 seconds
  Outgoing update filter list for all interface is not set
  Incoming update filter list for all interface is not set
  Default redistribution metric is 1
  Redistributing:
  Default version control: send version 2, receive any version
    Interface        Send  Recv   Key-chain
    eth0             2     1 2
    eth1             2     1 2
  Routing for Networks:
    192.168.1.0/24
    192.168.100.0/24
  Routing Information Sources:
    Gateway          BadPackets BadRoutes  Distance Last Update
    192.168.1.99             0         0       120   00:00:15
  Distance: (default is 120)

-------------------------
noclab# sh ip route
Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF,
       I - ISIS, B - BGP, > - selected route, * - FIB route

K * 127.0.0.0/8 is directly connected, lo
C>* 127.0.0.0/8 is directly connected, lo
K>* 169.254.0.0/16 is directly connected, eth1
K * 192.168.0.0/16 is directly connected, eth0
C>* 192.168.0.0/16 is directly connected, eth0
K * 192.168.1.0/24 is directly connected, eth1
C>* 192.168.1.0/24 is directly connected, eth1
C>* 192.168.100.0/24 is directly connected, eth0
R>* 192.168.101.0/24 [120/2] via 192.168.1.99, eth1, 00:11:55
C>* 202.125.64.0/24 is directly connected, eth0

-------------------------
[root@noclab root]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use 
Iface
192.168.100.0   0.0.0.0         255.255.255.0   U     0      0        0 eth0
192.168.101.0   192.168.1.99    255.255.255.0   UG    2      0        0 eth1
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1
202.125.64.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eth1
192.168.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo

--------------------------
[root@noclab root]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:E0:7D:EB:BE:A7
          inet addr:192.168.100.1  Bcast:192.168.255.255  Mask:255.255.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:54482 errors:0 dropped:0 overruns:0 frame:0
          TX packets:120 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:4151577 (3.9 Mb)  TX bytes:10668 (10.4 Kb)
          Interrupt:18 Base address:0xf000

eth1      Link encap:Ethernet  HWaddr 00:20:ED:73:03:EF
          inet addr:192.168.1.98  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:384579 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2387 errors:0 dropped:0 overruns:0 carrier:0
          collisions:40 txqueuelen:100
          RX bytes:29741762 (28.3 Mb)  TX bytes:352042 (343.7 Kb)
          Interrupt:21 Base address:0x9800 Memory:f5000000-f5020000

Regards
Sharif



Arnold Nipper wrote:

> On 05.06.2006 08:48 [email protected] wrote
>
>> Thanks Arnold,
>> Yes IP forwarding was enabled at R1...I turned it off...let me test 
>> again
>> and will let you know.
>>
>> PC1: 192.168.101.2 mask 255.255.255.0 dg 192.168.101.1
>> PC2: 192.168.100.2 mask 255.255.255.0 dg 192.168.100.1
>>
>
> Of course ip forwardingt has to be turned *on* on both routers!
>
>
> Arnold
>
>> Thanks again
>> Regards
>> Sharif
>>
>>
>>> On 05.06.2006 07:15 [email protected] wrote
>>>
>>>> I may be asking a very common question to the list. I have installed
>>>> quagga-0.99.4 and the daemons are running fine. My intention was to 
>>>> test
>>>> BGP with 3 zebra router. I started with simple routing through static
>>>> route to see it is working and I've failed. Bellow are my 
>>>> configuration:
>>>>
>>>> ------
>>>> ps -axf
>>>>  5701 ?        S      0:00 [zebra]
>>>>  5727 ?        S      0:00 [bgpd]
>>>>  5750 ?        S      0:00 [ospfd]
>>>>  5774 ?        S      0:00 [ripd]
>>>> -------
>>>>
>>>>
>>>> PC--R1--R2--PC
>>>>
>>>> R1
>>>> !
>>>> interface Ethernet0
>>>>  ip address 192.168.101.1 255.255.255.0
>>>> !
>>>> interface Ethernet1
>>>>  ip address 192.168.1.1 255.255.255.0
>>>> !
>>>> !
>>>> ip route 192.168.100.0 255.255.255.0 192.168.1.2
>>>>
>>>> R2
>>>> !
>>>> interface Ethernet0
>>>>  ip address 192.168.100.1 255.255.255.0
>>>> !
>>>> interface Ethernet1
>>>>  ip address 192.168.1.2 255.255.255.0
>>>> !
>>>> !
>>>> ip route 192.168.101.0 255.255.255.0 192.168.1.1
>>>>
>>>> I've tested the same at netsim it works fine but at zebra its not. Can
>>>> someone give me any clue what did i miss at the installation or
>>>> configuration part?
>>>>
>>>
>>> Do you have ip forwarding enabled on both routers R1 and R2?
>>> Where does defualt for both PC point to?
>>>
>>> -- 
>>> Arnold Nipper, AN45
>>>
>>
>> _______________________________________________
>> Zebra mailing list
>> [email protected]
>> http://ml.zebra.org/mailman/listinfo/zebra
>
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.