
212
|
Chapter 3: Linux Commands
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
netmask mask
(inet only) Specify how much of the address to reserve for
subdividing networks into subnetworks. mask can be
specified as a single hexadecimal number with a leading
0x, with a dot notation Internet address, or with a
pseudo-network name listed in the network table /etc/
networks.
pointopoint/-pointopoint [address]
Enable/disable point-to-point interfacing, so that the
connection between the two machines is dedicated.
promisc/-promisc
Enable/disable promiscuous mode. Promiscuous mode
allows the device to receive all packets on the network.
txqueuelen n
Specify the transmit queue length.
tunnel addr
Create an IPv6-in-IPv4 (SIT) device, tunneling to IPv4
address addr.
up
Mark an interface “up” (ready to send and receive).
addresses
Each address is either a hostname present in the hostname
database (/etc/hosts), or an Internet address expressed in the
Internet standard dot notation.
Examples
To list all interfaces:
ifconfig -a
To add a second IP address to wlan0:
ifconfig wlan0:1 192.168.2.41 netmask 255.255.255.0
To change the hardware address (MAC address) assigned to eth0
(useful when setting up a router for a DSL or cable modem):
ifconfig eth0 hw ether 01:02:03:04:05:06
imapd
imapd [options]
TCP/IP command. The Interactive Mail Access Protocol (IMAP)
server daemon. ...