Static Default Route
LAB 5
Device
|
Interface
|
IP Address
|
Subnet Mask
|
Default Gateway
|
Router0
|
Fa0/0
|
192.168.1.254
|
255.255.255.0
|
N/A
|
Fa0/1
|
12.12.12.1
|
255.255.255.0
|
N/A
| |
Lo1
|
172.16.1.1
|
255.255.255.0
|
N/A
| |
Lo2
|
172.16.2.2
|
255.255.255.0
|
N/A
| |
Router1
|
Fa0/0
|
192.168.2.254
|
255.255.255.0
|
N/A
|
Fa0/1
|
12.12.12.2
|
255.255.255.0
|
N/A
| |
Lo3
|
172.16.3.3
|
255.255.255.0
|
N/A
| |
Lo4
|
172.16.4.4
|
255.255.255.0
|
N/A
| |
Switch0
|
N/A
|
VLAN1
|
N/A
|
N/A
|
Switch1
|
N/A
|
VLAN1
|
N/A
|
N/A
|
Laptop0
|
NIC
|
192.168.1.1
|
255.255.255.0
|
192.168.1.254
|
Laptop1
|
NIC
|
192.168.2.1
|
255.255.255.0
|
192.168.2.254
|
Pemberian IP address, Subnet Mask , dan Default Gateway
1. Pemberian Ip Address dan Subnet Mask pada Fa0/0 , Fa0/1 , Lo1 , Lo2 di Route0
· Klik Route0 dan pilih pada bagian CLI
· Pilih no
Router(config)#interface FastEthernet0/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
Router(config-if)# ip address 192.168.1.254 255.255.255.0
Router(config-if)#exit
Router(config)#interface FastEthernet0/1
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
Router(config-if)#ip address 12.12.12.2 255.255.255.0
Router(config)#int Lo1
Router(config-if)#
%LINK-5-CHANGED: Interface Loopback1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback1, changed state to up
Router(config-if)#ip address 172.16.1.1 255.255.255.0
Router(config-if)#int Lo2
Router(config-if)#
%LINK-5-CHANGED: Interface Loopback2, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback2, changed state to up
Router(config-if)#ip address 172.16.2.2 255.255.255.0
2. Pemberian Ip Address dan Subnet Mask pada Fa0/0 , Fa0/1 , Lo3 , Lo4 di Route1
- Klik Route1 dan pilih pada bagian CLI
- Pilih no
Router(config)#interface FastEthernet0/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
ip address 192.168.2.254 255.255.255.0
Router(config-if)#
Router(config-if)#exit
Router(config)#interface FastEthernet0/1
Router(config-if)#
Router(config-if)#exit
Router(config)#interface FastEthernet0/1
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
ip address 12.12.12.2 255.0.0.0
Router(config-if)#ip address 12.12.12.2 255.255.255.0
Router(config-if)#int Lo3
Router(config-if)#
%LINK-5-CHANGED: Interface Loopback3, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback3, changed state to up
Router(config-if)#ip address 172.16.3.3 255.255.255.0
Router(config-if)#int Lo4
Router(config-if)#
%LINK-5-CHANGED: Interface Loopback4, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback4, changed state to up
Router(config-if)#ip address 172.16.4.4 255.255.255.0
3. Pemberian Ip address, Subnet Mask, dan Gateway pada Laptop0
- Klik pada Laptop0
- Pilih tab Desktop
- Pilih Ip Configuration
- Isi Ip address, Subnet Mask, dan Gateway sesuai dengan table di atas
4. Pemberian Ip address, Subnet Mask, dan Gateway pada Laptop1
- Klik pada Laptop1
- Pilih tab Desktop
- Pilih Ip Configuration
- Isi Ip address, Subnet Mask, dan Gateway sesuai dengan table di atas
Setting static default route di Ruote0
Pilih salah satu:
Router(config)#ip route 0.0.0.0 0.0.0.0 12.12.12.2
atau
Router(config)#ip route 0.0.0.0 0.0.0.0 fa0/1
Tampilkan Routing pada Router0
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 0.0.0.0 to network 0.0.0.0
12.0.0.0/24 is subnetted, 1 subnets
C 12.12.12.0 is directly connected, FastEthernet0/1
172.16.0.0/24 is subnetted, 2 subnets
C 172.16.1.0 is directly connected, Loopback1
C 172.16.2.0 is directly connected, Loopback2
C 192.168.1.0/24 is directly connected, FastEthernet0/0
S* 0.0.0.0/0 [1/0] via 12.12.12.2
is directly connected, FastEthernet0/1
Setting static default route di Ruote1
Pilih salah satu:
Router(config)#ip route 0.0.0.0 0.0.0.0 12.12.12.1
atau
Router(config)#ip route 0.0.0.0 0.0.0.0 fa0/1
Tampilkan Routing pada Router1
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 0.0.0.0 to network 0.0.0.0
12.0.0.0/24 is subnetted, 1 subnets
C 12.12.12.0 is directly connected, FastEthernet0/1
172.16.0.0/24 is subnetted, 2 subnets
C 172.16.3.0 is directly connected, Loopback3
C 172.16.4.0 is directly connected, Loopback4
C 192.168.2.0/24 is directly connected, FastEthernet0/0
S* 0.0.0.0/0 [1/0] via 12.12.12.1
is directly connected, FastEthernet0/1
Verifikasi Ping Laptop1 ke Laptop0
PC>ping 192.168.1.1
Pinging 192.168.1.1 with 32 bytes of data:
Reply from 192.168.1.1: bytes=32 time=27ms TTL=126
Reply from 192.168.1.1: bytes=32 time=38ms TTL=126
Reply from 192.168.1.1: bytes=32 time=24ms TTL=126
Reply from 192.168.1.1: bytes=32 time=26ms TTL=126
Ping statistics for 192.168.1.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 24ms, Maximum = 38ms, Average = 28ms
Traceroute dari Laptop1 ke Laptop0
PC>tracert 192.168.1.1
Tracing route to 192.168.1.1 over a maximum of 30 hops:
1 1 ms 0 ms 10 ms 192.168.2.254
2 14 ms 15 ms 14 ms 12.12.12.1
3 38 ms 25 ms 23 ms 192.168.1.1
0 komentar:
Posting Komentar