Networking

Unix and Linux network configuration. Multiple network interfaces. Bridged NICs. High-availability network configurations.

Applications

Reviews of latest Unix and Linux software. Helpful tips for application support admins. Automating application support.

Data

Disk partitioning, filesystems, directories, and files. Volume management, logical volumes, HA filesystems. Backups and disaster recovery.

Monitoring

Distributed server monitoring. Server performance and capacity planning. Monitoring applications, network status and user activity.

Commands & Shells

Cool Unix shell commands and options. Command-line tools and application. Things every Unix sysadmin needs to know.

Home » Books & Certifications, Networking

LPI Invents Linux Commands

Submitted by on January 18, 2011 – 7:50 pm 5 Comments

It would appear that in order to obtain Linux Professional Institute’s LPIC-2 certification, one needs to know real Linux commands as well as imaginary ones. On the Sample Questions page for LPIC-2 Exam 2 the LPI Linux gurus pose the following question:

What command is typically used to manually change the default gateway used by your TCP/IP networking device? (Please enter only the command without options, paths or arguments)

The “correct” answer, to my great surprise, is “FITB” (see screenshot). As in Fill In The Blank. Nice answer. Have they developed a flavor of Linux in Canada we are not aware of? We will need to investigate this further. In the meantime, you may want to put your LPIC-2 aspirations on hold: surely LPI can invent commands faster than you can memorize them.

But, if you just want to change your Linux machine’s default gateway, here are a few better ideas than typing “FITB” into the shell window. Depending on Linux flavor, the default gateway information is stored in a flat file usually in /etc/sysconfig. It may be /etc/sysconfig/network or /etc/sysconfig/network/routes. On Solaris it is /etc/defaultrouter.

Here’s a sample default router configuration from a SLES 11 system:

icebox:/ # cat /etc/sysconfig/network/routes
default 192.168.122.1 - -

The “- -” portion means that this is the default route for all NICs in your system. You can also set a separate route for each NIC by replacing the last “-” with the NIC logical name (i.e. “eth0”). After making changes to the “network” or “routes” file, you will need to restart your network service.

You can also set default route by using the “route” command:

route add default gw 192.168.122.1 eth0
Print Friendly, PDF & Email

5 Comments »

  • unbleevable39 says:

    Is Linux certification worth? which certification is better, i mean Red Hat, Novell or Sun?

  • Miguel M says:

    Other than CompTIA Linux+, are there any other Linux certifications? Thanks.

  • Jeremy Xargor is my gamertag says:

    What licenses or certification would I need to trade stocks for other people. My objective is to manage other people’s money while “day and swing trading”. Could I just do it under that premise or do I need to be a CFP or a RFC?

  • dealy says:

    Ms has the MCSA,MCSE materials which are called Microsoft Official Curriculum . They are only avalable to training institutes , which are partners .
    The commercial versions are ” Self-paced traing guide” .

    I know “LPIC-1: Linux Professional Institute Certification Study Guide” , but it comes from Sybex .
    Do you know the official materials from LPI , whats its name ? so that I could search …
    Thanks

  • stephen m says:

    I’m planning to do red hat Linux …suggest me some very good Linux books which will be really useful and easy to understand.

Leave a Reply

%d bloggers like this: