====== Linux Network Commands ====== Display Current Config for all NIC's: ifconfig Display Current Config for eth0: ifconfig eth0 Assign IP: ifconfig eth0 192.168.1.2 ===== Change to dhcp: ===== vi /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 BOOTPROTO=dhcp HWADDR=00:19:D1:2A:BA:A8 ONBOOT=yes ===== set to static ===== DEVICE="eth0" BOOTPROTO="static" HWADDR="00:0C:29:D7:CD:F2" IPADDR=192.168.2.9 NETMASK=255.255.255.0 GATEWAY=192.168.2.1 ONBOOT="yes" Save and close the file. Just restart network service: /etc/init.d/network restart Show IP address ip addr show eth0 Ping: ping -c 3 192.168.1.1 Assign multiple IP's: ifconfig eth0:0 192.168.1.2 Assign second IP: ifconfig eth0:1 192.168.1.3 Disable network card: ifconfig eth0 down Enable network card: ifconfig eth0 up View current routing table: route "or" route -n View arp cache: arp "or" arp -n Assign IP/Subnet: ifconfig eth0 192.168.1.2 netmask 255.255.255.0 Assign Default Gateway: route add default gw 192.168.1.1 Add dns into /etc/resolv.conf nameserver 8.8.8.8 Trace Route: traceroute www.whatismyip.com Trace Path: tracepath www.whatismyip.com DNS Test: host www.whatismyip.com Advanced DNS Test: dig www.whatismyip.com Reverse Lookup: host 66.11.119.69 Advanced Reverse Lookup: dig -x 66.11.119.69 Read more: http://www.whatismyip.com/faq/linux-ip-commands.asp#ixzz29upjcTuF ===== how to reduce RAM consumption (disable printing, smartcards, etc.) ===== chkconfig --list | grep "\bon\b" should show you the list of things that are currently set to start on boot. You can review those and chkconfig $servicename off =====Check Linux Install===== cat /etc/*-release