Cisco makes many items today. They are known for their routers and switches in the past but have recently offered many new products including NAS, SAN, and server solutions along with VoIP phones and supporting hardware.
Most Cisco devices use a command line interface to their own Cisco IOS or Cisco Internetwork Operating System that controls how the routers and switches work. Some common actions on Cisco IOS setup are listed below.
Add a DHCP Pool
ip dhcp pool [Pool Name] network [eg.. 172.16.0.0] [mask eg.. 255.255.252.0] dns-server [208.67.222.222 208.67.220.220] default-router [172.16.0.1]
- NAT
ip nat inside source list 1 interface FastEthernet0/0 overload ! access-list 1 permit 10.0.38.0 0.0.0.255
Fix a failed Router IOS upgrade.
- With the router off remove the Compact Flash
- Power on and wait for ROMMON mode. (you can get here another way too.)
- Type "confreg"
- Yes
- Select no or the default value until you get to the boot options..
- Change boot options to 0
- No to the more changes dialog
- Type "reset"
- Power off the router and add the Compact Flash and then power on again.
- Type "IP_ADDRESS=[temporary router address]"
- Type "IP_SUBNET_MASK=[mask for above]"
- Type "DEFAULT_GATEWAY=[gateway]"
- Type "TFTP_SERVER=[your tftp server]"
- Type "TFTP_FILE=[filename]"
- Type "tftpdnld"
- Wait...
- Type "reset"
- Wait...
- Type "confreg" and change the boot setting to 2 like you did above
- Type "reset"
- Wait...
- Done, have fun, relax
Cellular Modem (GSM)
- router# cellular 0/1/0 gsm profile create 1 isp.tld chap user password
Write the config to the Card. - router(config)#chat-script gsm "" "ATDT*99*1#" "CONNECT"
interface Cellular0 description *** GSM *** ip address negotiated ip nat outside ip virtual-reassembly encapsulation ppp dialer in-band dialer idle-timeout 7200 dialer string gsm dialer-group 1 async mode interactive ppp chap hostname isp ppp chap password 0 isp ppp ipcp dns request !
- router# cellular 0/1/0 gsm profile create 1 isp.tld chap user password
Remote Shell
aka handy backup and management practice...- Setup
- Assuming your device is setup with a management network on vlan50 and you are running a script as root on your Linux box at IP 172.20.2.10...
! username remote privilege 7 secret 5 $1$oft2$Ln ! ip rcmd rcp-enable ip rcmd rsh-enable ip rcmd remote-host remote 172.20.2.10 root enable ip rcmd remote-username remote ip rcmd source-interface Vlan50 !
Note:Different versions of IOS handle things strangely. Read the docs and read the help hints on the cli. - Use
rsh -l remote 172.20.2.1 show run > cisco.`date +%F`.conf
Which will give you a file with a copy of the running configuration. You can do other more complex things but this is a good way to automate backups.