PC Router

Rabu, 27 Juli 2011

PC (Personal Computer) Router is a computer (PC) which serves as a router.Computers are used in practice this is a computer that uses the OS Ubuntu 8.10 with a NIC card and connected to the network. In this practice, we used twocomputer that serves as a router to connect 2 pieces of different tissues.

In practice this time there are 3 pieces of tissue, namely:


  1. 192.168.114.0/24

  2. 192.168.113.0/24

  3. 192.168.100.0/24


Ketiga jaringan tersebut harus saling terhubung dengan sebagai penghubung adalah sebuah PC Router, dengan topologi seperti gambar di bawah ini. Dalam hal ini, kami akan melakukan konfigurasi terhadap router 2 (R2) agar ketiga jaringan dapat terhubung.



The first step should be done is to set up the router (your PC). Go to the Terminalas root (Super User). The next thing is setting up our PC's IP Router. Actuallyneeded 2 pieces of NIC, But in this case we will only use one NIC (eth0) and afruit Virtual NIC (eth0: 1).

Ifconfig eth0 192.168.100.1 netmask 255.255.255.0 broadcast 192.168.100.255 up

Ifconfig eth0:1 192.168.113.2 netmask 255.255.255.0 broadcast 192.168.113.255 up



The next step is to enable IP Forward feature that serves to forward the packets to other networks. Kengubahnya untu way is to run the command
#echo “net.ipv4.ip_forward=1” >> /etc/sysctl.conf.



The next step is to give us the router's routing table PC, the way he is with the command

route add –net [network_tujuan] netmask [netmask_tujuan] gw [gateway]

Routing table which we will use is as follows:


RouterNet TujuanNetmask TujuanGateway
Router 1192.168.114.0255.255.255.0182.168.113.1

To view the routing table, our computers, we can do the checking by typing route-n



Then Ping to IP in the 192.168.114.0 network, that is we ping to 192.168.114.1

If successful means that we make a PC router has been successful.








0 komentar:

Posting Komentar

 
 
 

Label

Label