|
Cisco Router CLl Commands
continued
3. Global configuration mode
(the settings affects all interfaces and neighboring routers)
a. to enter into global configuration mode :
router# config terminal (or) conf t
then the prompt becomes
router(config)#
3.1 interface configuration mode :
a. to enable ethernet port 0 of the router :
router(config)# interface ethernet 0 (or) router(config)# int e0
then the prompt becomes
router(config-if)# ip address <ip address> <smask>
router(config-if)# no shutdown (or) router(config-if)# no
shut <-- to enable e0
router(config-if)# exit
b. to enable serial port 0 of the router :
router(config)# interface ethernet 0 (or) router(config)# int e0
then the prompt becomes
router(config-if)# ip address <ip address> <smask>
router(config-if)# no shutdown
(or) router(config-if)# no shut <-- to enable e0
router(config-if)# clock rate 64000 <-- only if the cable end is
dce
router(config-if)# exit
3.2 sub-interface configuration mode
a. to configure ethernet port 0.1
router(config)# interface ethernet 0.1
router(config-sub-if)# ip address <ip address> <smask>
router(config-sub-if)# no shutdown
router(config-sub-if)# exit
3.3 line configuration mode
a. to configure console port
router(config)# line console 0
router(config-line)# login
router(config-line)# password <password>
router(config-line)# exit
b. to configure auxillary port
router(config)# line aux 0
router(config-line)# login
router(config-line)# password <password>
router(config-line)# exit
c. to configure virtual teletype(vty) port
router(config)# line vty 0
router(config-line)# login
router(config-line)# password <password>
router(config-line)# exit
d. to configure virtual teletype(vty) port and to save same password
for all 5(0 to 4) user
router(config)# line vty 0 4
router(config-line)# login
router(config-line)# password <password>
router(config-line)# exit
3.4 router configuration mode
a. to configure rip in a router
router(config)# router rip
router(config-router)# network <network ip>
router(config-router)# network <network ip> ... upto number of
networks to be advertised)
router(config-line)# exit
b. to remove a network from rip
router(config)# router rip
router(config-router)# no network <net ip>
There are more commands and configurations that can be used in various above
modes.
-
Every active interface on a Cisco router to be used with IP requires an IP
address assigned to it. This short and sweet describes how to set an
interface’s IP address.
-
The default route is the IP address of the next hop when no other routes are
known.
All
routing is a destination-driven process.
Save a Configuration to a File
You might want to save a configuration to a file so that you can edit it with a
text editor of your choice. You can save your current configuration to an ASCII
file, which saves the configuration in its current form, including any
uncommitted changes. If more than one user is modifying the configuration, all
changes made by all users are saved.
To save software configuration changes to an ASCII file, use the save
configuration mode command:
[edit]
user@host# save filename
[edit]
user@host#
By default, the configuration is saved to a file in your home directory, which
is on the flash disk.
|