Announcement

Collapse
No announcement yet.

Hopefully simple ? changing the IP address

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Hopefully simple ? changing the IP address

    I have an ASA 5505 and I need to change the IP address of it from 192.168.1.1 to 192.168.2.1, I know I can't do this from the GUI interface but I don't know the command to do this in the console, I run a show running-config and see it but what is the command for me to change it. Sorry for a stupid question.

    THanks

  • #2
    Re: Hopefully simple ? changing the IP address

    Hi,

    You can do this with netsh.exe
    i.e
    Code:
    netsh interface ip set address name="Local Area Connection" static 192.168.1.1 255.255.255.0 192.168.2.1 1
    ref:
    http://www.petri.com/configure_tcp_ip_from_cmd.htm
    Caesar's cipher - 3

    ZKHQ BRX HYHQWXDOOB GHFLSKHU WKLV BRX ZLOO UHDOLVH LW ZDV D ZDVWH RI WLPH!

    SFX JNRS FC U6 MNGR

    Comment


    • #3
      Re: Hopefully simple ? changing the IP address

      Does this really work on a Cisco firewall?
      Tom Jones
      MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
      PhD, MSc, FIAP, MIITT
      IT Trainer / Consultant
      Ossian Ltd
      Scotland

      ** Remember to give credit where credit is due and leave reputation points where appropriate **

      Comment


      • #4
        Re: Hopefully simple ? changing the IP address

        Originally posted by Ossian View Post
        Does this really work on a Cisco firewall?
        Ooops! just waking up..

        I thought it was on Windows.
        Caesar's cipher - 3

        ZKHQ BRX HYHQWXDOOB GHFLSKHU WKLV BRX ZLOO UHDOLVH LW ZDV D ZDVWH RI WLPH!

        SFX JNRS FC U6 MNGR

        Comment


        • #5
          Re: Hopefully simple ? changing the IP address

          The cisco command references are here;
          http://www.cisco.com/en/US/products/...ence_list.html

          Look for "IP Address" and "route"
          If they are on different subnets you may need to change more than the route command though.
          cheers
          Andy

          Please read this before you post:


          Quis custodiet ipsos custodes?

          Comment


          • #6
            Re: Hopefully simple ? changing the IP address

            thanks for the reference I am still looking for the command but do have a lot of reading to go

            Comment


            • #7
              Re: Hopefully simple ? changing the IP address

              (From the previous doc)

              You use the interface command to log into the interface:
              hostname(config)# interface gigabitethernet0/2

              nameif to name it
              hostname(config-if)# nameif inside

              Set the security
              hostname(config-if)# security-level 100

              IP Address
              hostname(config-if)# ip address 10.1.1.1 255.255.255.0

              Enable it (you shouldn't require this but no harm if you do type it)
              hostname(config-if)# no shutdown

              If the subnet is different though you may need to change your route (if it is specific), your NAT statement and possibly ACLs as well so it isn't quite as simple as it sounds.
              cheers
              Andy

              Please read this before you post:


              Quis custodiet ipsos custodes?

              Comment


              • #8
                Re: Hopefully simple ? changing the IP address

                Thanks for the help, I ended up reloading from an old config and doing it that way through the command line. Thanks again

                Comment


                • #9
                  Re: Hopefully simple ? changing the IP address

                  Sorry I missed your PM.

                  It would be easier to post a screenshot but if you have it sorted then great
                  cheers
                  Andy

                  Please read this before you post:


                  Quis custodiet ipsos custodes?

                  Comment


                  • #10
                    Re: Hopefully simple ? changing the IP address

                    Andy,

                    That's OK I thought everything reloaded fine but I made things worse, my root passwords don't work so I went into rommon to try and change the config to reset it and now I am stuck, is there any easy way to reset this darn thing back to the factory settings, it has a reset button on the back but that doesn't do anything.

                    Cisco Systems ROMMON Version (1.0(12)11) #4: Thu May 1 14:50:05 PDT 2008
                    Platform ASA5505
                    Ethernet0/0
                    MAC Address: 0023.5ec2.6770
                    Link is DOWN
                    Use ? for help.
                    rommon #0>
                    CISCO SYSTEMS
                    Embedded BIOS Version 1.0(12)11 04/30/08 15:45:41.19
                    Low Memory: 632 KB
                    High Memory: 251 MB
                    PCI Device Table.
                    Bus Dev Func VendID DevID Class Irq
                    00 01 00 1022 2080 Host Bridge
                    00 01 02 1022 2082 Chipset En/Decrypt 11
                    00 0C 00 1148 4320 Ethernet 11
                    00 0D 00 177D 0003 Network En/Decrypt 10
                    00 0F 00 1022 2090 ISA Bridge
                    00 0F 02 1022 2092 IDE Controller
                    00 0F 03 1022 2093 Audio 10
                    00 0F 04 1022 2094 Serial Bus 9
                    00 0F 05 1022 2095 Serial Bus 9
                    Evaluating BIOS Options ...
                    Launch BIOS Extension to setup ROMMON
                    Cisco Systems ROMMON Version (1.0(12)11) #4: Thu May 1 14:50:05 PDT 2008
                    Platform ASA5505
                    Ethernet0/0
                    MAC Address: 0023.5ec2.6770
                    Link is DOWN
                    Use ? for help.
                    rommon #0> en
                    Invalid or incorrect command. Use 'help' for help.
                    rommon #0> enable
                    Invalid or incorrect command. Use 'help' for help.
                    rommon #0> confreg
                    Current Configuration Register: 0x00000000
                    Configuration Summary:
                    boot ROMMON
                    Do you wish to change this configuration? y/n [n]: y
                    enable boot to ROMMON prompt? y/n [n]: y
                    select specific Flash image index? y/n [n]: y
                    enter Flash image index [1->7]: 1
                    disable system configuration? y/n [n]: n
                    go to ROMMON prompt if netboot fails? y/n [n]: n
                    enable passing NVRAM file specs in auto-boot mode? y/n [n]: n
                    disable display of BREAK or ESC key prompt during auto-boot? y/n [n]: y
                    Current Configuration Register: 0x00010002
                    Configuration Summary:
                    boot ROMMON, boot command will load index-1 image from Flash
                    display of BREAK or ESC key prompt during auto-boot disabled
                    Update Config Register (0x10002) in NVRAM...
                    rommon #1>
                    rommon #1> show
                    Please define the specific show command.
                    Valid "show" command arguments are:
                    "idprom": display ID-PROM Fields
                    " info": display platform specific information
                    " gdb": display image gdb settings
                    " reg": display current TFTP port device registers
                    " stat": display current TFTP port state and stats
                    rommon #1>
                    rommon #1>

                    Comment


                    • #11
                      Re: Hopefully simple ? changing the IP address

                      Not had to go through this myself but this might help?

                      http://www.submityourarticle.com/art...wall-17868.php
                      cheers
                      Andy

                      Please read this before you post:


                      Quis custodiet ipsos custodes?

                      Comment

                      Working...
                      X