Lab Experiment 1 One Router 2 Switches and 4 PCS: Pc0 Ip Configuration
Lab Experiment 1 One Router 2 Switches and 4 PCS: Pc0 Ip Configuration
PC0 IP Configuration
1
PC1 IP Configuration
2
PC2 IP Configuration
3
PC3 IP Configuration
4
Now Click on Router Router0, and then click on CLI (Command Line Interface).
You will see like this, “Continue with configuration dialog?[yes/no]:”, Give “no” and
press Enter. Now you will go to user mode.
Now give “enable” and press Enter. Now you get into the Privileged Mode.
Now type “configure terminal” and press Enter to get into global configuration mode.
Now configure router interface with ip address and subnet mask then give no shutdown to
make this interface and line protocol up.
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface fastethernet 0/0
Router(config-if)#ip address 192.168.0.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
5
Router(config-if)#exit
Router(config)#interface fastethernet 0/1
Router(config-if)#ip address 172.16.0.1 255.255.0.0
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
Router(config-if)#exit
Router(config)#
Lab Experiment 2
6
PC0 IP Configuration
7
PC1 IP Configuration
8
PC2 IP Configuration
9
Complete CLI command for Router0
Router>enable
Router#configure terminal
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#router rip
Router(config-router)#network 192.168.0.0
Router(config-router)#network 172.16.0.0
Router(config-router)#exit
Router(config)#
Router>enable
Router#configure terminal
10
Router(config)#interface fastethernet 0/0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#router rip
Router(config-router)#network 172.16.0.0
Router(config-router)#network 192.168.1.0
Router(config-router)#exit
Router(config)#
11
Lab Experiment 3: Static Routing (2 routers 2 computers)
Two interfaces FastEthernet0/0 and Serial0/0/0 of Router0 are used in this topology. By
default interfaces on router are remain administratively down during the start up. We need to
configure IP address and other parameters on interfaces before we could actually use them for
routing.
PC0 IP Configuration
12
PC1 IP Configuration
13
14
Complete CLI command for router0
Router>enable
Router#configure terminal
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config-if)#bandwidth 64
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#
Router(config)#
Router>enable
Router#configure terminal
15
Router(config)#interface FastEthernet0/0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#
Router(config)#
We will use same commands to assign IP addresses on interfaces of Router1. Since we have
provided clock rate and bandwidth on serial interface of Router0 we need not to assign them on
serial interface of Router1.
Now we know that how IP route command is used to configure the static route. Let's implement
it in our example topology. Run following command from global configuration mode in routers.
Router0
17
18
Router 0
19
Continue with configuration dialog? [yes/no]: n
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface fastethernet 0/0
Router(config-if)#ip address 10.0.0.1 255.0.0.0
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
Router(config-if)#exit
Router(config)#interface serial 2/0
Router(config-if)#ip address 40.0.0.1 255.0.0.0
Router(config-if)#clock rate 64000
Router(config-if)#bandwidth 64
Router(config-if)#no shutdown
Router 1
20
--- System Configuration Dialog ---
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
Router(config-if)#exit
Router(config)#interface serial 2/0
Router(config-if)#ip address 40.0.0.2
% Incomplete command.
Router(config-if)#ip address 40.0.0.2 255.0.0.0
Router(config-if)#clock rate 64000
This command applies only to DCE interfaces
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface Serial2/0, changed state to up
Router(config-if)#exit
Router(config)#interface serial 3/0
Router(config-if)#ip address 50.0.0.1 255.0.0.0
Router(config-if)#clock rate 64000
Router(config-if)#bandwidth 64
Router(config-if)#no shutdown
Router 2
21
--- System Configuration Dialog ---
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface fastethernet 0/0
Router(config-if)#ip address 30.0.0.1 255.0.0.0
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
Router(config-if)#exit
Router(config-if)#exit
Router(config)#
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#router rip
Router(config-router)#network 10.0.0.0
Router(config-router)#network 40.0.0.0
Router(config-router)#exit
Router(config)#
Router(config)#router rip
Router(config-router)#network 20.0.0.0
Router(config-router)#network 40.0.0.0
22
Router(config-router)#network 50.0.0.0
Router(config-router)#exit
Router(config)#
Router(config)#router rip
Router(config-router)#network 30.0.0.0
Router(config-router)#network 50.0.0.0
Router(config-router)#exit
Router 0
Router>
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#ip route 20.0.0.0 255.0.0.0 40.0.0.2
Router(config)#ip route 30.0.0.0 255.0.0.0 40.0.0.2
Router(config)
Router 1
Router#enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#ip route 10.0.0.0 255.0.0.0 40.0.0.1
Router(config)#ip route 30.0.0.0 255.0.0.0 50.0.0.2
Router(config)#exit
Router#
Router 2
23
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#ip route 10.0.0.0 255.0.0.0 50.0.0.1
Router(config)#ip route 20.0.0.0 255.0.0.0 50.0.0.1
24