Dynamips : How to get 10% CPU load only !

Hello all,

I found a nice info about Dynamips today. With the IOS image mentionned below, you’ll be able to run up to five 7200 routers and have a cpu load around 10% !!

IOS Image IdlePC %stable CPU Usage
c7200-jk9o3s-mz.124-7.bin 0×608049e8 <10%
c7200-pk9u2-mz[1].124-17.bin 0×60848e80 <9%

Enjoy ;)

How to list all ACL defined under a particular interface or route-map

Hello,

Here is an IOS tips to find all access-lists applied on an interface or route-map.

R1#sh run | inc ^(interface|route-map) | access-group
interface Dialer 0
ip access-group 102 out
interface FastEthernet0/0
ip access-group 101 in
route-map rm-lan permit 10

HTH ;)

How to use SecureCRT with Dynamips

Hello,

If SecureCRT is your favorite telnet/ssh tool, you can now use it with Dynamips !
Procedure is quite simple and is described below :

- Modify your dynagen.ini file in C:\Program Files\Dynamips and add the following line :
telnet = start C:\progra~1\SecureCRT\SecureCRT.EXE /script c:\progra~1\dynamips\securecrt.vbs /arg %d /T /telnet %h %p & sleep 1

- Write a vbs script and copy it into the same folder as dynagen.ini file. The script filename must be securecrt.vbs
#$Language="VBScript"
#$Interface="1.0"
Sub main
crt.window.caption = crt.arguments(0)
End Sub

All is ready now, when you issue a “telnet /all” on dynamips console, SecureCRT will run and each router will be displayed in its own tab.

HTH ;)

Terminal settings on Cisco IOS

Hello,

You have already been blocked while troubleshooting an issue by an infinite traceroute. You did not find which keys to use to stop it ? Here is the solution : In EXEC mode, type terminal escape-character 03
Now you can stop any traceroute or ping at anytime by using Ctrl + C sequence !

If you need further tips, check this page : Link.

See you later !

How to configure SDM with Dynamips

Hello gears,

I installed SDM engine today in order to prepare myself for ISCW test.

I searched the web about howto’s but I never found what I needed. Hope that tutorial can help someone else.

Steps :

  • Configure an ip address on a router interface and enable it. This interface must be fast/ethernet type.
    • Ex :
    • Router#conf t
    • Router(config)#ip http secure-server (Some keys should be generated…)
    • Router(config)#interface fastethernet0/0
    • Router(config-int)#ip address 172.16.0.2
    • Router(config-int)#duplex full
    • Router(config-int)#no shut
  • Install a loopback adaptater on your pc : You can follow the following article for this Link.
  • Run the “Network device list” batch from Dynamips folder and gather the hardware reference for your network adaptater.
  • Edit you .net file and add the following statement
    • F0/0 = NIO_gen_eth:DeviceNPF_{ ** your nic reference **}
  • Modify the new Windows network connection and assign it a static ip address such as 172.16.0.1/24.
  • Run your .net file and try to ping from both sides : Router->PC and PC->Router
  • Install SDM engine on your PC. I’m currently using the version 2.4.1. You may need to allow activex, you can trust them.
  • Use the ip address you defined on the router and enter it into SDM. 172.16.0.2 in our case.
  • You will be prompted for a username and a password. You have to define it into router configuration. Below is an example.
    • Router(config)#usernmame sdm priv 15 password sdmlab

Cheers and Enjoy ! ;)

HowTo : Understanding GlobalNames Zone in Windows Server 2008

An interesting article found on Petri’s technical site

Here it is !

Prevent users from using MP3 files on your Windows 2003 Server

You can use Windows Server 2003 to prevent storage of unauthorized file types, including .MP3 files on your Windows 2003 file servers. This tip will show you how to configure the File Server Management Console (FSMC) to prevent the storage of .MP3 files on your server, and also how to create a file group and a file screen.
Prevent users from storing .MP3 files on your Windows Server 2003

You will need to access the Configure Your Server wizard to install the FSMC. To accomplish this, open the Configure Your Server wizard and add the role of File Server. Servers upgraded from Windows 2000 Server to Windows Server 2003 R2 have this role present. If your file server already has this role, you still need the FSMC, which you will install.

To install the FSMC component, complete the following steps:

1. Open the Control Panel.
2. Open the Add/Remove Programs applet.
3. Choose Windows Components.
4. Select the Management And Monitoring Tools component.
5. Click the Details button.
6. Check the box for the File Server Management console and click OK.
7. When the install completes, close the Windows Components wizard and the Add/Remove Programs applet.

Once you install the FSMC, open the console from the Administrative Tools menu; you can now create file groups for the disallowed file types. For example, you might create a file group called Music Files to contain .MP3 and .WMA files and create another group called Video Files to manage .MPG and .MOV files.

By creating file groups and creating a file screen that uses them, you can prevent the saving of unwanted file types. (There are other settings available for file screening, but they are outside the scope of simply preventing file saving.)

Follow these steps in the FSMC to create these groups:

1. Expand the File Screening Management node.
2. Right-click the File Groups object and select Create File Group.
3. Provide a name for the file group (in this case, Music Files).
4. Specify the types of files to include by entering the extension *.MP3. If you wish to disallow files with a certain pattern in the name, you can specify that pattern with wildcards — for example, you would add files beginning with Track using the pattern Track*.
5. Click the Add button to add the file type or pattern to the files to include dialog.
6. Add any types of files or patterns you wish to exclude from this group in the Files To Exclude box. Click Add.
7. When you finish adding all the file types to the group, click OK. The FSMC will display your new file group in the Details pane when you open the File Screening node.

You may also want to consider redirecting users’ most used folders to a network location; this will make it easier to screen files. Follow these steps to create a file screen:

1. Open the FSMC and right-click the File Screening Management node.
2. Click Create File Screen.
3. Provide the name of the folder you wish to screen. An example would be the UNC path of the redirected personal folder of a specific user, e.g., server01usersjsmith.
4. Select the Define Custom File Screen Properties option.
5. Click the Custom Properties button.
6. On the Settings tab of the Custom Properties box, select Active Screening. This will prevent anyone from saving files that meet your specified conditions to the selected folder.
7. Select the Music Files group. (You will check the boxes of the file groups you wish to use.)
8. Click OK on Custom Properties and the Create File Screen dialog box.