Hits : 1606

Dns 

> cat /etc/resolv.conf

search ebalaskas.gr
nameserver ns.web4you.gr
nameserver ns2.afraid.org


DEBIAN / ubuntu

> cat /etc/network/interfaces

auto lo eth0
iface lo inet loopback

iface eth0 inet static
        address 192.168.0.2
        netmask 255.255.255.0
        gateway 192.168.0.1

> sudo /etc/init.d/networking restart


Redhat / Fedora

> cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
HWADDR=00:00:00:00:00:00
IPADDR=192.168.0.2
NETMASK=255.255.255.0
ONBOOT=yes
TYPE=Ethernet

> cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=ebal.ebalaskas.gr
GATEWAY=192.168.0.1


With Root privileges:

# /etc/init.d/network restart


unix / linux distros

With Root privileges:

# ifconfig eth0 192.168.0.2 netmask 255.255.255.0 up
# route add default gw 192.168.0.1


note: after reboot we lost the network setup

Spoof MAC Address

ifconfig eth2 hw ether 00:00:00:00:00:00