Tuesday, February 23, 2010

Sharing Internet at Ubuntu

Devices that use a server with 2 Network 10/100 Mbps Internet network from the ISP (Speedy), Switch that connects to the LAN and PC Client with each assumed to be 1 LAN card using the PC client 25.

The first step: Determining IP Address Server for Connection to ISP

Data obtained from ISP (Speedy) obtained an IP address such as 125,162,149,201

Subnetnya 255,255,255,254

Acquired ISP's DNS: 202.93.40.174 and 202.152.165.36

ISP Gateway obtained: 125.162.54.1

The second step determines IP Address for Connections Local / LAN

Because the client is assumed to be 25 units then you should select the IP Address 172.16.17.1/27 means Subnetnya is 255,255,255,224

We specify IP Address Server that connects to the LAN we set: 172.16.17.1

Obtained from the ISP's DNS: 202.93.40.174 and 202.152.165.36

The third step determines the Client IP Address:

Client - 1

IP Address: 172.16.17.2

subnet mask: 255,255,255,224

DNS from ISP: 202.93.40.174 and 202.152.165.36

Gateway: 172.16.17.1 (IP address server connected to LAN)

Client - 2

IP Address: 172.16.17.3

subnet mask: 255,255,255,224

DNS from ISP: 202.93.40.174 and 202.152.165.36

Gateway: 172.16.17.1 (IP address server connected to LAN)

The fourth step Setting Internet sharingnya

To make such sharing internet connection from client 1 to client 2

1. In Computer Server

Administration > Network pilih wired connection (eth0) kemudian klik Properties pada Connection Setting isikan seperti berikut ini :" onmouseover="this.style.backgroundColor='#ebeff9'" onmouseout="this.style.backgroundColor='#fff'">Open the network settings: System> Administration> Network select wired connection (eth0) and then click Properties on the Connection Settings insert the following:
Administration > Network pilih wired connection (eth0) kemudian klik Properties pada Connection Setting isikan seperti berikut ini :" onmouseover="this.style.backgroundColor='#ebeff9'" onmouseout="this.style.backgroundColor='#fff'">
Administration > Network pilih wired connection (eth0) kemudian klik Properties pada Connection Setting isikan seperti berikut ini :" onmouseover="this.style.backgroundColor='#ebeff9'" onmouseout="this.style.backgroundColor='#fff'">Configuration: Static IP Address

IP Address: 125,162,149,201

Subnetmask: 255,255,255,254

Gateway: 125.162.54.1

Click OK and then back into the Network Settings control click and add the DNS address from your ISP (202.93.40.174 and 202.152.165.36)

Connect the cable from the ISP to the NIC (eth0) and then open a terminal ping to google in type

ping www.google.com

If no replay is an internet connection is OK

Back to Network Settings window select Wired Connection (eth1) and then click Properties, make the following configuration:

Configuration: Static IP Address

sesuaikan dengan LAN yang kita buat" onmouseover="this.style.backgroundColor='#ebeff9'" onmouseout="this.style.backgroundColor='#fff'">IP address: 172.16.17.1 -> adjust the LAN that we make
sesuaikan dengan LAN yang kita buat" onmouseover="this.style.backgroundColor='#ebeff9'" onmouseout="this.style.backgroundColor='#fff'">
sesuaikan dengan LAN yang kita buat" onmouseover="this.style.backgroundColor='#ebeff9'" onmouseout="this.style.backgroundColor='#fff'">Subnetmask: 255,255,255,224

Gateway address: Clear

Click OK and close the Network Settings window and plug the network cable to the Switch

2. Setting the Client Computer

Setting IP on the client do as much as we do on the server

Client-1

IP: 172.16.17.2

Subnet mask: 255,255,255,224

Gateway: 172.16.17.1 (IP LAN servers)

Client 2

IP: 172.16.17.3

Subnetmask: 255,255,255,224

Gateway: 172.16.17.1 (IP Address Server LAN) ... etc with the same thing for each existing client.

After the settings to try pinging the server, the terminal type ping 172.16.17.1 if reply then the connection is OK.

The next step is sharing the internet, the Ubuntu software tinggall use Firestarter. Kalo is not installed open a terminal typing using apt-get install Firestarter.

Run Firestarter just follow wizzardnya, select the Internet connection from eth0 and eth1 network of local.

No comments:

Post a Comment