Pc in the office usually has the old become obsolete even in almost every office Pc are not operated .it is still a PC can be used as a gateway server.In this writen, Here I recount my experience, the PC specification that I use the following :
Processor-Intel pentium II 400 Mhz
-BX Mainboard Intel 440 chipset
-Ram 128 Mb
-Hard disk 3.2-Gb
-Lan-card Realtek RTL8139 (2 pcs)
-CDrom
In this case I use Mikrotik v2.9.7
The first we do is to set up a PC that is working well.
then we install the software on the Pc we have to prepare.
Mikrotik is not free software, we have to buy the license.Free trial is only 24 hours and we can download them in www.mikrotik.com.
Here,I make a Mikrotik installation via console:
Mikrotik v2.7.9
login: admin
password:
First set interface
admin @ Mikrotik> interface print
# Type name Rx-Tx-rate rate MTU
0 R ether1 ether 0 0 1500
1 R ether2 ether 0 0 1500
Provide IP address
admin @ Mikrotik> ip address add address = 192.168.0.1 netmask = 255.255.255.0 interface = ethre1
admin @ Mikrotik> ip address add address = 192.168.1.1 netmask = 255.255.255.0 interface = ethre2
view ip configuration
admin @ Mikrotik> ip address print
Flags: X-disabled, I-invalid, D-dynamic
# Broadcast address network interface
0 192.168.0.1/24 192.168.0.0 192.168.0.63 ether1
1 192.168.1.1/24 192.168.1.0 192.168.0.255 ether2
Provide the gateway
admin @ Mikrotik> / ip route add gateway = 192.168.0.254
see routing
admin @ Mikrotik> ip address print
Flags: X-disabled, the A-active, dynamic D-, C-connect, S-static, rip, r, b-bgp, o-ospf
# DST-address interface Prefsrc Distance Gateway
0 ADC 192.168.1.0/24 192.168.1.1 ether2
1 ADC 192.168.0.0/24 192.168.0.1 ether1
2 AS 0.0.0.0 / 0 r 192.168.0.254
To ensure the configuration is correct try to ping the gateway
admin @ Mikrotik> ping 192.168.0.254
192.168.0.254 64 byte ping: TTL = 64 time <1 ms
192.168.0.254 64 byte ping: TTL = 64 time <1 ms
192.168.0.254 64 byte ping: TTL = 64 time <1 ms
192.168.0.254 64 byte ping: TTL = 64 time <1 ms
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min / avg / max = 0/0.0/0 ms
Then set up DNS, eg as we enter the dns telkomspeedy
admin @ Mikrotik> ip dns set primary-dns = 203.130.206.250 allow-remote-requests = no
admin @ Mikrotik> ip dns set secondary-dns = 202.130.196.5 allow-remote-requests = no
Check the DNS configuration
admin @ Mikrotik> print ip dns
primary-dns: 203.130.206.250
secondary-dns: 202.130.196.5
allow-remote-requests: no
cache-size: 2048Kib
cache-max-TTL: 1W
cache-used: 16KiB
Set up Masquerade
admin @ Mikrotik> / ip firewall nat add action + Masquerade out-interface = ether1
chain: srcnat
Check the configuration Masquerade
admin @ Mikrotik> ip firewall nat print
Flags: X-disabled, I-invalid, D-dynamic
0 chain = srcnat out-interface = ether1 action = Masquerade
Create IP address pool
admin @ Mikrotik> / ip pool add name = dhcp-pool = 192.168.1.1-192.168.1.20 Ranges
Adding DHCPnetwork and gateway
admin @ Mikrotik> / ip dhcp-server network add address = 192.168.1.0/24 gateway = 192.168.1.1
Adding a DHCP server on interface ether2
admin @ Mikrotik> / ip dhcp-server add interface = ether2 address-pool = dhcp-pool
See dhcp server status
admin @ Mikrotik> ip dhcp-server print
Flags: X-disabled, I-invalid
# Name Address Interface Relay pool-Lease-Time Add-ARP
0 x dhcp1 ether2
if we see the dhcp server still have a sign (X) to be made then enable
admin @ Mikrotik> ip dhcp-server enable 0
Thus set up Mikrotik I create as a gateway server and I have applied in My internet cafe and I have also in other places
survivors try "do not chase wasted your old PC"
And do not install this system on the mainboard socket LGA

Tidak ada komentar:
Posting Komentar