juakali-networks / rdisc

ICMPv4 Router Solicitation Protocol and ICMPv4 Router Adverisement Protocol
0 stars 0 forks source link

ICMPv4 Router Solicitation Protocol and ICMPv4 Router Advertisement Protocol

#

This is the linux implementation of the ICMPv4 Router Solicitation Protocol and the ICMPv4 Router Advertisement Protocol (RFC1256) using the C programming language.

The ICMP Router Solicitation Message is sent by a computer host to any routers (or routing computers) that may exist on a local area network requesting them to advertise their presence on the network. This message should be sent not only at bootup of the computer but also periodically and is useful in that the computer administrator does not need to add IP routes manually to the host computer.

The ICMP Router Advertisement Message is sent by a router (or routing computer) to announce that its IP address is available for routing. The ICMP Router Advertisement Message is also sent when the router (or routing computer) receives the ICMP Router Solicitation Message.

Building

 
git clone https://github.com/juakali-networks/rdisc.git
cd rdisc/src
make

Usage

sudo ./rdisc -s

Sends three solicitation messages to a LAN (using the all-routers.mcast.net (224.0.0.2)) asking if there is a router.

sudo ./rdisc -r

Sends a router advertisement message either periodically or in response to a router solicitation message.

sudo ./rdisc -s 192.168.0.10

Send solicitation messages to a specific address. This is also broadcast on the LAN.

Example

Linux PC 1 and Linux PC 2 are both on the same LAN.

On Linux PC 1. run

sudo ./rdisc -s

On Linux PC 2. run

sudo ./rdisc -r

If you have any questions, comments or need any additional support, contact us on juakali.networks@gmail.com.