LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-22-2015, 03:12 PM   #1
atux_null
Member
 
Registered: Mar 2015
Distribution: debian 12, ubuntu 22.04
Posts: 65

Rep: Reputation: Disabled
wan over wifi


hello everyone. i do moved to a new office and they offer me only wifi connection with the following settings.
SSID:Access_comm_PLUS
WPA2
passwd:123abc
dynamic IP

there is no gui in the system.
i do have an old PC with an ethernet that i have setup wheezy and a usb wifi stick (TP LINK w722n). The chipset has been recognised by doing:
apt-get install wireless-tools usbutils firmware-atheros
wget http://linuxwireless.org/download/ht....3/htc_9271.fw
cp htc_9271.fw /lib/firmware

this is what i have done to the system. I do need to configure the system to have on eth0 the LAN 192.168.90.0/24 with a static IP in the eth0. All traffic will go to internet through wifi.
some help please.
 
Old 05-22-2015, 11:05 PM   #2
Hungry ghost
Senior Member
 
Registered: Dec 2004
Posts: 1,222

Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
I'm not quite sure whether you're trying to connect through your wireless card or through your (wired) network card. In case it's via wireless, you can try installing the wpasupplicant package with apt-get and then edit your /etc/network/interfaces file. You can check the /usr/share/doc/ifupdown/examples/network-interfaces.gz file for examples on how it should look, but something like this should work:

Code:
# Wireless interface
auto wlan0
iface wlan0 inet dhcp
wpa-ssid Access_comm_PLUS
wpa-psk password #(Replace with your real password)
Replace wlan0 with whatever your wireless card is named. I'm not familiar with Atheros cards, but I think they are ath0 or something like that. (Check the output of ifconfig -a to know it).

(BTW, I would suggest that you edit your post and delete the password, just in case; you never know who might be reading it).

After that, try:

Code:
/etc/init.d/networking restart
If it doesn't work, try rebooting the machine and see if it gets connected to the wifi signal.

Last edited by Hungry ghost; 05-22-2015 at 11:07 PM.
 
Old 05-23-2015, 09:14 AM   #3
atux_null
Member
 
Registered: Mar 2015
Distribution: debian 12, ubuntu 22.04
Posts: 65

Original Poster
Rep: Reputation: Disabled
my /etc/network/interfaces has

auto wlan0
iface wlan0 inet static
address 192.168.0.49
netmask 255.255.255.0
broadcast 192.168.0.255
wpa-ssid "Com_SAT_PLUS "
wpa-psk "wh@t3v3r123 "
up nat.sh eth0 wlan0 "192.168.90.0/24"

auto eth0
iface eth0 inet static
address 192.168.90.100
netmask 255.255.255.0

i can ping/traceroute up to the wireless gateway (192.168.0.1) nothing else.
if i get my laptop to connect through its wireless to the wifi, i can get access everywhere to the net.
do i need to setup anything else?
 
Old 05-23-2015, 09:50 AM   #4
Hungry ghost
Senior Member
 
Registered: Dec 2004
Posts: 1,222

Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
You said the wireless is set to use a dynamic IP, however, the wireless section of your interfaces file is set to use a static IP. Fix that and see if it helps.
 
Old 05-23-2015, 09:52 AM   #5
atux_null
Member
 
Registered: Mar 2015
Distribution: debian 12, ubuntu 22.04
Posts: 65

Original Poster
Rep: Reputation: Disabled
i contacted the admin of the wifi network and gave me a static IP, as i thought it might help me.
------------------------------------------
i had a typo and now i can ping in 8.8.8.8 and www.google.com
when i plug in pc in eth0 i cannot go anywhere.

Last edited by atux_null; 05-23-2015 at 10:20 AM.
 
Old 05-29-2015, 04:02 AM   #6
Weapon S
Member
 
Registered: May 2011
Location: Netherlands
Distribution: Debian, Archlinux
Posts: 262
Blog Entries: 2

Rep: Reputation: 49
NetworkManager with nmcli is a fairly simple light-weight command line tool (that does require some configuration to be done). And wicd with wicd-curses provides a very user-friendly TUI.
 
Old 05-30-2015, 05:32 AM   #7
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by Weapon S View Post
NetworkManager with nmcli is a fairly simple light-weight command line tool (that does require some configuration to be done).
i don't know much about the topic discussed here, but i just wanted to confirm this.
nmcli's man page is well structured and helps one to go through the process of setting everything up.
once you have everything set up with nmcli, it either starts connecting automatically, or you can use nmtui (ncurses interface) to dis/connect.

Last edited by ondoho; 05-30-2015 at 05:33 AM.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] wifi problems. after updating to the latest linux-kernel wifi doesn't work. jhp8940 Linux - Newbie 7 09-11-2014 12:17 PM
LXer: Court Says WiFi Isn't Radio Because It's Not Audio; Therefore WiFi Sniffing Can Be Wiretapping LXer Syndicated Linux News 0 09-10-2013 05:42 PM
wifi works:how to connect to hotspot,with console?alternative to wifi-wiz assistant? frenchn00b Debian 7 10-30-2009 12:31 PM
FreeS/Wan Vs. OpenS/Wan Vs. StrongS/Wan bkankur Linux - Security 1 03-01-2005 09:27 AM
WAN : unable to ping to WAN ckl Linux - Networking 0 11-18-2004 01:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 06:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration