Академический Документы
Профессиональный Документы
Культура Документы
http://www.tomax7.com/mcse/cisco_commands.htm
home | 403.809.1176
Routing with Cisco 2500 and 1000 Series for LAN-ISDN Service
Commands - General There are 3 different modes of operation within the Cisco IOS.
1 of 6
6/26/2013 4:45 PM
http://www.tomax7.com/mcse/cisco_commands.htm
debugging dialer extended flash flh-log history hosts interfaces ip isdn line logging memory privilege processes protocols queue queueing reload
State of each debugging option Dialer parameters and statistics Extended Interface Information System Flash information Flash Load Helper log buffer Display the session command history IP domain-name, lookup style, name servers, and host table Interface status and configuration IP information ISDN information TTY line information Show the contents of logging buffers Memory statistics Show current privilege level Active process statistics Active network routing protocols Show queue contents Show queueing configuration Scheduled reload information
route-map route-map information running-config Current operating configuration sessions Information about Telnet connections smf Software MAC filter stacks Process stack utilization startup-config Contents of startup configuration subsys Show subsystem information tcp terminal users version Status of TCP connections Display terminal configuration parameters Display information about terminal lines System hardware and software status
Other Useful Commands View the Software Version View the Ethernet IP View the Serial IP View the Default Route View the Filters View the Bandwidth Add a Static Route Change the Dial Number Turn Filters On and Off Ping from the Router Traceroute from the Router View the Software Version Cisco>en Cisco#wr term <--- Shows the running configuration Building configuration... Current configuration: ! version 11.2 no service udp-small-servers no service tcp-small-servers ! hostname Cisco ! interface Ethernet0 ip address 192.168.1.1 255.255.255.0 ! interface Serial0 ip address 192.168.6.1 255.255.255.0 encapsulation frame-relay frame-relay lmi-type ansi ! interface Serial1 ip address 192.168.4.2 255.255.255.0 encapsulation frame-relay bandwidth 1536 keepalive 5 frame-relay map ip 192.168.4.1 101 IETF ! router rip version 2 network 192.168.4.0
2 of 6
6/26/2013 4:45 PM
http://www.tomax7.com/mcse/cisco_commands.htm
network 192.168.6.0 neighbor 192.168.6.2 neighbor 192.168.4.1 ! ip classless ip route 0.0.0.0 0.0.0.0 192.168.6.2 ip route 0.0.0.0 0.0.0.0 192.168.4.1 ! line con 0 line aux 0 line vty 0 4 login ! end View the Ethernet IP Router#wr term
This will show the running configuration. Within the configuration, you will see an interface ethernet 0 section:
interface Ethernet0 ip address 38.150.93.1 255.255.255.0 no ip directed-broadcast View the Serial IP Router#wr term
interface Serial0 ip address 38.21.10.100 255.255.255.0 ip broadcast-address 38.21.10.255 ip access-group 106 in encapsulation frame-relay bandwidth 56 no fair-queue frame-relay map ip 38.21.10.1 500 IETF View the Default Route Router#wr term
In the ip route section, look for a route: ip route 0.0.0.0 0.0.0.0 38.167.29.1 The last ip address is the POP ip. View the Filters Router#wr term
This means that access-group 104 is the inbound filter set and access-group 105 is the outbound filter set. Then, continue to look in the configuration for the access-list statements:
(Example access-list statements) access-list 104 deny ip 38.166.101.0 0.0.0.255 any access-list 104 permit tcp any any established access-list 104 permit tcp any eq ftp-data any gt 1023 access-list 104 permit udp any eq domain any gt 1023 access-list 104 permit udp any eq domain any eq domain access-list 104 permit icmp any any access-list 104 permit udp any eq snmp any gt 1023
3 of 6
6/26/2013 4:45 PM
http://www.tomax7.com/mcse/cisco_commands.htm
deny ip any 38.166.101.0 0.0.0.255 permit tcp any any established permit tcp any any eq ftp deny udp any eq netbios-ns any deny udp any eq netbios-dgm any permit ip any any
interface Serial0 ip address 38.21.10.100 255.255.255.0 ip broadcast-address 38.21.10.255 ip access-group 106 in encapsulation frame-relay bandwidth 56 no fair-queue frame-relay map ip 38.21.10.1 500 IETF Add a Static Route Cisco#config t Enter configuration commands, one per line. End with CNTL/Z. Cisco(config)#ip route DEST.DEST.DEST.DEST MASK.MASK.MASK.MASK GATE.GATE.GATE.GATE where: DEST.DEST.DEST.DEST = The destination network the static route is for MASK.MASK.MASK.MASK = The subnet mask of the destination network GATE.GATE.GATE.GATE = The gateway of the static route Example route statement: ip route 38.222.75.0 255.255.255.0 38.20.5.1 Cisco(config)#^Z (hit <control> z)
Cisco#wr mem Building configuration... [OK] Change the Dial Number Type en to put the router in enable mode:
test.com>en
The password should be the same as the one used to telnet in.
Password:
test.com#show config
NOTE: Record what interface the dialer map IP line is under because you will need to use that interface when changing the number.
test.com#config t
4 of 6
6/26/2013 4:45 PM
http://www.tomax7.com/mcse/cisco_commands.htm
Enter configuration commands, one per line. End with CNTL/Z. Enter the interface that the dialer map IP line is under:
test.com(config)#interface BRI0
Add in the new dialer map IP line with the new phone number:
Now, remove the old dialer map IP line. To remove a line, type no and then the line. For example, to remove the old dialer map IP, type:
test.com(config)# [control] z
Save changes:
test.com#show config
The new number should be in the dialer map IP line. Turn Filters On and Off To turn the filters off:
Router#configure terminal Router(config)#interface Serial0 Router(config-if)#no ip access-group 104 in Router(config-if)#no ip access-group 105 out Router(config-if)# Hit CTRL-Z Router#wr mem Building configuration... [OK] Router#
Router#configure terminal Router(config)#interface Serial0 Router(config-if)#ip access-group 104 in Router(config-if)#ip access-group 105 out Router(config-if)# Hit CTRL-Z Router#wr mem Building configuration... [OK] Router# Ping from the Router Cisco#ping <hostname> Example: Cisco#ping 38.8.14.2
Disclaimer: The customer acknowledges that the examples provided in this document are solely for illustrative purposes. Further, the customer both understands and agrees that the information in the examples may need to be modified to assure proper functioning on his/her own computer system(s). Tomax7 is not liable for any negative consequences arising from the improper use or modification of the provided examples.
5 of 6
6/26/2013 4:45 PM
http://www.tomax7.com/mcse/cisco_commands.htm
Home | Portfolio | Profile | Packages | Computer Help | Visit Calgary | Contact Tom | Testimonials | Greetings | Comedy | Games Web Pages and HTML Sources are Copyright 1996-2012 | email: tom@tomax7.com | Visit www.digitalsmiles.com Site Created using Macromedia Dreamweaver MX2004, Microsoft Front Page 2003, and good ol' Windows Notepad!
6 of 6
6/26/2013 4:45 PM