Skip to content

A tool used for quickly switching between a static and dynamic ip on a linux host. useful if you have an isolated lab system that needs to connect to the internet every now and then to get tool updates.

Notifications You must be signed in to change notification settings

R3MRUM/switch-net

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

switch-net

Author: @R3MRUM

Decription:

This is a little script that I wrote which enabled me to quickly switch between a static IP and a dynamic IP. I would switch to DHCP when I needed to connect to the internet in order to update my analysis tools on my linux VM and then switch back to a static ip to move the VM back into Host-Only isolation. The primary benefit to this script versus doing it manually is the use of a config file to store static IP properties.

The static IP properties you define are saved within "~/.switch-netrc". Below are the default properties should you not supply any:

  • interface: eth0
  • ip: 172.16.0.131
  • subnet: 255.255.255.0

About

A tool used for quickly switching between a static and dynamic ip on a linux host. useful if you have an isolated lab system that needs to connect to the internet every now and then to get tool updates.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages