CN Lab assignment 2
ZARWAN ZAHID
FA23-BCS-172
BCS-D
End Devices:
PC0:
PC1:
PC2:
Laptop0:
Laptop1:
Laptop2:
Server0:
Server1:
Server2:
ROUTER 0 COMMANDS:
Router(config)#interface FastEthernet0/0
Router(config-if)#ip address 192.168.2.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
! WAN Interfaces
Router(config-if)#interface Serial2/0
Router(config-if)#ip address 10.0.0.1 255.255.255.252
Router(config-if)#clock rate 64000
Router(config-if)#no shutdown
%LINK-5-CHANGED: Interface Serial2/0, changed state to down
Router(config-if)#interface Serial3/0
Router(config-if)#ip address 10.0.0.9 255.255.255.252
Router(config-if)#clock rate 64000
This command applies only to DCE interfaces
Router(config-if)#no shutdown
%LINK-5-CHANGED: Interface Serial3/0, changed state to down
Router(config-if)#end
Router#
%SYS-5-CONFIG_I: Configured from console by console
write memory
Building configuration...
[OK]
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#ip route 192.168.0.0 255.255.255.0 10.0.0.2
Router(config)#ip route 192.168.0.0 255.255.255.0 10.0.0.2
Router(config)#ip route 192.168.1.0 255.255.255.0 10.0.0.10 150
Router(config)#end
Router#
%SYS-5-CONFIG_I: Configured from console by console
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#access-list 10 deny 192.168.0.0 0.0.0.255
Router(config)#access-list 10 permit any
Router(config)#interface Serial2/0
Router(config-if)#ip access-group 10 in
Router(config)#exit
show ip interface brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 192.168.2.1 YES manual up up
FastEthernet1/0 unassigned YES unset up down
Serial2/0 10.0.0.1 YES manual up up
Serial3/0 10.0.0.9 YES manual up up
FastEthernet4/0 unassigned YES unset down down
FastEthernet5/0 unassigned YES unset down down
Router#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is not set
10.0.0.0/30 is subnetted, 2 subnets
C 10.0.0.0 is directly connected, Serial2/0
C 10.0.0.8 is directly connected, Serial3/0
S 192.168.0.0/24 [1/0] via 10.0.0.2
S 192.168.1.0/24 [150/0] via 10.0.0.10
C 192.168.2.0/24 is directly connected, FastEthernet0/0
ROUTER 1 COMMANDS:
Router>enable
Router#
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface FastEthernet0/0
Router(config-if)#ip address 192.168.0.1 255.255.255.0
Router(config-if)#no shutdow
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
interface Serial2/0
Router(config-if)#ip address 10.0.0.2 255.255.255.252
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface Serial2/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to up
interface Serial3/0
Router(config-if)#ip address 10.0.0.5 255.255.255.252
Router(config-if)#clock rate 64000
Router(config-if)#no shutdown
%LINK-5-CHANGED: Interface Serial3/0, changed state to down
Router(config-if)#end
Router#
%SYS-5-CONFIG_I: Configured from console by console
write memory
Building configuration...
[OK]
Router#
Router#
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface FastEthernet0/0
Router(config-if)#
Router(config-if)#exit
Router(config)#interface Serial3/0
Router(config-if)#
%LINK-5-CHANGED: Interface Serial3/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial3/0, changed state to up
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#ip route 192.168.2.0 255.255.255.0 10.0.0.1
Router(config)#ip route 192.168.1.0 255.255.255.0 10.0.0.6
Router(config)#end
Router#
%SYS-5-CONFIG_I: Configured from console by console
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface Serial3/0
Router(config-if)#shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface Serial3/0, changed state to administratively down
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial3/0, changed state to down
Router(config-if)#interface Serial3/0
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface Serial3/0, changed state to up
end
Router#
%SYS-5-CONFIG_I: Configured from console by console
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial3/0, changed state to up
Router#enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#access-list 101 deny ip host 192.168.2.30 any
Router(config)#access-list 101 deny ip host 192.168.1.20 any
Router(config)#access-list 101 permit ip any any
Router(config)#interface Serial2/0
Router(config-if)#ip access-group 101 in
Router(config-if)#interface Serial3/0
Router(config-if)#ip access-group 101 in
Router(config-if)#exit
Router(config)#exit
Router#
%SYS-5-CONFIG_I: Configured from console by console
show ip interface brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 192.168.0.1 YES manual up up
FastEthernet1/0 unassigned YES unset up down
Serial2/0 10.0.0.2 YES manual up up
Serial3/0 10.0.0.5 YES manual up up
FastEthernet4/0 unassigned YES unset down down
FastEthernet5/0 unassigned YES unset down down
Router#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is not set
10.0.0.0/30 is subnetted, 2 subnets
C 10.0.0.0 is directly connected, Serial2/0
C 10.0.0.4 is directly connected, Serial3/0
C 192.168.0.0/24 is directly connected, FastEthernet0/0
S 192.168.1.0/24 [1/0] via 10.0.0.6
S 192.168.2.0/24 [1/0] via 10.0.0.1
ROUTER 2 COMMANDS:
Router>enable
Router#
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface FastEthernet0/0
Router(config-if)#ip address 192.168.1.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
interface Serial2/0
Router(config-if)#interface Serial2/0
Router(config-if)#ip address 10.0.0.6 255.255.255.252
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface Serial2/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to up
interface Serial3/0
Router(config-if)#ip address 10.0.0.10 255.255.255.252
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface Serial3/0, changed state to up
end
Router#
%SYS-5-CONFIG_I: Configured from console by console
write mo
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial3/0, changed state to up
write memory
% Invalid input detected at '^' marker.
Router#write memory
Building configuration...
[OK]
Router#
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#ip route 192.168.0.0 255.255.255.0 10.0.0.5
Router(config)#ip route 192.168.2.0 255.255.255.0 10.0.0.5
Router(config)#ip route 192.168.2.0 255.255.255.0 10.0.0.9 150
Router(config)#end
Router#
%SYS-5-CONFIG_I: Configured from console by console
%LINK-3-UPDOWN: Interface Serial2/0, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to down
%LINK-5-CHANGED: Interface Serial2/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to up
Router#enable configure terminal
% Invalid input detected at '^' marker.
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#access-list 20 deny host 192.168.0.30
Router(config)#access-list 20 permit any
Router(config)#interface Serial2/0
Router(config-if)#ip access-group 20 in
Router(config-if)#exit
Router(config)#exit
Router#
%SYS-5-CONFIG_I: Configured from console by console
show ip interface brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 192.168.1.1 YES manual up up
FastEthernet1/0 unassigned YES unset administratively down down
Serial2/0 10.0.0.6 YES manual up up
Serial3/0 10.0.0.10 YES manual up up
FastEthernet4/0 unassigned YES unset administratively down down
FastEthernet5/0 unassigned YES unset administratively down down
Router#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is not set
10.0.0.0/30 is subnetted, 2 subnets
C 10.0.0.4 is directly connected, Serial2/0
C 10.0.0.8 is directly connected, Serial3/0
S 192.168.0.0/24 [1/0] via 10.0.0.5
C 192.168.1.0/24 is directly connected, FastEthernet0/0
S 192.168.2.0/24 [1/0] via 10.0.0.5