Jump to content

PNETLab soal: 2 VTP: Difference between revisions

From Wiki
No edit summary
Kangmus (talk | contribs)
No edit summary
 
Line 1: Line 1:
===Router server===
===Router server===
jika belum ada DHCP client, tapi kalau defaultnya sudah ada di ether1
/ip dhcp-client
add disabled=no interface=ether1
menambahkan interface vlan MikroTik
  /interface vlan
  /interface vlan
  add interface=ether2 name=bendahara vlan-id=11
  add interface=ether2 name=bendahara vlan-id=11
  add interface=ether2 name=sekretaris vlan-id=10
  add interface=ether2 name=sekretaris vlan-id=10


  /ip pool
  /ip address
  add name=dhcp_pool0 ranges=192.168.10.2-192.168.10.254
  add address=192.168.11.1/24 interface=bendahara network=192.168.11.0
  add name=dhcp_pool1 ranges=192.168.11.2-192.168.11.254
  add address=192.168.10.1/24 interface=sekretaris network=192.168.10.0


  /ip dhcp-server
  /ip dhcp-server
  add address-pool=dhcp_pool0 disabled=no interface=sekretaris name=dhcp1
  add address-pool=dhcp_pool0 disabled=no interface=sekretaris name=dhcp1
  add address-pool=dhcp_pool1 disabled=no interface=bendahara name=dhcp2
  add address-pool=dhcp_pool1 disabled=no interface=bendahara name=dhcp2
/ip address
add address=192.168.11.1/24 interface=bendahara network=192.168.11.0
add address=192.168.10.1/24 interface=sekretaris network=192.168.10.0
/ip dhcp-client
add disabled=no interface=ether1


  /ip dhcp-server network
  /ip dhcp-server network

Latest revision as of 10:17, 13 February 2024

Router server

jika belum ada DHCP client, tapi kalau defaultnya sudah ada di ether1

/ip dhcp-client
add disabled=no interface=ether1

menambahkan interface vlan MikroTik

/interface vlan
add interface=ether2 name=bendahara vlan-id=11
add interface=ether2 name=sekretaris vlan-id=10
/ip address
add address=192.168.11.1/24 interface=bendahara network=192.168.11.0
add address=192.168.10.1/24 interface=sekretaris network=192.168.10.0
/ip dhcp-server
add address-pool=dhcp_pool0 disabled=no interface=sekretaris name=dhcp1
add address-pool=dhcp_pool1 disabled=no interface=bendahara name=dhcp2
/ip dhcp-server network
add address=192.168.10.0/24 gateway=192.168.10.1
 add address=192.168.11.0/24 gateway=192.168.11.1
/ip dns
set allow-remote-requests=yes
/ip firewall nat
add action=masquerade chain=srcnat out-interface=ether1


Switch 1

interface Ethernet0/0
 no shutdown
 switchport trunk encapsulation dot1q
 switchport mode trunk
interface Ethernet0/1
 no shutdown
 switchport access vlan 10
 switchport mode access
interface Ethernet0/2
 no shutdown
 switchport access vlan 11
 switchport mode access
interface Ethernet0/3
 no shutdown
 switchport access vlan 11
 switchport mode access
interface Ethernet1/0
 no shutdown
 switchport trunk encapsulation dot1q
 switchport mode trunk

Swith 2

interface Ethernet0/0
 no shutdown
 switchport trunk encapsulation dot1q
 switchport mode trunk
interface Ethernet0/1
 no shutdown
 switchport access vlan 10
 switchport mode access
interface Ethernet0/2
 no shutdown
 switchport access vlan 10
 switchport mode access
interface Ethernet0/3
 no shutdown
 switchport access vlan 11
 switchport mode access