Garayed.com  

Go Back   Garayed.com > Linux
FAQ Members List Calendar Search Today's Posts Mark Forums Read


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-30-2008, 04:53 AM
zhengquan
 
Posts: n/a
Default strange wireless problem that I don't understand

Hello,
My interfaces file looks like this

auto
lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.2.4
netmask 255.255.255.0
gateway 192.168.2.1

auto wlan0
iface wlan0 inet dhcp

1 I connect the net cable and boot the computer,
I have network connection, I can ping 192.168.2.1 and I can connect to
the internet.

2 I disconnect the net cable and sudo /etc/init.d/networking restart
the system tells me that it receives a dhcp offer and got ip
192.168.2.5 for wlan0(the wireless card). After this, I try to ping
192.168.2.1(the router), I got unreachable
message. and it shows that my ip is still 192.168.2.4(static ip of
eth0).

3 I sudo ifdown eth0
and everything is ok, I can ping 192.168.2.1 and I can connect to the
internect.


What confuses me is that why do I have to ifdown eth0 to change the
computer ip to the wireless ip?

Thanks.
Zhengquan


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-30-2008, 09:50 AM
Bill Marcum
 
Posts: n/a
Default Re: strange wireless problem that I don't understand

On 2008-06-30, zhengquan <zhang.zhengquan@gmail.com> wrote:
>
>
> Hello,
> My interfaces file looks like this
>
> auto
> lo
> iface lo inet loopback
>
> auto eth0
> iface eth0 inet static
> address 192.168.2.4
> netmask 255.255.255.0
> gateway 192.168.2.1
>
> auto wlan0
> iface wlan0 inet dhcp
>
> 1 I connect the net cable and boot the computer,
> I have network connection, I can ping 192.168.2.1 and I can connect to
> the internet.
>
> 2 I disconnect the net cable and sudo /etc/init.d/networking restart
> the system tells me that it receives a dhcp offer and got ip
> 192.168.2.5 for wlan0(the wireless card). After this, I try to ping
> 192.168.2.1(the router), I got unreachable
> message. and it shows that my ip is still 192.168.2.4(static ip of
> eth0).
>
> 3 I sudo ifdown eth0
> and everything is ok, I can ping 192.168.2.1 and I can connect to the
> internect.
>
>
> What confuses me is that why do I have to ifdown eth0 to change the
> computer ip to the wireless ip?
>

I think the problem is that you are trying to use two addresses in the
same subnet.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 07:29 PM.




LinkBacks Enabled by vBSEO 3.0.0 © 2007, Crawlability, Inc.