SerenityOS / serenity

The Serenity Operating System 🐞
https://serenityos.org
BSD 2-Clause "Simplified" License
29.83k stars 3.15k forks source link

ifconfig issues #702

Open danboid opened 4 years ago

danboid commented 4 years ago

Currently, ifconfig just shows the IP addresses and lets you configure just the IP addresses of network adapters. If you want to change the netmask or gateway you have to edit the source.

ifconfig should let you configure the netmask and gateway too and it should print those settings when run without any arguments.

Additionally, changing the IP address doesn't survive a reboot. Ideally all the network settings would persist after being changed. This would probably necessitate have a network config file under /etc, most likely (/etc/network ?).

DNS settings seems to be another thing missing but that probably deserves its own ticket as it likely won't be handled by ifconfig.

danboid commented 4 years ago

@kyllikki might be interested in helping fix this?

danboid commented 4 years ago

A quick poll in the serenity IRC channel resulted in those present favouring a .ini file for network config.