Pc Router is a PC (computer) is included in an router.Yang where the router itself is a network device that sends data packets over a network or the Internet to the destination through a process that is Routing.
Router functions as a liaison between two or more networks to carry data from one network to another.
For The computer I'm using a computer with the following specifications:
1. Intel Pentium 4 2.6 Ghz
2. Memory 512 MB
3. Harrdisk 40 GB
4. 2 Fruit Nic (network card)
-NIC 1 (eth0) is connected to an existing client LAN dijaringan
-NIC 2 (eth1) connected to a server or router
Before you configure it, you must have an IP address, Subnetmask, Broadcast address and defaul gateway which can be obtained from your ISP (Internet service provider) which you subscribe.
Installing Ubuntu server to complete, here I am using ubuntu server 9.04. After the installation is completely finished, enter the username and password that we created earlier during installation of ubuntu server.
The steps and commands for configuring the following:
-Log in as root, so we can have full and unimpeded access.
# sudo su
-Enter the root password
-Configuring NIC 1 (eth0) and NIC 2 (eth1)
# nano / etc / network / interfaces
-Enter the IP Address, Netmask and Broadcast according to what you want
# The loopback network interface
auto lo eth0 eth1
iface lo inet loopback
allow-hotplug eth0
# The primary network interface
iface eth0 inet static
address 192.168.0.99
netmask 255.255.255.0
broadcast 192.168.0.255
iface eth1 inet static
address 192.168.1.20
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.10
Press Control-X and Y enter to save
-Check Ip, is already entered with the command benar2
# ifconfig
-Entering DNS
# nano / etc / resolv.conf-Complete control of his
Nameserver 192.168.1.10 / / I enter with Ip gateway
Nameserver 192.168.1.20 / / Ip eth1
Press Control-X and Y enter to save
-Restart the network so that we can function settings
# / etc / init.d / networking restart
Network-process is finished, now get in on the Routing
Enabling ip_forward-way
# echo "1"> / proc/sys/net/ipv4/ip_forward
-Put the iptables command to mensharing internet from eth1 to eth0
# iptables-t nat-A POSTROUTING-o eth1-j MASQUERADE
-Me Routing Ip client that we use on a LAN
# / sbin / iptables-t nat-A POSTROUTING-s-j MASQUERADE 192.168.0.99/192.168.0.200
-For orders not lost when the computer is restarted, save the command in rc.lokal
# nano / etc / rc.local
Retype re-iptables command earlier in the word exit = 0
iptables-t nat-A POSTROUTING-o eth1-j MASQUERADE
/ sbin / iptables-t nat-A POSTROUTING-s-j MASQUERADE 192.168.0.99/192.168.0.200
echo "1"> / proc/sys/net/ipv4/ip_forward
-Do not forget the save by pressing Control X and Y enter
Restart re-setting networknya
# / etc / init.d / networking restart
To ensure eth0, eth1 and internet connection is connected, do ping one by one
# Ping 192.168.0.99 / / eth0
# Ping 192.168.1.20 / / eth1
# Ping www.google.com
Reply If he was connected and setting client ip
Fill with:
Ip addresses 192.168.0.99-200
subnetmask 255.255.255.0
Gateway 192.168.1.20 / / fill with ip eth1
Dns server 192.168.1.20 / / ip nameserver that we created earlier as DNS
Check with ping from the client to the server eth0 and eth1 and from client to client.
Open a browser on the client and the Internet connection test, if it works then you managed to make a PC ROUTER.
To make this, you can install the Squid proxy server and other tolls2 you feel you need.