Skip to content

[FEATURE] IpConfig Command Implementation #65

@Kaveeshakavindi

Description

@Kaveeshakavindi

Is your feature request related to a problem? Please describe.
Yes, currently the custom shell MyCMD does not have a command to display network configuration. Users cannot easily view their IP addresses, network interfaces, or verify connectivity directly from the shell.

Describe the solution you'd like
Implement a new ipconfig command in MyCMD that:

  • Lists all network interfaces on the machine.
  • Displays the IP address of each interface.
  • Provides optional details like MAC address and interface status (up/down) in future enhancements.
  • Integrates with the existing Command interface and can be executed from the shell using ipconfig.

Describe alternatives you've considered

  • Asking users to run the OS-specific ipconfig (Windows) or ifconfig/ip a (Linux/Mac) outside of the shell.
  • Using a third-party library for network configuration retrieval.
    The implemented Java command is cross-platform and doesn’t rely on external commands, making it more portable.

Additional context

  • The command has been implemented in IpConfig.java under com.mycmd.commands.
  • The feature has been tested in both standalone mode and inside the shell, confirming that it correctly lists network interfaces and IP addresses.
  • Future improvements could include displaying subnet masks, default gateway, and DNS servers.

Metadata

Metadata

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions