The problem with the Internet connection after you create a wireless network in Ubuntu 9.10?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/code-flow.club/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
3 views
Hello,

I want to set up a wireless network at home to access the Internet from your smartphone. Operating system — Ubuntu 9.10 Desktop Edition, the wi-fi adapter TP-LINK TL-WN821N. I'm trying to create a wireless network using an applet. The network is created and I can see it from your smartphone. Sorry, lost Internet access on the host. As far as I understand, physically an Internet connection is present, but for some reason the sites on the browser is not open and not pinouts. The impression that Ubuntu after connecting wi-fi adapter is trying to connect to the Internet through it, but this is only my guess.

In Ubuntu I'm new, I'll be glad to any Council.

Thanks in advance.
by | 3 views

2 Answers

0 like 0 dislike
I think it's not in DNS at all.
\r
1) so, the computer connected to the network there is a table routing. It spelled out, in particular, what network card and ip address of the computer which can be accessed (internal grid, Internet).
\r
If You have, for example, one network card (though, a wired interface under the name eth0), in the table there is one main route to all addresses (the Internet, the grid) to ask through this interface.
\r
Once You install a second network card (e.g. wireless, wlan0) and pose through her connection, in the table there is a second main route is to ask on all the sites and the requested address through a second network.
\r
As a result, in table two equivalent route and the system doesn't know what the interface really need to take the information. Therefore, your initial hunch is right.
\r
2)How to fix inet:
\r
All commands are done in the console/terminal via "sudo". Wired and wireless interface will be called eth0 and wlan0, respectively. After the "//" is a comment, it is not necessary to write.
\r
route del default //delete the default route
route del default // not a typo, this command removed the second default route if it was created
route add default dev eth0 //say that the default will go for the mesh/net wire
\r
3)Internet we have restored, now will establish the distribution of the smartphone:
\r
echo 1 >/proc/sys/net/ipv4/ip_forward //allow the Linux kernel to transfer the network packets between satavahana
iptables -F //just in case clear the rules table of the firewall, the main "sharing"
iptables-t nat -A POSTROUTING -o eth0 -j MASQUERADE //written to the table firewall rule that came in from any interface (including the only other eth0, wlan0) and asking the Internet, get the Internet from eth0
\r
Like everything, a few commands in the terminal. By the way, it is possible to drive them in a script and put it in the startup so that every time after reboot same thing not to enter.
\r
If something doesn't turn out — write here, and(preferably) studied literature on the use of programs/commands, route, iptables, bash (for shell scripts in particular)
by
0 like 0 dislike
The Internet is lost on the host including or only on my phone no access to the sites?
\r
If the former, then check the DNS. In particular you can look at the file /etc/resolv.conf before and after activation besprovodnoy. If after activation the DNS addresses of servers change, then dig in the direction of who and why they change.
\r
Well, check routing with the command:
netstat-anr
by

Related questions

0 like 0 dislike
3 answers
asked Mar 20, 2019 by romanmosko
0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
22,653 users