ok, you just bought a new (used) firewall from ebay, and now you need to configure it for your network. you start to read everything about the firewall but you can't find out how to reset all the configurations to the factory defaults. well i am going to show you what command you can use these commands:


go to enable mode:
enable

then go to global configuration:

# configure terminal

configure factory-default

once you send the configure factory-default you will see something like this:


Based on the inside IP address and mask, the DHCP address
pool size is reduced to 253 from the platform limit 256

WARNING: The boot system configuration will be cleared.
The first image found in flash:/ will be used to boot the
system on the next reload.
Verify there is a valid image on flash:/ or the system will
not boot.

Begin to apply factory-default configuration:
Clear all configuration
Executing command: interface Ethernet1
Executing command: nameif inside
INFO: Security level for "inside" set to 100 by default.
Executing command: ip address 192.168.1.1 255.255.255.0
Executing command: security-level 100
Executing command: no shutdown
Executing command: exit
Executing command: http server enable
Executing command: http 192.168.1.0 255.255.255.0 inside
Executing command: dhcpd address 192.168.1.2-192.168.1.254 inside
Executing command: dhcpd enable inside
Executing command: logging asdm informational
Factory-default configuration is completed
pixfirewall(config)# write memory
Building configuration...
Cryptochecksum: af335020 a76d7a3a d119997f 0b153637

2037 bytes copied in 0.380 secs
[OK]


now you can connect you PC to the interface 1 (Eth1) on the firewall to setup the PDM