LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 08-15-2009, 11:58 AM   #1
RVF16
Member
 
Registered: May 2008
Distribution: Centos 5.9
Posts: 53

Rep: Reputation: 15
Ethernet internet and wireless adhoc printer connections simultaneously


Hello to all.

I have the following machine :
laptop : Dell Inspiron E1505
Wireless : Intel Pro Wireless 3945 (ipw3945-1.2.2 + ipw3945d-1.7.22 + ipw3945-ucode-1.14.2)
Printer : HP C4580 Photosmart wireless (hplip-3.9.8)
Ethernet : Broadcom Corporation BCM4401-B0100Base-TX (b44.ko)
External Modem : Siemens CL-110 ADSL
OS : Fedora 6+11 + Ubuntu 9.04 (currently on fc6)

The external modem is connected via the laptop ethernet and provides the internet connection. I am using static IP :
eth0

BCM4401
IPADDR=192.168.1.3
NETMASK=255.255.255.0
GATEWAY=192.168.1.1

CL-110
LAN IP ADDR=192.168.1.1

The printer is connected via wireless adhoc to the laptop's IPW3945 wireless card. I am using static IP :
eth1:0

IPW3945 :
IPADDR=192.168.1.4
NETMASK=255.255.255.0
GATEWAY=192.168.1.5

HPC4580 :
IPADDR=192.168.1.5
NETMASK=255.255.255.0
GATEWAY=192.168.1.4

For some reason my wireless card appears as eth1 and not wlan0 since i added the printer connection for unknown reason.
I also have another wireless connection to a router (eth1:1) which i don't use at the moment.
I probably have messed things up with the IPs as i don't know exactly what i am doing but the 2 connections work great one at a time.
Problem is they don't work simultaneously. The wireless printer connection for some reason drops the ethernet internet.
Is it possible to have them both at the same time?
If so what am i doing wrong?

Thank you in advance.
Regards.

Last edited by RVF16; 08-15-2009 at 12:30 PM.
 
Old 08-15-2009, 03:13 PM   #2
RVF16
Member
 
Registered: May 2008
Distribution: Centos 5.9
Posts: 53

Original Poster
Rep: Reputation: 15
Solved

After finding similar threads i ended up playing around with the ips and changing the hpc4580 and ipw3945 ones (i had probably set 2 different networks in one previously) :

IPW3945 :
IPADDR=192.168.2.4
NETMASK=255.255.255.0

HPC4580 :
IPADDR=192.168.2.5
NETMASK=255.255.255.0

changed 3rd number (1) to (2)
and
deleted gateways

Everything works simultaneously.

Last edited by RVF16; 08-15-2009 at 03:21 PM.
 
Old 08-17-2009, 04:42 PM   #3
RVF16
Member
 
Registered: May 2008
Distribution: Centos 5.9
Posts: 53

Original Poster
Rep: Reputation: 15
firewall block

Hello again.

One more thing left.
It seems that my firewall is blocking the printer connection and so far i disable it everytime i want to print something.
Can anyone write the command(s) to unblock the above wireless adhoc network?
I am using firestarter and so far i have added only a few tcp and udp ports for torrent conectivity as exceptions but cannot imagine what is needed for this adhoc network.

Thank you in advance.
Regards.
 
Old 08-19-2009, 03:44 AM   #4
RVF16
Member
 
Registered: May 2008
Distribution: Centos 5.9
Posts: 53

Original Poster
Rep: Reputation: 15
Can anyone help?

I have tried to open every possible port via firestarter (according to several other threads) with no luck.
I still cannot connect to my printer when firestarter is enabled.

My printer is set (under system-config-printer) as :
Code:
hp:/net/Photosmart_C4500_series?ip=192.168.2.5
Code:
$ netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
192.168.2.0     0.0.0.0         255.255.255.0   U         0 0          0 eth1
192.168.1.0     0.0.0.0         255.255.255.0   U         0 0          0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth0
0.0.0.0         192.168.1.1     0.0.0.0         UG        0 0          0 eth0
Code:
$ ifconfig
eth0      Link encap:Ethernet  HWaddr X
          inet addr:192.168.1.3  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: X Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1444891 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1204193 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1415057447 (1.3 GiB)  TX bytes:287590175 (274.2 MiB)
          Interrupt:18 

eth1      Link encap:Ethernet  HWaddr X
          inet6 addr: X Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1 errors:0 dropped:96 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:155156 (151.5 KiB)  TX bytes:23544 (22.9 KiB)
          Interrupt:16 Base address:0x2000 Memory:efcff000-efcfffff 

eth1:0    Link encap:Ethernet  HWaddr X
          inet addr:192.168.2.4  Bcast:192.168.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:16 Base address:0x2000 Memory:efcff000-efcfffff
eth0 : ethernet internet connection (b44.ko)
eth1:0 : wireless adhoc printer connection (ipw3945.ko)

BCM4401
IPADDR=192.168.1.3
NETMASK=255.255.255.0
GATEWAY=192.168.1.1

CL-110
LAN IP ADDR=192.168.1.1

IPW3945 :
IPADDR=192.168.2.4
NETMASK=255.255.255.0

HPC4580 :
IPADDR=192.168.2.5
NETMASK=255.255.255.0

Last edited by RVF16; 08-20-2009 at 04:55 AM.
 
Old 11-18-2011, 01:25 AM   #5
ajaygarg
Member
 
Registered: Mar 2010
Location: New Delhi, India
Distribution: Fedora
Posts: 94

Rep: Reputation: 0
Try opening the ports using

Code:
system-config-firewall
 
  


Reply

Tags
adhoc, printer, wireless


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Are there any good wireless Internet connections out there? 3dz Linux - Wireless Networking 4 07-12-2008 04:38 PM
use simultaneously two network connections nima0102 Linux - Networking 4 10-28-2007 05:47 PM
Manage wired and wireless (WPA) internet connections rangalo Debian 6 04-23-2007 07:08 AM
wired and wireless internet connections. levicc00123 Linux - Laptop and Netbook 1 01-14-2005 08:55 PM
Ethernet and Wireless simultaneously? CelloJake Linux - Wireless Networking 2 08-18-2004 03:56 PM


All times are GMT -5. The time now is 03:40 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration