1) cat etc/network/interfaces to view IP address
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static # change here dhcp to static
address 172.16.183.XX # ip address of the machine
netmask 255.255.255.0 # network mask
gateway 172.16.183.2 # Gateway of the machine
2) View the hostname cat /etc/hosts
chandra@jump-server:~$ cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 jump-server # change or verify the hostname
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
3) verify the hostname: cat /etc/hostname
4) Verify DNS entry: cat /etc/resolv.conf
nameserver 165.21.100.88
nameserver x.x.x.x
nameserver x.x.x.x
5) service restart: sudo /etc/init.d/networking restart | stop | start
6) List ip info: sudo ifconfig
7) more info on networking: sudo lshw -C network
*-network
description: Ethernet interface
product: 79c970 [PCnet32 LANCE]
vendor: Advanced Micro Devices [AMD]
physical id: 0
bus info: pci@0000:02:00.0
logical name: eth0
version: 10
serial: 00:0c:29:9d:b6:1c
width: 32 bits
clock: 33MHz
capabilities: bus_master rom ethernet physical logical
configuration: broadcast=yes driver=pcnet32 driverversion=1.35 ip=172.16.183.172 latency=64 link=yes maxlatency=255 mingnt=6 multicast=yes
resources: irq:18 ioport:2000(size=128) memory:dc100000-dc10ffff(prefetchable)
8) sudo ifup eth0 - bring a network interface up
sudo ifdown eth0 - take a network interface down
Trobleshooting network issues in ubuntu

