ifconfig interface [aftype]
options | address ...
where:
- interface: eth0, eth1, eth2 represent the computer ethernet interfaces
- aftype: inet (TCP/IP, default), inet6 (IPv6), ax25 (AMPR Packet Radio), ddp (Appletalk Phase 2), ipx (Novell IPX) or netrom (AMPR Packet radio)
Options:
Option
|
Description
|
---|---|
up
|
Activate
the interface. Implied if IP addresses are specified.
|
down
|
Shut
down interface
|
arp
|
Enable
ARP protocol on this interface. Allow ARP to detect the addresses
of computer hosts attached to the network.
|
-arp
|
Disable
ARP protocol on this interface
|
promisc
|
Enable
promiscuous mode. Receive all packets on the network not just
those destined for this interface.
|
-promisc
|
Disable
promiscuous mode.
|
mtu
##
|
Specify
the Maximum Transfer Unit (MTU) of the interface. The MTU is the
maximum number of octets the interface is able to handle in a
single transaction. Defaults: Ethernet: 1500 SLIP: 296
|
broadcast
XXX.XXX.XXX.XXX
|
Set
the network broadcast address for this interface.
|
netmask
XXX.XXX.XXX.XXX
|
Set
the IP network mask for this interface.
|