Network
IFCONFIG

IFCONFIG - Configure a Network Interface
FreeBSD OpenBSD NetBSD Linux
Ethernet Card Interface Name dc0 tlp0 eth0


ifconfig with no options is the same as ifconfig -a
ifconfig -a displays the status of allinterfaces, active or not.
ifconfig dc0 126.3.0.1 changes the IP address of dc0
ifconfig dc0 netmask 255.255.0.0 changes the network mask for dc0











ifconfig with no options just shows the command syntax
ifconfig -a displays the status of allinterfaces, active or not.
ifconfig tlp0 126.3.0.1 changes the IP address of tlp0
ifconfig tlp0 netmask 255.255.0.0 changes the network mask for tlp0

ifconfig with no arguments displays the status of currently active interfaces including TCP/IP addresses, packet statistics, collisions, Interrupt & Base address.
ifconfig -a displays the status of allinterfaces, active or not.
ifconfig eth0 down shuts down interface eth0
ifconfig eth0 up activates the eth0 interface
ifconfig eth0 netmask 255,255,0,0 changes the network mask for eth0
ifconfig eth0 -pointopoint 126.3.0.1 (note the hyphen and spelling) changes the IP address of eth0



















see netstat to display network connections, etc.