Shell Commands/IfConfig

From MorphOS Library

Revision as of 11:33, 9 January 2016 by JPV (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

< Shell Commands

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