Skip to contentSkip to conversation

Problem with network and zebra

LARTC Sanjeev Lakshmanan 2 participants 2 messages Dec 22, 2001

lore
Share & tools
lore
#0 lore raw

Hello all,

Thank you for your response. But I have this thing bugging me for many days now,

Please have a look at this :

I have connected the ethernet card of two computers with a crossover cable. The ethernet cards are assigned ONLy their inet addresses. NO BROADCAST ADDRESS is configured. and there is no other address on these cards (no gateway, etc) other than their inet address with a netmask of 255.255.255.255( a.b.c.d/32)

Then I have added each others eth card as neighbours using "ip neigh add" comand.
Then I created a route between these 2 interfaces using "ip route add dest_addr scope link dev eth0(Dest_dev) "(I created the route on both the computers)

But when I give the ping commnad with each others Ip address, it doesnt work and gives an error "Destination host unreachable"

Have I forgotten to do something? Or is it a problem with iproute2 on my computers which are running on RedHAt 7.1 ? (I have also set the proc/sys/net/ipv4/ip_forward file to 1 )

AND ONE MORE QUESTION:
How much time des it take for the zebra daemon to run? (a few seconds or some minutes)?

When I ran zebra, there seemed to be no activity. What could be the problem? When the zebra daemon runs, does it display any messages?

Please reply,

Regards,
Sanjeev.

__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/

#1 lore raw
Quoted 8 lines

I have connected the ethernet card of two computers with a crossover cable. [...] no other address on these cards (no gateway, etc) other than their inet address with a netmask of 255.255.255.255( a.b.c.d/32)

Then I have added each others eth card as neighbours using "ip neigh add" comand.

that's not necessary, unless you have disabled ARP.

Quoted 3 lines

Then I created a route between these 2 interfaces using "ip route add dest_addr scope link dev eth0(Dest_dev) "

use a tool like tcpdump to see what's going on the wire. and double check the configuration on both sides.

alternatively, try with just ifconfig and "plain" route :
box1# ifconfig eth0 1.2.3.4 netmask 255.255.255.255 box1# route add -host 4.3.2.1 eth0
box2# ifconfig eth0 4.3.2.1 netmask 255.255.255.255 box2# route add -host 1.2.3.4 eth0
if /that/ does not work, check connectivity with a "standard" setup, because it's probably a lower-level problem then.

Quoted 2 lines

(I have also set the
proc/sys/net/ipv4/ip_forward file to 1 )

not necessary, unless you have more than 2 machines, and one of them acts as a router between the others.

Quoted 3 lines

How much time des it take for the zebra daemon to run? (a few seconds or some minutes)?
When I ran zebra, there seemed to be no activity.

it depends of the protocol. I think that RIP, if no route is injected to it, will never send anything. else, it broadcasts every minute, as do OSPF. BGP, by default, only tries to establish TCP connections with the configured peers.

Quoted 2 lines

What could be the problem? When the zebra daemon runs, does it display any messages?

after starting, i.e., zebra, try "telnet localhost zebra".

Jerome Petazzoni <skaya at enix dot org>
--
Noble dragons don't have friends. The nearest they can get to the idea is an enemy who is still alive.
(Guards! Guards!)

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/