Difference between revisions of "Ifconfig"

From wikieduonline
Jump to navigation Jump to search
Line 20: Line 20:
 
== Related ==
 
== Related ==
 
* <code>[[docker inspect]] CONTAINER_NAME | grep IPAddress</code>
 
* <code>[[docker inspect]] CONTAINER_NAME | grep IPAddress</code>
* <code>[[hostname -I]]</code>
+
* Linux: <code>[[hostname -I]]</code>, <code>[[hostname -i]]</code>
* <code>[[hostname -i]]</code>
 
 
  anpi0 anpi1 anpi2 ap1 awdl0 bridge0 en0 en1 en2 en3 en4 en5 en6 gif0 llw0 lo0 stf0 utun0 utun1 utun2 utun3
 
  anpi0 anpi1 anpi2 ap1 awdl0 bridge0 en0 en1 en2 en3 en4 en5 en6 gif0 llw0 lo0 stf0 utun0 utun1 utun2 utun3
  

Revision as of 12:05, 23 September 2022

ifconfigis a command in Unix-like operating systems like Linux[1], FreeBSD, OpenBSD, macOS for Ethernet network interface configuration.


In macOS, the ifconfig command functions as a wrapper to the IPConfiguration agent, and can control the BootP and DHCP clients from the command-line. Use of ifconfig to modify network settings in Mac OS X is discouraged, because ifconfig operates below the level of the system frameworks which help manage network configuration. To change network settings in Mac OS X from the command line, use /usr/sbin/ipconfig or /usr/sbin/networksetup.

ifconfig command is included in the net-tools package but not installed by default in RHEL since version 7[2].

Configuring an alias IP

Activities

Related

anpi0 anpi1 anpi2 ap1 awdl0 bridge0 en0 en1 en2 en3 en4 en5 en6 gif0 llw0 lo0 stf0 utun0 utun1 utun2 utun3

See also

References

Text is available under the Creative Commons Attribution-ShareAlike License; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy.

Source: https://en.wikiversity.org/wiki/Ifconfig

Advertising: