Tuesday 7 February 2012

Linux networking commands

Displaying IP address of an interface
# ifconfig eth0

Setting up IP address using ifconfig
# ifconfig eth0 192.168.1.5 netmask 255.255.255.0 up

To up and down an ethernet device
# ifup eth0
# ifdown eth0

Showing status of ethernet interface eth0
# ethtool eth0

Showing status of wireless interface eth1
# iwconfig eth1

Listing network interfaces
# ip link show

List internet services on a system
# netstat -tupl

List active connections to/from system
#  netstat -tup






No comments:

Post a Comment