Modem Internet: Internet Sharing Modem Mobile OS Ubuntu

Saturday, September 3, 2011

Internet Sharing Modem Mobile OS Ubuntu

In practice this time to prepare, among others:

notebook / netbook / pc minimum of 2 units
OS linux 10:10
Mobile broadband modem
utp cable (cross)
The design topology

Internet (modem) ==> notebook (192.168.0.1/24) ==> netbooks (client: 192.168.0.2)

GW: 192.168.0.1

DNS: according to the operator in use

Steps were as beriku:

Getting started ubuntu install Operating System on a notebook and netbook 10:10
Create a network using a cross cable between notebooks and netbooks,
Set the IP on the notebook (System => Preferences => Network Connections => Wired => Auto eth0 => edit => IPv4 Settings => Method (select Manual) => Add)
Address = 192.168.0.1

Netmask = 255.255.255.0

Gateway = 0.0.0.0

Apply

By the same set of IP netbook (client)
Address = 192.168.0.2

Netmask = 255.255.255.0

Gateway = 192.168.1.1

DNS Server: DNS 1 Operator in use

Search Domain: DNS 1 Operator in use

Apply

Check the network connection between notebooks and netbooks, select one example on a notebook, enter the terminal (aplications => Accessories = Terminal)
$ Ping 192.168.0.2

PING 192.168.0.2 (192.168.0.2) 56 (84) bytes of data.

64 bytes from 192.168.0.2: icmp_req = 1 ttl = 62 time = 1 ms

64 bytes from 192.168.0.2: icmp_req = 2 ttl = 62 time = 1 ms

64 bytes from 192.168.0.2: icmp_req = 3 ttl = 62 time = 1 ms

64 bytes from 192.168.0.2: icmp_req = 4 ttl = 62 time = 1 ms

Connection Ok

Set Modem mobile broadband in notebook entries and set the modem to the notebook modem (System => Preferences => Network Connections => Mobile Broadband => Add => select the type of modem used => Forward => select your country (Indonesia) => Forward = > select the provider (if there is no option select ican't ... type in the provider you use) => Forward => input according to providers APN => Forward => Apply => mobile Broadbrand
Connection name = mobile

Number = * 99 # (adjusted for provider)

username = (corresponding provuder)

Password = (according to provider)

APN = (corresponding provuder)

Type = (Any for all types of networks, 3G networks for 3G, or 2G (GPRS) for GPRS networks)

PIN = Enter the PIN if the card you are using a security PIN

Apply

Connect your modem with the command network connection on ubuntu panel menu, select the name of the modem mobile, if it is connect looks at the connection icon, you can try brwosing open a website.
Internet Sharing command, which is a notebook given perinta sharing the internet with a mobile modem koneks braodband
Go to the terminal

Go to root user with command

ubuntu sudo su-$ 10.10

password: (enter root password)

root # (you have entered the root)

Changing the contents of the file / etc / sysctl.conf

sudo gedit / etc / sysctl.conf

the text reads net.ipv4.ip_forward = 1 , delete the # sign, then save the file.

This command is used to enable ip forwarding

change the file / etc / rc.local

sudo gedit / etc / rc.local

perinta add the following before the exit 0

iptables-t nat-A POSTROUTING-s 192.168.0.0/24-d 0 / 0-j MASQUERADE

Save the file

Reboot the notebook

Try sharing intenet, after rebooting your notebook, modem connection again until terkonek internet (make sure you can try browsing),
Now you can try on a netbook (clients) let you browse websites open one, if there are no errors you will be internet connected client.
Good luck

No comments:

Post a Comment