Copy Running-Config TFTP - Send Details of Router Config To Server Copy TFTP: Running-Config - To Access Saved Data On Server
Copy Running-Config TFTP - Send Details of Router Config To Server Copy TFTP: Running-Config - To Access Saved Data On Server
command: en,conf t
? - help
enable password 123 - set password
no enable pass - disable password
banner motd * welcom - message of the day
no banner motd - remove banner
hostname 1 - router name
show running-config - information
service password-encryption - to not show password publicly.
en
conf t
enable password 123 - password
ip add 10.0.0.50 255.0.0.0
no shut
ip domain-name r1
crypto key generate rsa
line vty 0
transport input ssh
login local
username r1 password 123
show vlan
vlan database
vlan 2 name hr
exit
conf t vlan 3
name mr
ctr + z
show vlan (2 hr 3 mr will be created)
conf t
int f0/1
switchport access vlan 2
int f0/2
switchport access vlan 3
Intervlan
Intern vlan is used to connect two different vlan to each other using cisco switch & router
both vlan have different Network Id & can connect to each other.
Create a router & switch & 2 pc
192.168.0.2
255.255.255.0 1pc ip
192.168.0.1
172.168.0.2
255.255.0.0 2pc ip
172.168.0.1/GW
1)Static vlan
In static vlan network administrator can create manual vlan database in network switches.
In a static vlan the network administrator creates a vlan and then assigns switch ports to the LAN.
2)Dynamic Vlan
In Dynamic vlan network administrator can assign dynamic value in single switch and all switches get up
to date vlan database via particular switch.
En
Conf t
Spanning-tree vlan 1 root primary
Routing means – Process of sending packets from one n/w to another n/w.
Static routing – If you have four routers and they want to send data between them so you have to give
manual entry of each router to do communication between them.
Router connects 2 Lan networks by creating routing table
(On Every router we have to route other 3 router ip)
(manual path decide)
(One to one communication)
Dynamic routing – Dynamic routing uses routing protocol for creating route for data packets, and store
dynamic route in routing table.
it is depending routing. It chooses the best path like bandwidth fast,secure etc.
Router selects the best path to send data.
Router1
En
Conf t
Host r2
Int f0/0
Ip add 172.168.0.1 255.255.0.0
No shut
Int s0/0
Ip add 10.0.0.2 255.0.0.0
No shut
Int s0/1
No shut
Clock rate 64000
No shut
Ip add 11.0.0.2 255.0.0.0
No shut
Router2
En
Conf t
Host r3
Int f0/0
Ip add 110.0.0.1 255.0.0.0
No shut
Int s0/1
Ip add 11.0.0.2 255.0.0.0
No shut
Router 0
En
Conf t
Ip route 172.168.0.0 255.255.0.0 10.0.0.2
Ip route 110.0.0.0 255.0.0.0 11.0.0.02
Ip route 11.0.0.0 255.0.0.0 10.0.0.2
Router 1
En
Conf t
Ip route 192.168.0.0 255.255.255.0 10.0.0.1
Ip route 110.0.0.0 255.0.0.0 11.0.0.02
Router2
En
Conf t
Ip route 192.168.0.0 255.255.255.0 10.0.0.1
Ip route 10.0.0.0 255.0.0.0 11.0.0.1
Ip route 172.168.0.0 255.255.0.0 11.0.0.1
Router 2
En
Conf t
Host r2
Int f0/0
Ip add 172.168.0.1 255.255.0.0
No shut
Int s0/0
Ip add 10.0.0.2 255.0.0.0
No shut
Router rip
Network 10.0.0.0
Net 172.168.0.0
Show ip route (R means rip protocol)
On Router 2
Router rip
Version 2
Net 10.0.0.0
Net 172.168.0.0
Configuration of EIGRP
Router 2
En
Conf t
Host r2
Int f0/0
Ip add 172.168.0.1 255.255.0.0
No shut
Int s0/0
Ip add 10.0.0.2 255.0.0.0
No shut
Router eigrp 12
Net 10.0.0.0
Net 172.168.0.0
Configuration of OSPF
Steps after assigning ip to pc’s
Router 1
En
Conf t
Host r1
Int f0/0
Ip add 192.168.0.1 255.255.255.0
No shut
Int s0/0
Ip add 10.0.0.1 255.0.0.0
Clock rate 64000
No shut
Router ospf 15 (process id)
Network 192.168.0.0 0.0.0.255 area 0
Network 10.0.0.0 0.255.255.255 area 0
Router 1
En
Conf t
Host r1
Int f0/0
Ip add 192.168.0.1 255.255.255.0
No shut
Int s0/0
Ip add 10.0.0.1 255.0.0.0
Clock rate 64000
No shut
Router ospf 15 (process id)
network 172.168.0.0 0.0.255.255 area 0
network 10.0.0.0 0.255.255.255 area 0
ex
show ip route
What is ACL?
ACL is used to filter and manage the traffic with the help of ACL protocol you can block any host,ports
etc.
We can specify a list of Numbered or Named which contains block ip’s or block hostname’s
Router
En
Conf t
Access-list 90 deny host 172.168.0.20
Access-list 90 permit any
Int s0/0
Ip access-group 90 out
Int f0/0 ip access-group 90 in
To remove ACL
en
Conf t
No access-list 90
After this both pc will not be able to communicate with each other.
To remove ACL
en
Conf t
No access-list 110
Named ACL
Router connected with the pc
En
Conf t
Ip access-list standard sikho
Deny host 172.168.0.20
Permit any
Int f0/0
Ip access-group sikho in
Int s0/0
Ip access-group sikho out
Show access-lists
Show ip access list sikho
e1(config)#host r1
r1(config)#int f0/0
r1(config-if)#ip add
r1(config-if)#ip add 192.168.0.1 255.255.255.0
r1(config-if)#no shut
r1(config-if)#int s0/0
r1(config-if)#ip add 10.0.0.1 255.0.0.0
r1(config-if)#no shut
Router 2 config
Router>en
Router#conf t
Router(config)#host r2
r2(config)#conf t
r2(config)#int f0/0
r2(config-if)#ip add 172.168.0.1 255.255.0.0
r2(config-if)#no shut
r2(config-if)#int s0/0
r2(config-if)#ip add 10.0.0.2 255.0.0.0
r2(config-if)#no shut
r2(config-if)#router rip
r2(config-router)#net 10.0.0.0
r2(config-router)#net 172.168.0.0
DHCP Server
Router>en
Router#conf t
Router(config)#int f0/0
Router(config-if)#ip addr 10.0.0.1 255.0.0.0
Router(config-if)#no shut
Ctrl + z
Router#conf t
Router(config)#ip dhcp pool sikho
Router(dhcp-config)#network 10.0.0.0 255.0.0.0
Router(dhcp-config)#default-router 10.0.0.1
Router(dhcp-config)#exit
Router(config)#ip dhcp excluded-address 10.0.0.2 10.0.0.10
Frame relay
PPP Security
In computer networking Point to Point Protocol is a Data link layer communication protocol between two
routers directly without any host or any other networking in between.
CHAP Configuration
Router 1
Router>en
Router#conf t
Router(config)#host r1
r1(config)#int f0/0
r1(config-if)#ip add 192.168.0.1 255.255.255.0
r1(config-if)#no shut
r1(config-if)#int s0/0
r1(config-if)#ip add 12.0.0.1 255.0.0.0
r1(config-if)#no shut
r1(config-if)#clock rate 64000
r1(config-if)#int s0/0
r1(config-if)#encapsulation ppp
r1(config-if)#enable password 123
r1(config)#username r1 password 123
r1(config)#int s0/0
r1(config-if)#encapsulation ppp
r1(config-if)#ppp authentication chap
r1(config-if)#username r2 password 123
r1(config)#router rip
r1(config-router)#network 12.0.0.0
r1(config-router)#network 192.168.0.0
Router2
Router>en
Router#conf t
Router(config)#host r2
R2(config)#int f0/0
R2(config-if)#ip add 172.168.0.1 255.255.0.0
R2(config-if)#no shut
R2(config-if)#int s0/0
R2(config-if)#ip add 12.0.0.2 255.0.0.0
R2(config-if)#no shut
R2(config-if)#int s0/0
R2(config-if)#encapsulation ppp
R2(config-if)#enable password 123
R2(config-if)#ppp authentication chap
r1(config-if)#username r1 password 123
r2(config)#router rip
r2(config-router)#network 12.0.0.0
r2(config-router)#network 172.168.0.0
PAP COnFIGURATION
Router 1
En
Conf t
Host r1
Enable password 123
Username r2 password 123
Int f0/0
Ip add 192.168.0.1 255.255.255.0
No shut
Int s0/0
Ip add 12.0.0.1 255.0.0.0
Clock rate 64000
No shut
Encapsulation ppp
Ppp authentication pap
Ppp pap sent-username r1 password 123
Router rip
Network 12.0.0.0
Network 192.168.0.0
Router 2
En
Conf t
Host r1
Enable password 123
Username r1 password 123
Int f0/0
Ip add 172.168.0.1 255.255.0.0
No shut
Int s0/0
Ip add 12.0.0.2 255.0.0.0
No shut
Encapsulation ppp
Ppp authentication pap
Ppp pap sent-username r2 password 123
Router rip
Network 12.0.0.0
Network 172.168.0.0
Troubleshooting
show int s0/0