Linux-Based Graphic Design Tools


The open source community has developed a wide variety of Linux-based graphic design tools for mapping networks. However, from the perspective of creating Cisco-based network diagrams, the choices are limited. On the basis of popularity and communitywide support, the following two tools are worth mentioning:

  • Dia

  • Kivio

Dia is an open source program for creating diagrams. Dia can be used to draw many different kinds of diagrams, including network diagrams and flow charts. The project home page for Dia is located at http://www.gnome.org/projects/dia/.

The following advantages are offered by Dia:

  • The dynamic connection points on the icons facilitate resizing and relocation of objects within the diagram without the need to reconnect the point after moving the objects.

  • It provides built-in Cisco stencils.

  • An MS-Windows version is also available.

This chapter discusses Dia rather than Kivio because Kivio stencils are not free. Dia stencils are available at no charge and can be distributed freely.

This following sections prepare the Netadmin for understanding and using Dia:

  • Deploying Dia

  • Creating diagrams with Dia

  • Viewing sample Dia diagrams

Deploying Dia

The steps involved in deploying Dia are as follows:

Step 1.

Install Dia.

The specific installation steps can vary according to the underlying Linux distribution. To install Dia on a Debian-Linux system, use the apt-get install command, as follows:

 root@linuxbox:~# apt-get install dia 

Step 2.

Run Dia.

Dia runs out of the box, and no configuration is required. To start Dia, enter dia at the command prompt, as follows:

 root@linuxbox: ~# dia 

Creating Diagrams with Dia

Before creating a network diagram, you should be familiar with the toolbar and the various icons used in Dia. The main window shows the toolbar menu (as shown in Figure 11-1), which consists of three sections:

  • Connectors and standard shapes

  • Stencils

  • Size and colors

Figure 11-1. Dia Toolbar


The top section of the toolbar menu consists of connectors and standard shapes. The middle section contains a drop-down menu for stencils. The contents of the selected stencil are displayed below the menu bar. The bottom section consists of the selector for shape, size, and colors. The Diagram pane uses its own menu.

Dia refers to the stencils as sheets. Each sheet contains icons. Dia refers to icons as shapes. The six most useful sheets for network diagrams, which are preloaded in Dia, are as follows:

  • Cisco - Computer

  • Cisco - Hub

  • Cisco - Misc

  • Cisco - Network

  • Cisco - Router

  • Network

To start a new diagram, choose File > New.

If the diagram lacks the File menu at the top, you can right-click within the blank area of the diagram to invoke the Diagram file menu.

Tip

By default, the display is not antialiased, causing the icons to look fuzzy. To turn on the Antialiasing feature, choose View > AntiAliased on the Diagram menu.


The most common tasks involved in creating a network diagram using Dia are as follows:

  • Adding icons

  • Connecting icons

  • Removing a connection

  • Adding a text box

  • Inserting an Ethernet backbone

  • Exporting the diagram as a JPEG image

  • Adding new icons to the stencil

These are only a few of the most common tasks available to the Netadmin. For more information, refer to the online manual that is included with the installation files. To view the manual, choose Help > Manual in the Diagram pane.

Adding Icons

On the main toolbar, choose the desired sheet from the drop-down menu to display the icons. Drag the desired icon and drop it on the diagram. The blue cross signs (X) on the edge of the icons are the connection points. To toggle the display of connection points, choose View > Show Connection Point on the Diagram menu.

Connecting Icons

To connect two icons, click to select the desired link from the upper section of main toolbar. The choices are straight line, curved line, zigzag line, and polyline. Click the drawing to drop the selected link. Select and drag the green ends of the link and drop it over the connection point on the icon. The link snaps to the icon only if the end of the link overlaps the connection point on the icon. Dia displays a red boundary around the icon when the connection point overlaps the end of the link.

Removing a Connection

To remove a connection, click the link and press Delete.

Adding a Text Box

To insert a text box containing information such as host name or IP address, click the Insert Text button on the main toolbar and then click the desired location on the diagram. Enter the desired text. Click the blank background to exit the Insert Text mode.

Inserting an Ethernet Backbone

To insert an Ethernet backbone, select the Network stencil from the stencil drop-down menu on the main toolbar. Drag and drop the Ethernet icon on the diagram. You can also insert a serial line link using the Network stencil.

Exporting the Diagram as a JPEG Image

To save the image in PNG or JPEG format, follow these steps:

Step 1.

Choose File > Export on the Diagram menu.

Step 2.

In the Determine file type field in the Export Diagram window, choose GdkPixbuf - not antialiased (*.png, *.jpg, *.jpeg), enter the desired filename with the desired extension (.jpg or .png), and click the OK button.

Adding a New Icon to the Stencil

This feature is handy for adding new icons that are not part of the standard shapes included in Dia. To add new icons, follow these steps:

Step 1.

From the Diagram menu, choose Tools > Image and click the desired location on the diagram.

Step 2.

Double-click the Broken Image icon to invoke the Image properties menu.

Step 3.

On the Image properties menu, use the Browse button to locate and insert the icon image. Click the OK button to close the Image properties menu.

Tip

You can find a variety of Cisco icons at the home page of the Cisco Packet magazine: http://www.cisco.com/go/packet.

You can also use these icons with OpenOffice Draw to create simple network diagrams.


Viewing Sample Dia Diagrams

The following are three sample diagrams created by Dia.

Figure 11-2 shows Dia in action, drawing a logical topology for ABC Investments Inc.

Figure 11-2. Dia in Action


Figure 11-3 shows the final output in .jpg format.

Figure 11-3. Dia JPEG output


Figure 11-4 represents the physical topology of the network shown in Figure 11-3. Note the differences in physical versus logical topologies.

Figure 11-4. Dia Physical Topology




Network Administrators Survival Guide
Network Administrators Survival Guide
ISBN: 1587052113
EAN: 2147483647
Year: 2006
Pages: 106

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net