how to get a wifi [wlan0 - dhcp] and static [eth0] to co-exist

Asked by mix

I am 'learning' linux using ubuntu 8.10 and want to configure as follows: A pc tower on ubuntu 8.10 - using wicd not network manager - with an internet connection over wifi - DHCP - to a BT Home Hub and also an ethernet card - eth0 - connection to a winXP laptop using a crossover cable to access the printer connected to the laptop via usb. I can successfully configure the wifi connection on both pc's and they co-exist into the hub fine. I have declared as a static connection on the ubuntu pc an the winXP pc, and can 'see' the printshare and print documents from the ubuntu box. However - according to wicd and ifconfig - I can only achieve a 'connection' on either wlan0 or eth0, not as I want, both co-existing together so I can surf and print at the same time [as I was able to do when both pc's ran WinXP - I think!]

Can someone point out my error(s) or link me to documentation the deals with setting up a static-crossover cable connection alongside dhcp wifi.
regards

mIX

                                                                                                                                                               usb-------[printer]
                                                                                                                                                                 |
[ ubuntu box]->eth0-----------------------------crossover RJ45 ethernet cable------------------------------------------RJ45->[winxp box]
      DHCP DHCP
       wlan0 wifi
          |_______________________________________________________________________________________|
                                                                                   |
                                                                                 wifi
                                                                          [BT Home hub]
                                                                                    |
                                                                                   V
                                                                            internet

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Andres Rodriguez
Solved:
Last query:
Last reply:
Revision history for this message
Andres Rodriguez (andreserl) said :
#1

Well actually Ubuntu 8.10 allows using both wlan0 and eth0. However, One thing i always do is to configure eth0 statically in /etc/network/interfaces and use network-manager for the wlan0. Do you need an example of a sample configuration of eth0??

Revision history for this message
mix (mcrammer) said :
#2

Andres E. Rodriguez Lazo wrote:
> Your question #54342 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/54342
>
> Status: Open => Needs information
>
> Andres E. Rodriguez Lazo requested for more information:
> Well actually Ubuntu 8.10 allows using both wlan0 and eth0. However, One
> thing i always do is to configure eth0 statically in
> /etc/network/interfaces and use network-manager for the wlan0. Do you
> need an example of a sample configuration of eth0??
>
>
Yes please Andres - I would appreciate any help I can get - I can 'use'
the eth0 crossover cable connection, and also go online using he wifi,
but they are mutually exclusive - I cant get one working without
dropping the other.

Mick Crammer

Revision history for this message
Best Andres Rodriguez (andreserl) said :
#3

Well, what i usually do is use network manager for wlan0. For eth0 I always configure it manually at /etc/network/interfaces like this:

auto eth0
iface eth0 inet static
        address 192.168.X.X
        netmask 255.255.255.0
        gateway 192.168.X.X

notice that you need to change the IP address and netmask to match your settings. The gateway in crossover conections is not needed. Hope this helps.

Revision history for this message
mix (mcrammer) said :
#4

Andres E. Rodriguez Lazo wrote:
> Your question #54342 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/54342
>
> Status: Open => Answered
>
> Andres E. Rodriguez Lazo proposed the following answer:
> Well, what i usually do is use network manager for wlan0. For eth0 I
> always configure it manually at /etc/network/interfaces like this:
>
> auto eth0
> iface eth0 inet static
> address 192.168.X.X
> netmask 255.255.255.0
> gateway 192.168.X.X
>
> notice that you need to change the IP address and netmask to match your
> settings. The gateway in crossover conections is not needed. Hope this
> helps.
>
>
Thanks for that Andres - I'll try this in the morning - had enough today!

I'll let you know the outcome

regads
Mick

Revision history for this message
mix (mcrammer) said :
#5

Well, I'm now running low on ideas as to how to solve my dilema. I have wicd in place and thatis working fine, I have (re) configured the static link between the 2 ethernet cards but still do not havr success in printing from the ubuntu box via te winxp box . I can print but the dhcp connection to my Homehub & hence wifi to the internet has to be "connected" [via wicd] which in turn disconnects the wired connection!

I amnw wondering if the connection I should be usingis 'local-link only", but am struggling to understand how to do it.

The quest continues

mIX

Revision history for this message
Launchpad Janitor (janitor) said :
#6

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
mix (mcrammer) said :
#7

Update - I finally resolved my problem, but not on Ubuntu 8.10, rather on Mint v6.0 [Felicia]. I downloaded this and on installation ALL the 'problems' evaporated!.

Congrats to the development team 'cos this installation is the business!

Revision history for this message
mix (mcrammer) said :
#8

Update - I finally resolved my problem, but not on Ubuntu 8.10, rather on Mint v6.0 [Felicia]. I downloaded this and on installation ALL the 'problems' evaporated!.

Congrats to the development team 'cos this installation is the business!

Revision history for this message
mix (mcrammer) said :
#9

Thanks Andres E. Rodriguez Lazo, that solved my question.