Description
Application allows user to change their IP address via command line on windows OS. User may be able to avoid using multiple windows dialogs to change their IP. Currently IPv6 is not supported, and at this time no arguments are provided for selected prefered interface.
Usage
pyipchg [-h] [--version] [-lnic] [-ip IP] [-sub SUB] [-gat GAT] [-dhcp]
[-reach REACH]
Setup Enviroment
- Install python if not previously installed
- Install pip if not already installed
pip install pywin32
pip install wmi
git clone https://github.com/robaldwin9/pyipchg
Arguments
args |
description |
-h, --help | show this help message and exit |
--version | show program's version number and exit |
-lnic | list network interface cards information |
-ip IP | ipv4 address |
-sub SUB | subnetmask, changes only if ip provided |
-gat GAT | Default Gateway, changes only if ip provided |
-dhcp | Auto attain IP from DHCP |
-reach REACH | Check if ip is reachable |