Jaringan Komputer:Tugas 2: Difference between revisions
No edit summary |
|||
| Line 28: | Line 28: | ||
==Konfigurasi Router== | ==Konfigurasi Router== | ||
<syntaxhighlight lang="bash | |||
*Masuk ke konfigurasi global | |||
<syntaxhighlight lang="bash"> | |||
Router>enable | Router>enable | ||
Router#configure terminal | Router#configure terminal | ||
</syntaxhighlight> | |||
*Memberikan IP Address pada interface fa0/0 | |||
<syntaxhighlight lang="bash"> | |||
Router(config)#interface fa0/0 | Router(config)#interface fa0/0 | ||
Router(config-if)#ip address 10.10.11.1 255.255.255.0 | Router(config-if)#ip address 10.10.11.1 255.255.255.0 | ||
Router(config-if)#no shutdown | Router(config-if)#no shutdown | ||
Router(config-if)#exit | Router(config-if)#exit | ||
</syntaxhighlight> | |||
*Memberikan IP Address pada interface fa1/0 | |||
<syntaxhighlight lang="bash"> | |||
Router(config)#interface fa1/0 | Router(config)#interface fa1/0 | ||
Router(config-if)#ip address 10.10.12.1 255.255.255.0 | Router(config-if)#ip address 10.10.12.1 255.255.255.0 | ||
Router(config-if)#no shutdown | Router(config-if)#no shutdown | ||
Router(config-if)#exit | Router(config-if)#exit | ||
</syntaxhighlight> | |||
*Memberikan IP Address pada interface fa2/0 | |||
<syntaxhighlight lang="bash"> | |||
Router(config)#interface fa2/0 | Router(config)#interface fa2/0 | ||
Router(config-if)#ip address 10.10.13.1 255.255.255.0 | Router(config-if)#ip address 10.10.13.1 255.255.255.0 | ||
Router(config-if)#no shutdown | Router(config-if)#no shutdown | ||
Router(config-if)#exit | Router(config-if)#exit | ||
</syntaxhighlight> | |||
*Memberikan IP Address pada interface fa3/0 | |||
<syntaxhighlight lang="bash"> | |||
Router(config)#interface fa3/0 | Router(config)#interface fa3/0 | ||
Router(config-if)#ip address 10.10.14.1 255.255.255.0 | Router(config-if)#ip address 10.10.14.1 255.255.255.0 | ||
Router(config-if)#no shutdown | Router(config-if)#no shutdown | ||
Router(config-if)#exit | Router(config-if)#exit | ||
</syntaxhighlight> | |||
*Memberikan IP Address pada interface fa4/0 | |||
<syntaxhighlight lang="bash"> | |||
Router(config)#interface fa4/0 | Router(config)#interface fa4/0 | ||
Router(config-if)#ip address 10.10.15.1 255.255.255.0 | Router(config-if)#ip address 10.10.15.1 255.255.255.0 | ||
Router(config-if)#no shutdown | Router(config-if)#no shutdown | ||
Router(config-if)#exit | Router(config-if)#exit | ||
</syntaxhighlight> | |||
*Memberikan IP Address pada interface fa5/0 | |||
<syntaxhighlight lang="bash"> | |||
Router(config)#interface fa5/0 | Router(config)#interface fa5/0 | ||
Router(config-if)#ip address 10.10.10.1 255.255.255.0 | Router(config-if)#ip address 10.10.10.1 255.255.255.0 | ||
Router(config-if)#no shutdown | Router(config-if)#no shutdown | ||
Router(config-if)#exit | Router(config-if)#exit | ||
</syntaxhighlight> | |||
*Konfigurasi DHCP di IP 10.10.12.0 | |||
<syntaxhighlight lang="bash"> | |||
Router(config)#ip dhcp pool network1010121 | Router(config)#ip dhcp pool network1010121 | ||
Router(dhcp-config)#network 10.10.12.0 255.255.255.0 | Router(dhcp-config)#network 10.10.12.0 255.255.255.0 | ||
Router(dhcp-config)#default-router 10.10.12.1 | Router(dhcp-config)#default-router 10.10.12.1 | ||
Router(dhcp-config)#exit | Router(dhcp-config)#exit | ||
</syntaxhighlight> | |||
*Konfigurasi DHCP di IP 10.10.13.0 | |||
<syntaxhighlight lang="bash"> | |||
Router(config)#ip dhcp pool network1010131 | Router(config)#ip dhcp pool network1010131 | ||
Router(dhcp-config)#network 10.10.13.0 255.255.255.0 | Router(dhcp-config)#network 10.10.13.0 255.255.255.0 | ||
Router(dhcp-config)#default-router 10.10.13.1 | Router(dhcp-config)#default-router 10.10.13.1 | ||
Router(dhcp-config)#exit | Router(dhcp-config)#exit | ||
</syntaxhighlight> | |||
*Konfigurasi DHCP di IP 10.10.14.0 | |||
<syntaxhighlight lang="bash"> | |||
Router(config)#ip dhcp pool network1010141 | Router(config)#ip dhcp pool network1010141 | ||
Router(dhcp-config)#network 10.10.14.0 255.255.255.0 | Router(dhcp-config)#network 10.10.14.0 255.255.255.0 | ||
Router(dhcp-config)#default-router 10.10.14.1 | Router(dhcp-config)#default-router 10.10.14.1 | ||
Router(dhcp-config)#exit | Router(dhcp-config)#exit | ||
</syntaxhighlight> | |||
*Konfigurasi DHCP di IP 10.10.15.0 | |||
<syntaxhighlight lang="bash"> | |||
Router(config)#ip dhcp pool network1010151 | Router(config)#ip dhcp pool network1010151 | ||
Router(dhcp-config)#network 10.10.15.0 255.255.255.0 | Router(dhcp-config)#network 10.10.15.0 255.255.255.0 | ||
Router(dhcp-config)#default-router 10.10.15.1 | Router(dhcp-config)#default-router 10.10.15.1 | ||
Router(dhcp-config)#exit | Router(dhcp-config)#exit | ||
</syntaxhighlight> | |||
*Konfigurasi DHCP di IP 10.10.11.0 | |||
<syntaxhighlight lang="bash"> | |||
Router(config)#ip dhcp pool network1010101 | Router(config)#ip dhcp pool network1010101 | ||
Router(dhcp-config)#network 10.10.10.0 255.255.255.0 | Router(dhcp-config)#network 10.10.10.0 255.255.255.0 | ||
Router(dhcp-config)#default-router 10.10.10.1 | Router(dhcp-config)#default-router 10.10.10.1 | ||
Router(dhcp-config)#exit | Router(dhcp-config)#exit | ||
Router(config)#ip dhcp pool network1010111 | </syntaxhighlight> | ||
*Konfigurasi DHCP di IP 10.10.11.0 | |||
<syntaxhighlight lang="bash">Router(config)#ip dhcp pool network1010111 | |||
Router(dhcp-config)#network 10.10.11.0 255.255.255.0 | Router(dhcp-config)#network 10.10.11.0 255.255.255.0 | ||
Router(dhcp-config)#default-router 10.10.11.1 | Router(dhcp-config)#default-router 10.10.11.1 | ||
Router(dhcp-config)#exit | Router(dhcp-config)#exit | ||
</syntaxhighlight> | </syntaxhighlight> | ||
[[Category:Materi]] | [[Category:Materi]] | ||
[[Category:Matkul]] | [[Category:Matkul]] | ||
[[Category:Jaringan Komputer]] | [[Category:Jaringan Komputer]] | ||