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 ! ;)

25 réponses vers «How to configure SDM with Dynamips»

  1. KaiserSoze Dit:

    When you say:

    F0/0 = NIO_gen_eth:DeviceNPF_{ ** your nic reference **}

    Which NIC should we choose? The loopback or the local NIC?

  2. niamor Dit:

    Hello,

    You have to use the loopback adaptater reference.

    Good luck.

  3. helmut Dit:

    “Run your .net file and try to ping from both sides : Router->PC and PC->Router”

    copied your instructions, agap, but ping fails.
    No connection from and to my MS loopback adapter…

  4. niamor Dit:

    Helmut,

    Are your pc and router in the same ip subnet ?
    Are all interfaces up ?
    Did you defined the correct DeviceNPF value ?

  5. Danny Pinto Dit:

    From PC to router is pinging , But from router to PC loopback not pinging why ??

    Any other settings required .

  6. Tim Dit:

    I have the loopback adapter set up and can ping from both dirtections, but the SDM never launches. Very frustrating.

  7. niamor Dit:

    Hi Tim,

    It takes a while to launch sometimes and if you’re using internet explorer you should be prompted to use an activeX.

    Good luck ;)

  8. Tim Dit:

    The problem was I was using Firefox 3.0. When I tried IE, it worked! Doh!

  9. Michael Dit:

    When I try to run the .net file, I get the message:

    206-unable to create generic ethernet NIO.

    I copied the loopback reference just as stated above. Is there something I’m not doing right?

  10. Michael Dit:

    nevermind…figured it out. one little \ and everything crapped out. Got it working now.

    Excellent job Niamor….been looking for something like this for a while.

  11. shankar Dit:

    I had deleted flash and nvram in cisco 1841 then how to install this again

  12. niamor Dit:

    Hello Shankar,
    Did you also remove the ios image ?
    Rgds, Niamor

  13. Theo Dit:

    Can someone tell me what does “NIC reference” mean please ?
    or may be your example of the following line:
    “F0/0 = NIO_gen_eth:DeviceNPF_{ ** your nic reference **}”
    ?

  14. Theo Dit:

    ok
    I found some examples of NIC reference, but have no idea where to look for it

  15. Theo Dit:

    OHHHHHHHH
    sorrrryyyyy

    here in Ukraine it is quarter to 2′oclock in the morning, so i’m quite inattentive right now

    figured out
    thanks a bunch for the post

  16. Theo Dit:

    well
    now I just can’t log in to the router

    I used the following command with another username and password. but then neither SDM nor telnet from cmd doesn’t let me in

    * Router(config)#usernmame sdm priv 15 password sdmlab

    • niamor Dit:

      Hi Theo,

      Did you find your nic ref ? (If not it is displayed via “Network device list” batch from Dynamips)

      Did you enable the cisco webserver on the router ?

      BRgds.

  17. Theo Dit:

    hi Niamor,
    yes, I found nic ref, I just missed the way to do it, when read it for the 1st time.

    and

    No, I didn’t enable the web server on the router. could you please give me a clue how to do it or a link? I’ll appreciate it very much.
    when I start SDM it asks me to enter SSH username and password. then it asks the same for telnet.
    I set up password for telnet. But what about username?
    Then I tried to use the following example
    * Router(config)#usernmame sdm priv 15 password sdmlab
    and it didn’t help.

    may be it’s related to setting up cisco web server on the router which you mentioned.

  18. Theo Dit:

    Btw,
    I accessed the router via telnet connection,
    but still can’t do the same with SDM(ver. 2.3, 2.5 used)

  19. Theo Dit:

    Hi again,
    well I set up:
    - http server on the router
    - allowed ActiveX
    - downloaded JRE 1.4.2
    - defined privilege level 15 user: username sdm privilege 15 password sdm

    now, when I’m connecting to the router via SDM it shows me one after another windows of IE, and after it shows the 2nd one, the 3rd one is appearing with the message:
    “SDM Startup Error
    SDM has not been granted with the necessary privileges in order to startup successfully, or another unknown error occurred during startup.
    Please close all involved browser windows and try again by granting all requested privileges.”

  20. Theo Dit:

    once again it appeared to be a matter of JRE version.
    I used 1.4.2, 1.4.2_05 etc
    but it was 1.4.2_17, which appeared to be workable

    so, no problems now and I’ve finally accessed my router through the SDM

    anyway thanks for good tutorial

  21. Doublethumb Dit:

    Hello theo ,

    I think u have to issue an additional command to use the local database while in https login , it goes like this : ip http authentication local … Or ( https ) I think that will do , good luck … A+

  22. Mike Dit:

    Hello all. I am having some problems with the SDM running. I am able to ping from the PC and the router with in GNS3 both ways with 100% success rate. So I have communication there, and have the router set up to use local accounts for allowing my user name ans password for SDM. The weird part is everything opens and asks me about active X and prompts user name and password but when I enter it, the one window says loading SDM then that message goes away and nothing happens. Can anyone help me out here?


Laisser un commentaire