Uploaded by Ferdinand Aragon

RIPv2-Aragon2 3

advertisement
RIPv2
RIPv2#Assignment
RIPv2> enable
RIPv2# config terminal
RIPv2(config)# hostname ARAGON, FERDINAND M.
RIPv2(config)# interface year/section/subject
RIPv2(config-if)# year 2/ section 3/ COMNET
RIPv2(config)# interface professor
RIPv2(config-if)# Mr. Aron J. Alojado
RIPv2(config)# exit
RIPv2# copy running-config startup-config
IP Address: 172.20.0.0/16
Binary: 10101100.00010100.00000000.00000000
1. From the given IP address 172.20.0.0/16, create two networks.
Let’s borrow 1 bit for subnetting, converting /16 resulting to /17
/17 Binary: 11111111.11111111.10000000.00000000
Decimal: 255.255.128.0
Subnet 1 (New Subnet):
IP Address: 172.20.0.0/17
Binary: 10101100.00010100.00000000.00000000
Usable: 172.20.0.1 to 172.20.127.254
Subnet 2 (New Subnet):
IP Address: 172.20.128.0/17
Binary: 10101100.00010100.00000000.00000000
Usable: 172.20.128.1 to 172.20.255.254
2. The first network should be subnetworked into seven networks.
a) Each subnetwork should be subnetted with only two hosts.
Subnet 1: 172.20.0.0/17
Let’s borrow 1 Bit for subnetting. converting mask from /17 to /30.
Let’s use a /30 subnet mask, to allow for two host addresses in each network.
/30 Binary: 11111111.11111111.11111111.11111100
Decimal: 255.255.255.252
(32-30 = 2 bits available)
Here are the seven subnetworks within Subnet 1:
Network 1: 172.20.0.0/30 (Usable range: 172.20.0.1 to 172.20.0.2)
Network 2: 172.20.0.4/30 (Usable range: 172.20.0.5 to 172.20.0.6)
Network 3: 172.20.0.8/30 (Usable range: 172.20.0.9 to 172.20.0.10)
Network 4: 172.20.0.12/30 (Usable range: 172.20.0.13 to 172.20.0.14)
Network 5: 172.20.0.16/30 (Usable range: 172.20.0.17 to 172.20.0.18)
Network 6: 172.20.0.20/30 (Usable range: 172.20.0.21 to 172.20.0.22)
Network 7: 172.20.0.24/30 (Usable range: 172.20.0.25 to 172.20.0.26)
3. The second subnetwork should be divided into 12 subnetworks.
Here are the twelve subnetworks within Subnet 2:
Sub-subnet 2.1: 172.20.16.0/24
Sub-subnet 2.2: 172.20.17.0/24
Sub-subnet 2.3: 172.20.18.0/24
Sub-subnet 2.4: 172.20.19.0/24
Sub-subnet 2.5: 172.20.20.0/24
Sub-subnet 2.6: 172.20.21.0/24
Sub-subnet 2.7: 172.20.22.0/24
Sub-subnet 2.8: 172.20.23.0/24
Sub-subnet 2.9: 172.20.24.0/24
Sub-subnet 2.10: 172.20.25.0/24
Sub-subnet 2.11: 172.20.26.0/24
Sub-subnet 2.12: 172.20.27.0/24
Router Main A (Configuration)
Router Main B (Configuration)
enable
config terminal
hostname MainA
int s0/0/0
ip add 172.20.0.1 255.255.255.252
no shut
int s0/0/1
ip add 172.20.0.5 255.255.255.252
no shut
int s0/1/0
ip add 172.20.0.9 255.255.255.252
no shut
clock rate 64000
enable
config terminal
hostname MainB
int s0/0/0
ip add 172.20.0.2 255.255.255.252
no shut
int s0/0/1
ip add 172.20.0.17 255.255.255.252
no shut
int s0/1/0
ip add 172.20.0.21 255.255.255.252
no shut
router rip
version 2
network 172.20.0.0
no auto-summary
passive-interface s0/0/0
default-information originate
ip route 0.0.0.0 0.0.0.0 s0/0/0
ip route 172.20.16.0 255.255.255.0
ip route 172.20.17.0 255.255.255.0
ip route 172.20.18.0 255.255.255.0
ip route 172.20.19.0 255.255.255.0
ip route 172.20.20.0 255.255.255.0
ip route 172.20.21.0 255.255.255.0
ip route 172.20.22.0 255.255.255.0
ip route 172.20.23.0 255.255.255.0
ip route 172.20.24.0 255.255.255.0
ip route 172.20.25.0 255.255.255.0
ip route 172.20.26.0 255.255.255.0
ip route 172.20.27.0 255.255.255.0
end
copy run start
router rip
version 2
network 172.20.0.0
no auto-summary
passive-interface s0/0/0
default-information originate
ip route 0.0.0.0 0.0.0.0 s0/0/0
ip route 172.20.16.0 255.255.255.0
ip route 172.20.17.0 255.255.255.0
ip route 172.20.18.0 255.255.255.0
ip route 172.20.19.0 255.255.255.0
ip route 172.20.20.0 255.255.255.0
ip route 172.20.21.0 255.255.255.0
ip route 172.20.22.0 255.255.255.0
ip route 172.20.23.0 255.255.255.0
ip route 172.20.24.0 255.255.255.0
ip route 172.20.25.0 255.255.255.0
ip route 172.20.26.0 255.255.255.0
ip route 172.20.27.0 255.255.255.0
end
copy run start
s0/0/1
s0/0/1
s0/0/1
s0/0/1
s0/1/0
s0/1/0
s0/1/0
s0/1/0
s0/0/0
s0/0/0
s0/0/0
s0/0/0
s0/0/0
s0/0/0
s0/0/0
s0/0/0
s0/0/0
s0/0/0
s0/0/0
s0/0/0
s0/0/1
s0/0/1
s0/1/0
s0/1/0
Router Bldg A (Configuration)
enable
config terminal
hostname BldgA
int s0/1/0
ip add 172.20.0.6 255.255.255.252
no shut
int s0/1/1
ip add 172.20.0.13 255.255.255.252
no shut
exit
enable
vlan database
vlan 10
vlan 20
vlan 30
vlan 40
exit
enable
config terminal
int vlan 10
ip address 172.20.16.1 255.255.255.0
int fa0/0/0
switchport mode access
switchport access vlan 10
no shut
int vlan 20
ip address 172.20.17.1 255.255.255.0
int fa0/0/1
switchport mode access
switchport access vlan 20
no shut
int vlan 30
ip address 172.20.18.1 255.255.255.0
int fa0/0/2
switchport mode access
switchport access vlan 30
no shut
int vlan 40
ip address 172.20.19.1 255.255.255.0
int fa0/0/3
switchport mode access
switchport access vlan 40
no shut
router rip
version 2
network 172.20.0.0
no auto-summary
passive-interface fa0/0/0
passive-interface fa0/0/1
passive-interface fa0/0/2
passive-interface fa0/0/3
ip route 172.20.16.0 255.255.255.0
ip route 172.20.17.0 255.255.255.0
ip route 172.20.18.0 255.255.255.0
ip route 172.20.19.0 255.255.255.0
ip route 172.20.20.0 255.255.255.0
ip route 172.20.21.0 255.255.255.0
ip route 172.20.22.0 255.255.255.0
ip route 172.20.23.0 255.255.255.0
ip route 172.20.24.0 255.255.255.0
ip route 172.20.25.0 255.255.255.0
ip route 172.20.26.0 255.255.255.0
ip route 172.20.27.0 255.255.255.0
end
copy run start
fa0/0/0
fa0/0/1
fa0/0/2
fa0/0/3
s0/1/1
s0/1/1
s0/1/1
s0/1/1
s0/1/0
s0/1/0
s0/1/0
s0/1/0
Router Bldg B (Configuration)
enable
config terminal
hostname BldgB
int s0/0/0
ip add 172.20.0.10 255.255.255.252
no shut
int s0/0/1
ip add 172.20.0.14 255.255.255.252
no shut
exit
enable
vlan database
vlan 50
vlan 60
vlan 70
vlan 80
exit
enable
config terminal
int vlan 50
ip address 172.20.20.1 255.255.255.0
int fa0/1/0
switchport mode access
switchport access vlan 50
no shut
int vlan 60
ip address 172.20.21.1 255.255.255.0
int fa0/1/1
switchport mode access
switchport access vlan 60
no shut
int vlan 70
ip address 172.20.22.1 255.255.255.0
int fa0/1/2
switchport mode access
switchport access vlan 70
no shut
int vlan 80
ip address 172.20.23.1 255.255.255.0
int fa0/1/3
switchport mode access
switchport access vlan 80
no shut
router rip
version 2
network 172.20.0.0
no auto-summary
passive-interface fa0/1/0
passive-interface fa0/1/1
passive-interface fa0/1/2
passive-interface fa0/1/3
ip route 172.20.16.0 255.255.255.0
ip route 172.20.17.0 255.255.255.0
ip route 172.20.18.0 255.255.255.0
ip route 172.20.19.0 255.255.255.0
ip route 172.20.20.0 255.255.255.0
ip route 172.20.21.0 255.255.255.0
ip route 172.20.22.0 255.255.255.0
ip route 172.20.23.0 255.255.255.0
ip route 172.20.24.0 255.255.255.0
ip route 172.20.25.0 255.255.255.0
ip route 172.20.26.0 255.255.255.0
ip route 172.20.27.0 255.255.255.0
end
copy run start
s0/0/1
s0/0/1
s0/0/1
s0/0/1
fa0/1/0
fa0/1/1
fa0/1/2
fa0/1/3
s0/0/0
s0/0/0
s0/0/0
s0/0/0
Router Hangar (Configuration)
enable
config terminal
hostname Hangar
int fa0/0
ip add 172.20.24.1 255.255.255.0
no shut
int fa0/1
ip add 172.20.25.1 255.255.255.0
no shut
int s0/0/0
ip add 172.20.0.18 255.255.255.252
no shut
int s0/0/1
ip add 172.20.0.25 255.255.255.252
no shut
router rip
version 2
network 172.20.0.0
no auto-summary
passive-interface fa0/0
passive-interface fa0/1
ip route 172.20.16.0 255.255.255.0
ip route 172.20.17.0 255.255.255.0
ip route 172.20.18.0 255.255.255.0
ip route 172.20.19.0 255.255.255.0
ip route 172.20.20.0 255.255.255.0
ip route 172.20.21.0 255.255.255.0
ip route 172.20.22.0 255.255.255.0
ip route 172.20.23.0 255.255.255.0
ip route 172.20.24.0 255.255.255.0
ip route 172.20.25.0 255.255.255.0
ip route 172.20.26.0 255.255.255.0
ip route 172.20.27.0 255.255.255.0
end
copy run start
s0/0/0
s0/0/0
s0/0/0
s0/0/0
s0/0/0
s0/0/0
s0/0/0
s0/0/0
fa0/0
fa0/1
s0/0/1
s0/0/1
Router Guestel (Configuration)
enable
config terminal
hostname Guestel
int fa0/0
ip add 172.20.26.1 255.255.255.0
no shut
int fa0/1
ip add 172.20.27.1 255.255.255.0
no shut
int s0/0/0
ip add 172.20.0.22 255.255.255.252
no shut
int s0/0/1
ip add 172.20.0.26 255.255.255.252
no shut
router rip
version 2
network 172.20.0.0
no auto-summary
passive-interface fa0/0
passive-interface fa0/1
ip route 172.20.16.0 255.255.255.0
ip route 172.20.17.0 255.255.255.0
ip route 172.20.18.0 255.255.255.0
ip route 172.20.19.0 255.255.255.0
ip route 172.20.20.0 255.255.255.0
ip route 172.20.21.0 255.255.255.0
ip route 172.20.22.0 255.255.255.0
ip route 172.20.23.0 255.255.255.0
ip route 172.20.24.0 255.255.255.0
ip route 172.20.25.0 255.255.255.0
ip route 172.20.26.0 255.255.255.0
ip route 172.20.27.0 255.255.255.0
end
copy run start
s0/0/0
s0/0/0
s0/0/0
s0/0/0
s0/0/0
s0/0/0
s0/0/0
s0/0/0
s0/0/1
s0/0/1
fa0/0
fa0/1
Ping from BA PC4 to BB PC4 and H_PC_2
Ping from H_PC_1 to BA PC1 and BB PC3
Download