Chris Nizzardini, Salt Lake City Utah, Web Developer Specializing in LAMP+Ajax Since 2006

My Blog

Here is my awesome blog. You can find information on programming, linux, documentation, tips for code and database optimization, my thoughts and rants, and whatever else I feel like sharing. Feel free to contribute to the blog by posting comments and asking questions.
Linux

Linux ifconfig / route commands

Add a static IP Address:
ifconfig [interface] [ip address] netmask [subnet address]

Add a default gateway or route:
route add default gw [ip address]

No related posts.

4 Responses to “Linux ifconfig / route commands”

  1. Huu says:

    #ifconfig eth0 135.1.1.199 netmask 255.255.255.0 up

  2. Huu says:

    #ifconfig eth0 135.1.1.199/255.255.255.0 up

  3. Huu says:

    netstat -rn

  4. Huu says:

    #sevice xinetd.d start

Leave a Reply