Find info about electronics prices, discounts, top deals in link, like US below.

Setting usb modem Internet connection sharing in ubuntu


At this time was a lot of emerging as a product that is becoming more and more competitors in my country that is a USB modem with a variety of trademark and brand phones and operator, and many others that they offer the cheapest package up though.

but it is not actually here to talk about it but to give the settings ICS (internet connection sharing) usb modem in ubuntu manually with some other computer, 2 or more PC.

After the USB modem has been connected to a computer and the driver was install here are some steps for internet connection sharing in ubuntu manually:

1. Open a terminal sign as root and type the command:
gedit /etc/network/interfaces
Fill with the following text below, In my computer my ethernet is 1 so i setting that to eth1 not eth0
auto eth1
iface eth1 inet static
address 192.168.0.1
network 192.168.0.0
netmask 255.255.255.0
broadcast 192.168.0.255
Editing auto eth0


2. Restart your network type in terminal with command below:
/etc/init.d/networking restart

3. Check your network type in terminal with command below:
ifconfig

4. Edit command sysctl.conf for forward ppp0 to eth0 or 1 type on the terminal with the command below:
gedit /etc/sysctl.conf
remove the sign # in front of #net.ipv4.ip.forward=1
so the result is; net.ipv4.ip.forward=1
and then save.
sysctl-editing

5. Activate that setting above with type command below :
sysctl -p
And the result like this "net.ipv4.ip_forward = 1" without the quotation marks
6. The Next to check IP forward was aktive Type command below :
cat /proc/sys/net/ipv4/ip_forward
If the result is 1 that mean was aktive.

7. Then to make Masquerade add the following settings :
gedit /etc/rc.local
Add this text below :
sudo iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o ppp0 -j MASQUERADE
masquerade ICS
and then save

8. For run Masquerade above type command below :
/etc/rc.local start

9. For check Masquerade type command below :
iptables -L -t nat
Done.
10. The next setting your client pc if the ip address server is 192.168.0.1 then set ip address client to 192.168.0.2 and next.
Netmask : 255.255.255.0
Gateway : 192.168.0.1
DNS fill with your curent isp.

good luck..! :)


Description: Setting usb modem Internet connection sharing in ubuntu Rating: 4.5 Reviewer: Zein Okeh - ItemReviewed: Setting usb modem Internet connection sharing in ubuntu

Posted by: Zein Okeh Share Everything, Updated at: Thursday, November 17, 2011

1 komentar:

Jon said...

Awesome tutorial, thanks!

Post a Comment

Sorry if my english is bad

Related Posts Plugin for WordPress, Blogger...
Powered by Blogger.