PNETLab soal: 2 VTP: Difference between revisions
Appearance
No edit summary |
|||
| Line 1: | Line 1: | ||
===Router server=== | |||
/interface vlan | |||
add interface=ether2 name=bendahara vlan-id=11 | |||
add interface=ether2 name=sekretaris vlan-id=10 | |||
/ip pool | |||
add name=dhcp_pool0 ranges=192.168.10.2-192.168.10.254 | |||
add name=dhcp_pool1 ranges=192.168.11.2-192.168.11.254 | |||
/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 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 | |||
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=== | === Switch 1=== | ||
interface Ethernet0/0 | interface Ethernet0/0 | ||
Revision as of 23:39, 9 February 2024
Router server
/interface vlan add interface=ether2 name=bendahara vlan-id=11 add interface=ether2 name=sekretaris vlan-id=10
/ip pool add name=dhcp_pool0 ranges=192.168.10.2-192.168.10.254 add name=dhcp_pool1 ranges=192.168.11.2-192.168.11.254
/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 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 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