Giter VIP home page Giter VIP logo

Comments (3)

saidelike avatar saidelike commented on May 29, 2024

Hi,

Hi,
Recently I have read your great posts about Cisco ASA. When I do experiments with GNS3, I came accross some problems.

  1. Since a GNS3 instance will be debugged over TCP/IP(telnet), why still need to enable and change "/dev/ttyS1" to "/dev/ttyS0" in rcS script when patch the qcow2 image? Why not use -n instead? (-n : gdb ethernet device, eg, 'eth0'). I have tried use -n option and made some corresponding changes, but it didn't work.

We still patch rcS to use "/dev/ttyS0" (instead of "/dev/ttyUSB0" because QEMU will redirect the serial port internally to a TCP port externally. So we access it from the external world (our machine) with gdb using a TCP/IP port but it will be redirected inside qemu to the serial port.

  1. When use asadbg to debug, a asacfg file is needed. In GNS3 mode, we have to specify a gns3_port filed (in your case, use 12005 instead). But during patching the qcow2 image, I can't find the corresponding port. Is it the default port used by gdbserver? How can I configure that port when enable gdb?

See above for the same reason. We don't need to specify it when we build the qcow2 as all it is aware of/using is the serial port. We only require the TCP port when attaching with gdb.

Now I get the following at the boot (default console type is vnc), but I don't know which port to use in gdb (target remote < GNS3's ip>:<which port???>).

We can get this information from the GNS3 window or GNS3 project file, see tutorial.md.

asa_boot

Any advice would be appricated! Thanks in advance.

from asafw.

cq674350529 avatar cq674350529 commented on May 29, 2024

@saidelike Thanks. Got it. I figured out the ip configured in env.sh is also just used for debug purpose later.

from asafw.

saidelike avatar saidelike commented on May 29, 2024

Closing as you seem to agree it is fixed.

from asafw.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.