snippetbashTip
ifconfig — Network Interface Configurator. More information: <https://net-tools.sourceforge.io/man/ifconfig.8.h
Viewed 0 times
commandifconfigconfiguratornetworkinterfacecliinformationmore
Problem
How to use the
ifconfig command: Network Interface Configurator. More information: <https://net-tools.sourceforge.io/man/ifconfig.8.html>.Solution
ifconfig — Network Interface Configurator. More information: <https://net-tools.sourceforge.io/man/ifconfig.8.html>.View network settings of an interface:
ifconfig {{interface_name}}Display details of all interfaces, including disabled interfaces:
ifconfig -aDisable an interface:
ifconfig {{interface_name}} downEnable an interface:
ifconfig {{interface_name}} upAssign an IP address to an interface:
ifconfig {{interface_name}} {{ip_address}}Code Snippets
View network settings of an interface
ifconfig {{interface_name}}Display details of all interfaces, including disabled interfaces
ifconfig -aDisable an interface
ifconfig {{interface_name}} downEnable an interface
ifconfig {{interface_name}} upAssign an IP address to an interface
ifconfig {{interface_name}} {{ip_address}}Context
tldr-pages: common/ifconfig
Revisions (0)
No revisions yet.