Git Product home page Git Product logo

mac6's Introduction

Mac6

Build Status

mac6 is a simple CLI that compute a link local IPv6 address from a given MAC address.

Usage

Usage: mac6 [ -i=<interface> ] MAC

Compute IPv6 link-local address from MAC address

Arguments:
  MAC               Mac address

Options:
  -i, --interface   Out interface to build IPv6 link local string

Examples

  1. Getting the link-local IPv6 address from a MAC address
$ mac6 8b:7a:1b:06:06:75
fe80::897a:1bff:fe06:0675
  1. Getting the link-local IPv6 address from a MAC address with the out interface
$ mac6 -i eth0 8b:7a:1b:06:06:75
fe80::897a:1bff:fe06:0675%eth0

Main use case

The initial idea for this project is to ease connecting to a machine having an IPv6 stack. Today most of the Linux distribution comes with a dual IP stack. So, even when working on a legacy IPv4 network, it' possible to connect to any other machine using it's IPv6 link-local address. It can be usefull for instance to connected to a machine that failed its DHCP request.

When you know the machine's MAC address, you can use mac6 to contact a machine through it's IPv6 link-local address.

Examples

$ ping6 $(mac6 -i eth0 8b:7a:1b:06:06:75)

is equivalent to

$ ping6 fe80::897a:1bff:fe06:0675%eth0

And

$ ssh user@$(mac6 -i eth0 8b:7a:1b:06:06:75)

is equivalent to

$ ssh user@fe80::897a:1bff:fe06:0675%eth0

License

Mac6 is licensed under the MIT license.

mac6's People

Contributors

ggiamarchi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

dannymas lazygo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.