15.6.2 Lab - Configure IPv4 and IPv6 Static and Default Routes

 TOPOLOGY


langkah-langkah:

1.tambahkan 2 buah ROUTER, dan 2 buah SWITCH

2. sambungkan R1,R2,S1,& S2 menggunakan cable Copper Straigh seperti di topology 

3. klik R1 dan R2 > CLI

ketikan: 

router(config)# hostname R1

router(config)# hostname R2


R1(config)# no ip domain-lookup

R2(config)# no ip domain-lookup


R1(config)# enable secret class

R2(config)# enable secret class


R1(config)# line console 0

R1(config-line)# password cisco

R1(config-line)# login


R2(config)# line console 0

R2(config-line)# password cisco

R2(config-line)# login


R1(config)# line vty 0 4

R1(config-line)# password cisco

R1(config-line)# login


R2(config)# line vty 0 4

R2(config-line)# password cisco

R2(config-line)# login


R1(config)# service password-encryption

R2(config)# service password-encryption


R1(config)# banner motd $ Authorized Users Only! $

R2(config)# banner motd $ Authorized Users Only! $


R1(config)# exit

R1# copy running-config startup-config


R2(config)# exit

R2# copy running-config startup-config


4. klik S1 dan S2 > CLI 

ketikan:

switch(config)# hostname S1

switch(config)# hostname S2


S1(config)# no ip domain-lookup

S2(config)# no ip domain-lookup


S1(config)# enable secret class

S2(config)# enable secret class


S1(config)# line console 0

S1(config-line)# password cisco

S1(config-line)# login


S2(config)# line console 0

S2(config-line)# password cisco

S2(config-line)# login


S1(config)# line vty 0 15

S1(config-line)# password cisco

S1(config-line)# login


S2(config)# line vty 0 15

S2(config-line)# password cisco

S2(config-line)# login


S1(config)# service password-encryption

S2(config)# service password-encryption


S1(config)# banner motd $ Authorized Users Only! $

S2(config)# banner motd $ Authorized Users Only! $


S1(config)# interface range f0/1-3, f0/6-24, g0/1-2

S1(config-if-range)# shutdown


S2(config)# interface range f0/1-3, f0/6-24, g0/1-2

S2(config-if-range)# shutdown


S1(config-if-range)# exit

S1# copy running-config startup-config


S2(config-if-range)# exit

S2# copy running-config startup-config


5. klik R1 & R2 >CLI

ketikan: 

R1(config)# ipv6 unicast-routing

R2(config)# ipv6 unicast-routing


R1(config)# interface g0/0/0

R1(config-if)# ip address 172.16.1.1 255.255.255.0

R1(config-if)# ipv6 address fe80::1 link-local

R1(config-if)# ipv6 address 2001:db8:acad:2::1/64

R1(config-if)# no shutdown

R1(config-if)# interface g0/0/1

R1(config-if)# ip address 192.168.1.1 255.255.255.0

R1(config-if)# ipv6 address fe80::1 link-local

R1(config-if)# ipv6 address 2001:db8:acad:1::1/64

R1(config-if)# no shutdown

R1(config-if)# interface lo1

R1(config-if)# ip address 10.1.0.1 255.255.255.0

R1(config-if)# ipv6 address fe80::1 link-local

R1(config-if)# ipv6 address 2001:db8:acad:10::1/64

R1(config-if)# no shutdown

R1(config-if)# interface lo2

R1(config-if)# ip address 209.165.200.225 255.255.255.224

R1(config-if)# ipv6 address fe80::1 link-local

R1(config-if)# ipv6 address 2001:db8:acad:209::1/64

R1(config-if)# no shutdown


R2(config)# interface g0/0/0

R2(config-if)# ip address 172.16.1.2 255.255.255.0

R2(config-if)# ipv6 address fe80::2 link-local

R2(config-if)# ipv6 address 2001:db8:acad:2::2/64

R2(config-if)# no shutdown

R2(config-if)# interface g0/0/1

R2(config-if)# ip address 192.168.1.2 255.255.255.0

R2(config-if)# ipv6 address fe80::2 link-local

R2(config-if)# ipv6 address 2001:db8:acad:1::2/64

R2(config-if)# no shutdown

R2(config-if)# interface lo1

R2(config-if)# ip address 10.2.0.1 255.255.255.0

R2(config-if)# ipv6 address fe80::2 link-local

R2(config-if)# ipv6 address 2001:db8:acad:11::2/64

R2(config-if)# no shutdown

R2(config-if)# interface lo2

R2(config-if)# ip address 209.165.200.193 255.255.255.224

R2(config-if)# ipv6 address fe80::2 link-local

R2(config-if)# ipv6 address 2001:db8:acad:210::1/64

R2(config-if)# no shutdown


R1# show ip interface brief

R2# show ip interface brief


R1# show ipv6 interface brief

R1# copy running-config startup-config


R2# copy running-config startup-config


R1#ping 192.168.1.2

R1(config)# ip route 10.2.0.0 255.255.255.0 192.168.1.2

R1#ping 172.16.1.2

R1(config)# ip route 0.0.0.0 0.0.0.0 172.16.1.2

R1(config)# ip route 0.0.0.0 0.0.0.0 192.168.1.2 80


R2(config)# ip route 0.0.0.0 0.0.0.0 172.16.1.1


R1# show ip route

R1# traceroute 10.2.0.1

R1# traceroute 209.165.200.193

R1# config terminal

R1(config)# interface g0/0/0

R1(config-if)# shutdown

R1(config-if)# end

R1# show ip route static

R1# traceroute 209.165.200.193

R1# config terminal

R1(config)# interface g0/0/0

R1(config-if)# no shutdown

R1(config-if)# end


R2(config)# ipv6 route 2001:db8:acad:10::/64 2001:db8:acad:1::1

R2(config)# ipv6 route ::/0 2001:db8:acad:2::1

R2(config)# ipv6 route ::/0 2001:db8:acad:1::1 80


R1(config)# ipv6 route ::/0 2001:db8:acad:2::2


R2# show ipv6 route

R2# traceroute 2001:db8:acad:10::1

R2# traceroute 2001:db8:acad:209::1

R2# config terminal

R2(config)# interface g0/0/0

R2(config-if)# shutdown

R2(config-if)# end

R2# show ipv6 route static

R2# traceroute 2001:db8:acad:209::1


jika masih belum paham, silahkan buka link di bawah:)

Comments