Linux IP Commands





Display Current Config for all NIC's: ifconfig

Display Current Config for eth0: ifconfig eth0

Assign IP: ifconfig eth0 192.168.1.2

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

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

*You MUST be at the ROOT user to make/save any changes. Linux users, your distribution will determine the location of your network config file which will need to be updated and saved in order for the changes to remain in effect after rebooting. Network cards are referred to as eth0, eth1, eth2, etc based on their position on the PCI bus.
*Special thanks to Gergely for the Linux commands!



Recent Forum Posts

Proxy IP
After reading your great article on hiding your IP for Safari, the question arises "where do I get a Proxy ID address from". I can't find on this...
dinomark6
Hello Everyone.... Brand new here do be gentle...:D Hoping to learn about IP's, how to change them, etc. Brand new at this stuff so please...
Help Me Change My IP
I need help changing my IP. I have my IP given to my by Cox through a router, so the steps on whatismyip don't work. However, I have been able to...
Change IP problems
Hey all, I have recently been trying to change my WAN address yet have received no results. I have tried switching off the modem and the router...
My ip address, computer info traced and displayed on Facebook?
I want to know how this individual was able to get the following information off of a comment I made on Facebook. Any help would be appreciated. ...
What is GRE tunnel and how it is different from Virtual Link in OSPF????
Hi all, I read a lot of times about GRE tunnels that is used in IP Network. But never understood why this Technology was made?? What is the thing...
Interesting Google search
Just for kicks, go to Google (http://www.google.com/webhp?complete=0) and search - do a barrel roll They must have some programmers with a lot of...