Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
titleCreate freeRouter environment

Let's create the following structure, even if some folder are empty for now:

Code Block
languagebash
themeMidnight
mkdir -p ~/freeRouter/bin ~/freeRouter/lib ~/freeRouter/etc ~/freeRouter/log
cd ~/freeRouter/lib
wget http://freerouter.nop.hu/rtr.jar

so you have have the following environment:

Code Block
languagebash
themeMidnight
╭─[11:11:54]floui@debian ~ 
╰─➤ tree freeRouter
freeRouter
├── bin   # binary files      
├── etc   # configuration files      
├── lib   # library files      
└── log   # log files      



Expand
titleCreate freeRouter configuration files for router: R1

FreeRouter uses 2 configuration files in order to run:, let's write these configuration files for R1 in ~/freeRouter/etc

Code Block
languagebash
themeMidnight
titlefreeRouter hardware file: ${ROUTER_NAME}-hw.txt
int eth1 eth 0000.1111.0001 127.0.0.1 26011 127.0.0.1 26021
tcp2vrf 1123 v1 23


Code Block
languagebash
themeMidnight
titlefreeRouter software configuration file: ${ROUTER_NAME}-sw.txt
hostname r1
!
vrf definition v1
 exit
!
int eth1
desc r1@e1 -> r2@e1
vrf forwarding v1
 ipv4 address 1.1.1.1 255.255.255.252
 ipv6 address 1234::1 ffff:ffff:ffff:ffff::
 exit
!
server telnet tel
 security protocol telnet
 no exec authorization
 no login authentication
 vrf v1
 exit
!



Expand
titleCreate freeRouter configuration files for router: R2

Repeat the same configuration for R2 in ~/freeRouter/etc

Code Block
languagebash
themeMidnight
titlefreeRouter hardware file: ${ROUTER_NAME}-hw.txt
int eth1 eth 0000.2222.0001 127.0.0.1 26021 127.0.0.1 26011
tcp2vrf 2223 v1 23


Code Block
languagebash
themeMidnight
titlefreeRouter software configuration file: ${ROUTER_NAME}-sw.txt
hostname r2 e1
exit
!
vrf definition v1
 exit
!
int eth2
desc r3 e2
exit
eth1
desc r2@e1 -> r1@e1
vrf forwarding v1
 ipv4 address 1.1.1.2 255.255.255.252
 ipv6 address 1234::2 ffff:ffff:ffff:ffff::
 exit
!
server telnet tel
 security protocol telnet
 no exec authorization
 no login authentication
 vrf v1
 exit
!