So, the same code, same exec file, same config file for both vms running IPv6 mode; I used scp to be sure I have the same thing on both.
No packetloss script used, so I get more routes for one destination.
The output for the first one (used the most for testing):
Nothing wrong so far, but the netstat -rn output looks like this:
Internet6:
Destination Gateway Flags Netif Expire
::1 ::1 UH lo0
fd00::/8 link#1 U re0
fd00::3 link#1 UHS lo0
fe80::%lo0/64 link#4 U lo0
fe80::1%lo0 link#4 UHS lo0
ff01:1::/32 fd00::3 U re0
ff01:4::/32 fe80::1%lo0 U lo0
ff02::%re0/32 fd00::3 U re0
ff02::%lo0/32 fe80::1%lo0 U lo0
re0 is the interface on which olsrd runs.
No IPv6 route added to the kernel routing table.
The output for the second vm:
The output for netstat -rn for this vm is:
Internet6:
Destination Gateway Flags Netif Expire
::/96 ::1 UGRS lo0
::1 ::1 UH lo0
::ffff:0.0.0.0/96 ::1 UGRS lo0
fd00::/8 link#1 U re0
fd00::1/0 fe80::1%re0 U re0
fd00::2/0 fe80::2%re0 U re0
fd00::3/0 fe80::3%re0 U re0
fd00::4 link#1 UHS lo0
fe80::/10 ::1 UGRS lo0
fe80::%re0/64 link#1 U re0
fe80::201:ff:fe00:4%re0 link#1 UHS lo0
fe80::%re1/64 link#2 U re1
fe80::201:ff:fe00:d%re1 link#2 UHS lo0
fe80::%lo0/64 link#4 U lo0
fe80::1%lo0 link#4 UHS lo0
ff01:1::/32 fe80::201:ff:fe00:4%re0 U re0
ff01:2::/32 fe80::201:ff:fe00:d%re1 U re1
ff01:4::/32 ::1 U lo0
ff02::/16 ::1 UGRS lo0
ff02::%re0/32 fe80::201:ff:fe00:4%re0 U re0
ff02::%re1/32 fe80::201:ff:fe00:d%re1 U re1
ff02::%lo0/32 ::1 U lo0
So, you can see the output is very different, this one is better, but not the best.
A few tips and tricks I learned while working for Freifunk and Quagga organizations.
Thursday, June 30, 2011
Sunday, June 26, 2011
FreeBSD vm configure
Since I had some trouble in configuring the FreeBSD vm, here are some basic steps into making a vm work for development:
1. install a package using
pkg_add -r {pkg-name}
portsnap fetch update - similar to apt-get update
portsnap extract
portsnap update
2. enable root ssh login:
edit /etc/ssh/sshd_config by adding PermitRootLogin option, and running /etc/rc.d/sshd reload to activate the change;
3. adding ipv6 net address using
4. for internet access configure dns, in /etc/resolv.conf, and gateway to be the same as for your host;
route add default {gw_ip_addr}
5. to run olsrd, the olsrd.conf must be edited and copied into /usr/local/etc;
1. install a package using
pkg_add -r {pkg-name}
portsnap fetch update - similar to apt-get update
portsnap extract
portsnap update
2. enable root ssh login:
edit /etc/ssh/sshd_config by adding PermitRootLogin option, and running /etc/rc.d/sshd reload to activate the change;
3. adding ipv6 net address using
# ifconfig {interface-name} inet6 {IPv6-Address} prefixlen {routed-bit}
4. for internet access configure dns, in /etc/resolv.conf, and gateway to be the same as for your host;
route add default {gw_ip_addr}
5. to run olsrd, the olsrd.conf must be edited and copied into /usr/local/etc;
Subscribe to:
Posts (Atom)