[Olsr-users] Problem in my OLSR network (Agung Septiadi)

Agung Septiadi (spam-protected)
Tue May 6 11:01:31 CEST 2008


HI Everyone.

I've uncommented lines below in /etc/sysctl.conf
 # Uncomment the next line to enable packet forwarding for IPv4
   net.ipv4.ip_forward=1

and changed values on the lines below to '1'

# Do not send ICMP redirects (we are not a router)
net/ipv4/conf/all/send_redirects = 1

# Do not accept IP source route packets (we are not a router)
net/ipv4/conf/all/accept_source_route = 1

This is my network:
Node A 192.168.100.6 with hostname labngn-laptop
Node B 192.168.100.5 with hostname agungsep-laptop
Node C 192.168.100.1 with hostname wmn

Finally I can Ping, SSH, and access web from A to C :)

This is the result of 'route' command from node A
(spam-protected):/home/labngn# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.100.1   agungsep-laptop 255.255.255.255 UGH   2      0        0 eth1
agungsep-laptop *               255.255.255.255 UH    1      0        0 eth1
167.205.64.64   *               255.255.255.192 U     0      0        0 eth0
192.168.100.0   *               255.255.255.0   U     0      0        0 eth1
link-local      *               255.255.0.0     U     1000   0        0 eth0
default         167.205.64.65   0.0.0.0         UG    100    0        0 eth0

Thank you to Victor, Jan Groenewald, and everyone :)


----- Original Message ----
From: Jan Groenewald <(spam-protected)>
To: Agung Septiadi <(spam-protected)>
Sent: Saturday, 3 May, 2008 1:09:28 PM
Subject: Re: [Olsr-users] Problem in my OLSR network (Agung Septiadi)

Hi

On Fri, May 02, 2008 at 10:58:29PM -0700, Agung Septiadi wrote:
>    Oh, I use Laptops with Ubuntu 8.04 fresh installed on all laptops.
>    afaik, Ubuntu doesn't have firewall installed on default. cmiiw

But ip forwarding is not turned on by default either. For Ubuntu Hardy
8.04, in /etc/sysctl.conf uncomment the second line below, using
   
   $ gksu $EDITOR /etc/sysctl.conf

Find these lines and remove the comment (#) in front of the second line:

   # Uncomment the next line to enable packet forwarding for IPv4
   net.ipv4.ip_forward=1

(mine is already uncommented) and then run

   $ sudo sysctl -p

One of the output lines should show:

   net.ipv4.ip_forward = 1

Warning: your PC will now always forward, even after reboots.

>    And if I use 'route' command on Laptop A, the result is
>    (spam-protected):/home/agungsep# route
>    192.168.100.0   *               255.255.255.0   U     0      0        0
>    wlan0

Looks good, route via the wlan0 interface. I'm not sure whether you
were supposed to see something like 'metric 2' there as well?

>    This is the OLSR table routing with 'olsrd -d 2' command on Laptop A
>           *** olsr.org - 0.5.4 (2007-11-22 00:04:03 on vernadsky) ***
>    IP addr (2-hop)  IP addr (1-hop)  TLQ
>    192.168.100.1    192.168.100.8    0.000

Looks good. OLSR on laptop B can see C and report this information,
that A has a 2-hop route to C via B.



EnableIPv4 forwarding in the kernel as above?

regards,
Jan
-- 
   .~.
   /V\     Jan Groenewald
  /( )\    www.aims.ac.za
  ^^-^^






      ___________________________________________________________ 
Yahoo! For Good. Give and get cool things for free, reduce waste and help our planet. Plus find hidden Yahoo! treasure 

http://green.yahoo.com/uk/earth-day/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.olsr.org/pipermail/olsr-users/attachments/20080506/498b24cf/attachment.html>


More information about the Olsr-users mailing list