Tuesday, 20 February 2007

The second idea -- Linux Router --

What have you need ?

  • What Computer models ?
    • Intel 486 family SX, DX, DX2 .....
    • Intel Pentium family , MMX, II, III ....
    • Intel Celeron family
  • Hardware components:
    • Base : Hard Disk Drive, CPU, RAM, Video Card, Floppy Disk & CDRom
    • Two RJ45 Network Cards , or more
  • Operating System:
    • Linux !!!!!!!!!!!

Example --->

We have a PC like this one :
Pentium MMX 133Mhz, 64 Mb Ram, HD 512Mb, Two Network Cards 10 Mbps, CDRom 12x, SVGA max 800x600, floppy disk, Monitor 14'', Keyboard and mouse.

  • Installation Slackware Operating System Following the post link
Attetion !! in section "Select Packages to install" you well have to choose A,D,L & N
Attetion !! during setup installation, for "Packages Seriers L (Libraries)", check only glib, glib2, glibc

  • Router Configuration
There is a routing software suite that providing implementations of OSPFv2, OSPFv3, RIP v1 and v2, RIPng and BGP-4 for Unix platforms, particularly FreeBSD, Linux, Solaris and NetBSD.
"Quagga" http://www.quagga.net/ is a fork of GNU Zebra acts as an abstraction layer to the underlying Unix kernel.

  • Installation Quagga ver. 0.98.6 on Slackware 10.0
Download the software from http://www.quagga.net/download/quagga-0.98.6.tar.gz and follows these steps to install :
  1. untar the package "routerlx# tar xvfz quagga-0.98.6.tar.gz "
  2. build the software
    1. routerlx:# cd quagga-0.98.6
    2. routerlx:# ./confiugre
    3. routerlx:# ./make
    4. routerlx:# ./make install
  3. Attention, after the build the space left on disk, delete the quagga-0.98.6.tar.gz and the quagga-0.98.6 folder.
  4. Edit the file "/etc/profile" and insert the variable "export LD_LIBRARY_PATH=/usr/local/lib"
  5. Reload the profile : "routerlx:#. /etc/profile"
  6. Copy the file "/usr/local/etc/zebra.conf.sample" in "/usr/local/etc/zebra.conf"
  7. Edit the file "/usr/local/etc/zebra.conf" and set these parameters :
    1. !
      ! Zebra configuration saved from vty
      ! 2007/03/14 08:18:03
      hostname Routerlx
      password zebra
      enable password zebra
  8. Start the zebra services "routerlx:#/usr/local/sbin/zebra -d -u root -g root"
  9. Edit the file "/etc/rc.d/rc.local" and add the command "/usr/local/sbin/zebra -d -u root -g root"
  10. Connect to routerlx with "telnet [ip address] 2601" example : telnet 2601

    1. Trying
      Connected to
      Escape character is '^]'.

      Hello, this is Quagga (version 0.98.6).
      Copyright 1996-2005 Kunihiro Ishiguro, et al.

      User Access Verification

      Routerlx> enable
      configure Configuration from vty interface
      copy Copy configuration
      debug Debugging functions (see also 'undebug')
      disable Turn off privileged mode command
      echo Echo a message back to the vty
      end End current mode and change to enable mode.
      exit Exit current mode and down to previous mode
      help Description of the interactive help system
      list Print command list
      logmsg Send a message to enabled logging destinations
      no Negate a command or set its defaults
      quit Exit current mode and down to previous mode
      show Show running system information
      terminal Set terminal line parameters
      who Display who is on vty
      write Write running configuration to memory, network, or terminal
  11. Your Router Now is Ready !!!!!!!!!!!!!!!!!!

Labels: , , ,


Anonymous Anonymous said...

This comment has been removed by a blog administrator.

13 June 2007 at 02:29  
Anonymous Anonymous said...

can u pls specify the reason behind editiing the rc.d/rc/local file

29 December 2007 at 01:40  
Blogger Gianni said...

Add Startup of quagga at the system boot ........

29 December 2007 at 03:36  

Post a Comment

Subscribe to Post Comments [Atom]

<< Home