Changes

Jump to: navigation, search

Orange Pi R1

5,119 bytes added, 11:58, 24 June 2022
Orange Pi R1 Routing System Adaptation
<div>[[文件:Orange-pi-r1-img-8.png|800px]]</div>
<br>
=== '''Configuration, Compiling and Installation of Quagga''' ===
<br>
1)There would be the following question when configure Quagga: During compilation, I'm getting the following error. How can I fix "libtoolize: No such file or directory" error?<br>
<br>
Can't exec "libtoolize": No such file or directory at
/usr/share/autoconf/Autom4te/FileUtils.pm line 345, line 5. autoreconf: failed to run libtoolize: No such file or directory autoreconf: libtoolize is needed because this package uses Libtool Solution:<br>
The error indicates that you do not have libtool installed on your system. To fix the problem, you need to install libtool, as describe below.<br>
libtool is a library tool designed to simplify the process of building software with complex static/shared library dependencies via a portable interface.<br>
<br>
On Debian, Ubuntu or Linux Mint:<br>
$ sudo apt-get install libtool<br>
<br>
2)You need to first install the following software on Orange Pi R1<br>
Ubuntu15.04:<br>
a.First copy sources.list_ubuntu15.04_ports_vivid into /etc/apt/, and re-name it into sources.list<br>
b.Install the following software:<br>
$ sudo apt-get update<br>
$ sudo apt-get install -y automake<br>
$ sudo apt-get install -y libtool<br>
$ sudo apt-get install -y gawk<br>
$ sudo apt-get install -y texinfo<br>
$ sudo apt-get install -y telnet<br>
3)Configuration, compiling and Installation of Quagga(Execute in SDK root directory):<br>
$ autoreconf -vif<br>
$ ./configure --enable-user=root --enable-group=root<br>
--enable-vty-group=root<br>
$ make<br>
$ make install<br>
<br>
=== '''Build a test environment; a small-scale local area network''' ===
<br>
1)The local area network should combine with three machines, Machine B should have at least two network card. The corresponding IP address for these three machines are:<br>
<nowiki>Machine A[eth0:192.168.1.10] <——> [ eth0:192.168.1.12] Machine B[eth1 :192.168.2.12] <——> [eth0:192.168.2.10] Machine C</nowiki><br>
2)Configure corresponding statics IP address for every Machine <br>
<span style="color:red;">The corresponding configure file of Ubuntu: /etc/network/interfaces</span> <br>
Machine A<br>
auto eth0<br>
<br>
iface eth0 inet static <br>
address 192.168.1.10<br>
gateway 192.168.1.12 #Make sure the gateway is correct <br>
netmask 255.255.255.0<br>
<br>
Machine B <br>
auto eth0<br>
<br>
iface eth0 inet static<br>
address 192.168.1.12<br>
gateway 192.168.1.10 #Make sure the gateway is correct <br>
netmask 255.255.255.0<br>
<br>
auto eth0<br>
iface eth0 inet static <br>
address 192.168.2.12<br>
gateway 192.168.2.10 #Make sure the gateway is correct <br>
netmsk 255.255.255.0<br>
<br>
Machine C <br>
auto eth0<br>
iface eth0 inet static <br>
address 192.168.2.10<br>
gateway 192.168.2.12 #Make sure the gateway is correct <br>
netmask 255.255.255.0<br>
<br>
After the above configure, reboot machines, check whether the corresponding IP address have been configured automatic, and test whether all the link could connect with ping command.<br>
<br>
3)Turn on IP forwarding function on all machines that participate in routing<br>
i. Distro Linux version is defaulted turn off IP forwarding function which not used by most users. If we want to build up a Linux router or vpn server, then we need to turn on this function.<br>
ii. Check whether it is turned on forwarding function with accessing kernel ipv4.ip_forward<br>
* Use sysctl:
$ sysctl net.ipv4.ip_forward <br>
net.ipv4.ip_forward = 0
* Check file on /proc:
$ cat /proc/sys/net/ipv4/ip_forward 0
<span style="color:red;">If the value equals to 0, then means the ipv4 forwarding not open </span><br>
iii. Running IP forwarding<br>
* We could running ipv4 forwarding function via sysctl(no need to reboot system)
$ sysctl -w net.ipv4.ip_forward=1
* Or echo 1 > /proc/sys/net/ipv4/ip_forward
The above two methods are temporary, it would be off if the PC reboot.
* If you want to make ip forwarding function keep working, then please modify /etc/sysctl.conf
Modify the notes of #net.ipv4.ip_forward = 1 into:<br>
<span style="color:red;">net.ipv4.ip_forward = 1</span><br>
If the ipv4 forwarding function have been set into 0, then only need to modify it into 1<br>
Then run /etc/init.d/procps.sh restart or reboot the machine to make it effective.<br>
<br>
4)Test the network connectivity<br>
Enter the following command on Machine A:<br>
$ ping 192.168.2.10
<div>[[文件:Orange-pi-r1-img-20.png|600px|]]</div>
<br>
If display like the above picture, then means have been successful test. Data from Machine A to Machine C could be forwarding from Machine B.<br>
<br>
=== '''Configure OSPF Routing Protocol''' ===
<br>
1)It could be forwarding if the local network haven’t been opened routing protocol, since it used default touting. It the network more complicated, statics configure would require more work, we would use corresponding routing protocol to rout.<br>
2)Process of configuring OSPF routing protocol on Machine B:<br>
a.After installed Quagga routing protocol, configure the following:<br>
i. Check whether there is configure files on /usr/local/etc directory:

Navigation menu