Cisco Router Configuration Commands For Student
Cisco Router Configuration Commands For Student
Router> enable
Router# show ?
Router # clock set 11:24:30 22 Aug 2009 // set clock in router
Router # configuration terminal
Router (config)# hostname R1 // change router name
R 1 (config)# banner motd * hello welcome have a nice day * / message of the day
Console line
R1 (config)# line console 0
R 1(config- line) # password cisco
R 1(config- line) #login
R 1(config- line) #exit
VTY line
R1 (config)# line vty 0 4
R 1(config- line) # password cisco
R 1(config- line) #login
R 1(config- line) #exit
Auxiliary line
R1 (config)# line aux 0
R 1(config- line) # password cisco
R 1(config- line) #login
R 1(config- line) #exit
Interfaces Configuration
Ethernet Interface
Serial Interface
Static Routing
R1# sh ip route
Dynamic Routing
R1 (config)#route rip
R1 (config-route)#network 1.0.0.0
R1 (config-route)#network 4.0.0.0
R1 (config-route )#network 200.100.50.0
R2 (config)#route rip
R2 (config-route)#network 2.0.0.0
R2 (config-route)#network 3.0.0.0
R2 (config-route )#network 200.100.100.0
Same all
Show cmd
R1# sh ip route
R1# sh ip route eigrp
R1# sh ip eigrp neighbor
R1# sh ip eigrp topology
OSPF: Open shortest Path First
R1(config)#route ospf 20
R1 (config-route)#network 1.0.0.0 0. 255.255.255 area 0.0.0.0
R1 (config-route)#network 4.0.0.0 0.255.255.255 area 0.0.0.0
R1 (config-route )#network 200.100.50.0 0.0.0.255 area 0.0.0.0
R2 (config)#route ospf 20
R2 (config-route)#network 2.0.0.0 0.255.255.255 area 0.0.0.0
R2 (config-route)#network 3.0.0.0 0.255.255.255 area 0.0.0.0
R2 (config-route )#network 200.100.100.0 0.0.0.255 area 0.0.0.0
Show cmd
R1# sh ip route
R1# sh ip route ospf
R1# sh ip ospf neighbor
R1# sh ip ospf topology
R1 # sh ip protocol
Configure cisco Router 2811 and Configure Natting with one serial and one ethernet card
Here we are going to confgure cisco router 2811/2611 with the ISP connection and create
natting .
step 1 :-
step 2 :-
where 203.148.202.3 and 203.148.202.4 are all the available dns server ip
step 3 :-
hostname(config)#interface Serial0/0
hostname(config-if)#ip address 58.68.30.130 255.255.255.0
hostname(config-if)# ip nat outside
hostname(config-if)#CLTR=Z
hostname#wr
hostname#config t
hostname(config)# ip nat pool sunny 125.16.1.20 125.16.1.20 prefix-length 24
Wan Ip 58.68.30.130 is the public Ip provided by the ISP and this ip will be natted with
your complete network.I mean your network will have 192.168.0.1,2,3 series but outside
this will be your main nattimg IP
hostname(config-if)ip nat outside
hostname(config-if)duplex auto
hostname(config-if)speed auto
hostname(config-if)control+Z - save configuration
step 4 :-
hostname#config t
hostname(config)# interface FastEthernet0/0
hostname(config-if)#ip address 192.168.0.20 255.255.255.0 secondary
hostname(config-if)# ip address 125.16.1.17 255.255.255.240
hostname(config-if)# ip nat inside
You have to configure the "interface vlan's" first before switchport access vlan 10
& 20.
https://learningnetwork.cisco.com/message/81911
interface Vlan 10
description LAN 10
ip address 192.168.0.1 255.255.255.0
!
interface Vlan 20
description LAN 20
ip address 192.168.1.1 255.255.255.0
interface FastEthernet0/1/0
description LAN 10
switchport access vlan 10
!
interface FastEthernet0/1/5
description LAN 20
switchport access vlan 20
Restart the router 1 or 2 times and your router is ready configured and natting is also
done
SWITCH CONFIGURATION:
SW>en
SW# config t
SW(config)#sh spanning tree
Priority Change
Prot Security
Or
SW(config-if)#switchport port-security mac address H.H.H
SW(config-if)#switchport port-security maximum
(1 -132) address are save
SW(config-if)#no shutdown
V- LAN
SW(config)# vlan 10
SW(config-vlan)#name sales
Telnet switch