Skip to content

Instantly share code, notes, and snippets.

View danish-rehman's full-sized avatar

danish-rehman

View GitHub Profile
/** @file console.h
* @brief Function prototypes for the console driver.
*
* This contains the prototypes for the console
* driver and eventually any macros, constants,
* or global variables you will need.
*
* @author Harry Q. Bovik (hqbovik)
* @author Fred Hacker (fhacker)
* @bug No known bugs.
@danish-rehman
danish-rehman / route_table_update
Created January 9, 2015 19:10
Rip routing table update
zebrad# show ip route
Codes: K - kernel route, C - connected, S - static, R - RIP,
O - OSPF, I - IS-IS, B - BGP, A - Babel,
> - selected route, * - FIB route
K>* 0.0.0.0/0 via 192.168.1.254, eth4
R>* 10.1.1.0/24 [120/2] via 10.1.2.2, eth1, 00:00:28
C>* 10.1.2.0/24 is directly connected, eth1
C>* 10.1.3.0/24 is directly connected, eth0
C>* 127.0.0.0/8 is directly connected, lo
@danish-rehman
danish-rehman / check_ripd
Created January 9, 2015 19:07
Check rip is running
>> cat /var/run/ripd.pid
@danish-rehman
danish-rehman / ripd
Created January 9, 2015 19:05
Run ripd
>> ./ripd -d
@danish-rehman
danish-rehman / ripd conf file
Created January 9, 2015 19:04
Sample ripd conf file
router rip
network 10.1.3.0/24
network eth0
network 10.1.2.0/24
network eth2
@danish-rehman
danish-rehman / execute_quagga2
Created January 9, 2015 19:03
Execute command quagga 2
>> ./zebra -d -u root -f /mnt/conf/zebra.conf
@danish-rehman
danish-rehman / quagga conf
Created January 9, 2015 19:00
Sample quagga conf
!
! Example zebra configuration
!
hostname zebrad
password zebra
!
interface eth5
ip address 10.10.1.1/24
!
interface eth7
@danish-rehman
danish-rehman / execute_quagga
Last active August 29, 2015 14:13
Execute quagga command
>> ./configure --enable-user=root --enable-group=root
>> make
@danish-rehman
danish-rehman / untar_quagga
Created January 9, 2015 18:56
Untar Quagga code
>> tar -xvzf quagaa.tar.gz
@danish-rehman
danish-rehman / iperf_test
Created January 9, 2015 18:51
Iperf testing in custom ip router
# Server
>> iperf -u -s -w 1 -l 12
# Client
>> iperf -u -c node4 -w 1 -l 12