Difference between revisions of "Shell Commands/IfConfig"

From MorphOS Library

< Shell Commands

 
Line 24: Line 24:
 
Use "ifconfig -h" for usage.
 
Use "ifconfig -h" for usage.
 
</nowiki>
 
</nowiki>
 +
 +
See also: NetConfig

Latest revision as of 11:33, 9 January 2016

IfConfig - Configures network interfaces and shows interface configurations

Non-standard template, type IfConfig -h for more information.

usage: ifconfig                  ; show all interfaces
       ifconfig -h               ; usage
       ifconfig interface
        [ [ address [ dest_addr ] ] [ up ] [ down ][ netmask mask ] ]
        [ metric n ]
        [ mtu n ]
        [ arp | -arp ]

Example:

Ram Disk:> IfConfig
lo0: flags=8009<UP,LOOPBACK,MULTICAST> MTU=16436
        inet 127.0.0.1 netmask ff000000
        Hardware type: Loopback

wl1: flags=c863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,SANA,MULTICAST> MTU=1500
        inet 192.168.1.103 netmask ffffff00 broadcast 192.168.1.255
        Hardware type: Ethernet, address: 0:13:49:62:84:7d

Use "ifconfig -h" for usage.

See also: NetConfig