Class-2 1

Download as pdf or txt
Download as pdf or txt
You are on page 1of 9

PART-1 (CCNA)

Some Basic Commands


View Router’s command : #show ?
Back to usable mode : ctrl + shift + 6
Back to privilege mode : ctrl + z
View networks : show ip route
View connected network : show ip route connected
Delete configuration : write erase
View all interface : show ip interface brief
Save configuration : copy running-config startup-config
Back to Privileged mode : end

Configure Router / Switch


Router >en
Router #clock set 10:10:10 27 Feb 2019
Router# show clock
Router (config)#hostname cse
cse(config)#enable secret abc123
cse(config)# banner motd $Omar Faruq$
Router# wr
Router# show running conf
LANs Divided by A Router
DHCP
Default Route
Default Route, Configuration

Router-1:
Router(config)#interface FastEthernet0/1
Router(config-if)#ip address 10.10.10.1 255.255.255.0
interface Serial0/3/0
Router(config-if)#ip address 123.23.23.1 255.255.255.0
Router(config)#ip route 0.0.0.0 0.0.0.0 123.23.23.2

Router-0:
Router(config)#interface FastEthernet0/0
Router(config-if)#ip address 172.16.1.1 255.255.255.0
Router(config)#interface Serial0/3/0
Router(config-if)#ip address 123.23.23.2 255.255.255.0
Router(config)#interface Serial0/3/1
Router(config-if)#ip address 203.30.30.1 255.255.255.0
Router(config)#ip route 0.0.0.0 0.0.0.0 123.23.23.1
Router(config)#ip route 0.0.0.0 0.0.0.0 203.30.30.2

Router-2:
Router(config)#interface FastEthernet0/1
Router(config-if)#ip address 192.168.1.1 255.255.255.0
Router(config)#interface Serial0/3/0
Router(config-if)#ip address 203.30.30.2 255.255.255.0
Router(config)#ip route 0.0.0.0 0.0.0.0 203.30.30.1
Static-WAN
Static-WAN, Configuration
Router-0
Router(config)#hostname Router0 Router-3
Router0(config)#interface fastEthernet0/0 Router(config)#hostname Router3
Router3(config)#interface fastEthernet0/0
Router0(config-if)#ip address 192.168.1.1 255.255.255.0
Router3(config-if)#ip address 192.168.4.1 255.255.255.0
Router0(config-if)#no shutdown Router3(config-if)#no shutdown
Router0(config-if)#Interface fastEthernet0/1 Router3(config-if)#Interface fastEthernet0/1
Router0(config-if)#ip address 192.168.0.1 255.255.255.0 Router3(config-if)#ip address 192.168.0.4 255.255.255.0
Router0(config-if)#no shutdown Router3(config-if)#no shutdown

Router-0
Router-1 Router0(config)#ip route 192.168.2.0 255.255.255.0 192.168.0.2
Router(config)#hostname Router1 Router0(config)#ip route 192.168.3.0 255.255.255.0 192.168.0.3
Router1(config)#interface fastEthernet0/0 Router0(config)#ip route 192.168.4.0 255.255.255.0 192.168.0.4
Router1(config-if)#ip address 192.168.2.1 255.255.255.0
Router1(config-if)#no shutdown Router-1
Router1(config-if)#Interface fastEthernet0/1 Router1(config)#ip route 192.168.1.0 255.255.255.0 192.168.0.1
Router1(config-if)#ip address 192.168.0.2 255.255.255.0 Router1(config)#ip route 192.168.3.0 255.255.255.0 192.168.0.3
Router1(config)#ip route 192.168.4.0 255.255.255.0 192.168.0.4
Router1(config-if)#no shutdown
Router-2
Router-2 Router2(config)#ip route 192.168.1.0 255.255.255.0 192.168.0.1
Router(config)#hostname Router2 Router2(config)#ip route 192.168.2.0 255.255.255.0 192.168.0.2
Router2(config)#interface fastEthernet0/0 Router2(config)#ip route 192.168.4.0 255.255.255.0 192.168.0.4
Router2(config-if)#ip address 192.168.3.1 255.255.255.0
Router2(config-if)#no shutdown Router-3
Router2(config-if)#Interface fastEthernet0/1 Router3(config)#ip route 192.168.1.0 255.255.255.0 192.168.0.1
Router3(config)#ip route 192.168.2.0 255.255.255.0 192.168.0.2
Router2(config-if)#ip address 192.168.0.3 255.255.255.0 Router3(config)#ip route 192.168.3.0 255.255.255.0 192.168.0.3
Router2(config-if)#no shutdown
RIP (Dynamic-WAN)
RIP (Dynamic-WAN), Configuration
Router-0
Router(config)#hostname Router0 Router-3
Router0(config)#interface fastEthernet0/0 Router(config)#hostname Router3
Router0(config-if)#ip address 192.168.1.1 255.255.255.0 Router3(config)#interface fastEthernet0/0
Router0(config-if)#no shutdown Router3(config-if)#ip address 192.168.4.1
Router0(config-if)#Interface fastEthernet0/1 255.255.255.0
Router0(config-if)#ip address 192.168.0.1 255.255.255.0 Router3(config-if)#no shutdown
Router0(config-if)#no shutdown Router3(config-if)#Interface fastEthernet0/1
Router3(config-if)#ip address 192.168.0.4
Router-1 255.255.255.0
Router(config)#hostname Router1 Router3(config-if)#no shutdown
Router1(config)#interface fastEthernet0/0
Router1(config-if)#ip address 192.168.2.1 255.255.255.0 Router-0
Router1(config-if)#no shutdown Router0(config)# router rip
Router0(config)# network 192.168.1.0
Router1(config-if)#Interface fastEthernet0/1
Router0(config)# network 192.168.0.0
Router1(config-if)#ip address 192.168.0.2 255.255.255.0
Router1(config-if)#no shutdown Router-1
Router1(config)# router rip
Router-2 Router1(config)# network 192.168.2.0
Router(config)#hostname Router2 Router1(config)# network 192.168.0.0
Router2(config)#interface fastEthernet0/0
Router-2
Router2(config-if)#ip address 192.168.3.1 255.255.255.0
Router2(config)# router rip
Router2(config-if)#no shutdown Router2(config)# network 192.168.3.0
Router2(config-if)#Interface fastEthernet0/1 Router2(config)# network 192.168.2.0
Router2(config-if)#ip address 192.168.0.3 255.255.255.0
Router2(config-if)#no shutdown Router-3
Router3(config)# router rip
Router2(config)# network 192.168.4.0
Router2(config)# network 192.168.2.0

You might also like