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

My Blog

Here is my awesome blog.

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]

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