<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:Courier New,courier,monaco,monospace,sans-serif;font-size:10pt"><div style="font-family: Courier New,courier,monaco,monospace,sans-serif; font-size: 10pt;"><span style="font-family: verdana,helvetica,sans-serif;">HI Everyone.<br><br>I've uncommented lines below in /etc/sysctl.conf<br></span> # Uncomment the next line to enable packet forwarding for IPv4<br> net.ipv4.ip_forward=1<br><br><span style="font-family: verdana,helvetica,sans-serif;">and changed values on the lines below to '1'</span><br><br># Do not send ICMP redirects (we are not a router)<br>net/ipv4/conf/all/send_redirects = 1<br><br># Do not accept IP source route packets (we are not a router)<br>net/ipv4/conf/all/accept_source_route = 1<br><br><span style="font-family: verdana,helvetica,sans-serif;">This is my network:<br>Node A 192.168.100.6 with hostname labngn-laptop<br>Node B
192.168.100.5 with hostname agungsep-laptop<br>Node C 192.168.100.1 with hostname wmn<br><br>Finally I can Ping, SSH, and access web from A to C :)<br><br>This is the result of 'route' command from node A<br><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">root@labngn-laptop:/home/labngn# route</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">Kernel IP routing table</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">Destination Gateway Genmask Flags Metric Ref Use Iface</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier
New,courier,monaco,monospace,sans-serif;">192.168.100.1 agungsep-laptop 255.255.255.255 UGH 2 0 0 eth1</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">agungsep-laptop * 255.255.255.255 UH 1 0 0 eth1</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">167.205.64.64 * 255.255.255.192 U 0 0 0
eth0</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">192.168.100.0 * 255.255.255.0 U 0 0 0 eth1</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">link-local * 255.255.0.0 U 1000 0 0 eth0</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier
New,courier,monaco,monospace,sans-serif;">default 167.205.64.65 0.0.0.0 UG 100 0 0 eth0</span><br><br>Thank you to Victor, Jan Groenewald, and everyone :)<br><br><br></span><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Jan Groenewald <jan@aims.ac.za><br>To: Agung Septiadi <agungsep@yahoo.co.uk><br>Sent: Saturday, 3 May, 2008 1:09:28 PM<br>Subject: Re: [Olsr-users] Problem in my OLSR network (Agung Septiadi)<br><br>Hi<br><br>On Fri, May 02, 2008 at 10:58:29PM -0700, Agung Septiadi wrote:<br>> Oh, I use Laptops with Ubuntu 8.04 fresh installed on all laptops.<br>> afaik, Ubuntu doesn't have firewall installed on default. cmiiw<br><br>But ip forwarding is not
turned on by default either. For Ubuntu Hardy<br>8.04, in /etc/sysctl.conf uncomment the second line below, using<br> <br> $ gksu $EDITOR /etc/sysctl.conf<br><br>Find these lines and remove the comment (#) in front of the second line:<br><br> # Uncomment the next line to enable packet forwarding for IPv4<br> net.ipv4.ip_forward=1<br><br>(mine is already uncommented) and then run<br><br> $ sudo sysctl -p<br><br>One of the output lines should show:<br><br> net.ipv4.ip_forward = 1<br><br>Warning: your PC will now always forward, even after reboots.<br><br>> And if I use 'route' command on Laptop A, the result is<br>> root@agungsep-laptop:/home/agungsep# route<br>> 192.168.100.0 * 255.255.255.0 U 0 0 0<br>> wlan0<br><br>Looks good,
route via the wlan0 interface. I'm not sure whether you<br>were supposed to see something like 'metric 2' there as well?<br><br>> This is the OLSR table routing with 'olsrd -d 2' command on Laptop A<br>> *** olsr.org - 0.5.4 (2007-11-22 00:04:03 on vernadsky) ***<br>> IP addr (2-hop) IP addr (1-hop) TLQ<br>> 192.168.100.1 192.168.100.8 0.000<br><br>Looks good. OLSR on laptop B can see C and report this information,<br>that A has a 2-hop route to C via B.<br><br><br><br>EnableIPv4 forwarding in the kernel as above?<br><br>regards,<br>Jan<br>-- <br> .~.<br> /V\ Jan Groenewald<br><span> /( )\ <a target="_blank" href="http://www.aims.ac.za">www.aims.ac.za</a></span><br> ^^-^^<br></div><br></div></div><br>
<hr size=1>
Yahoo! For Good. Give and get cool things for free, reduce waste and help our planet. <a
href="http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://green.yahoo.com/uk/earth-day/">Plus find
hidden Yahoo! treasure</a></body></html>