Networking Forums

Networking Forums > Computer Networking > Linux Networking > networking with ethernet and wlan in my box

Reply
Thread Tools Display Modes

networking with ethernet and wlan in my box

 
 
Norman Elliott
Guest
Posts: n/a

 
      06-25-2006, 09:44 PM
Hi,

I have a linux box running Linux kernel 2.6.12-18mdk Mandriva 2006
In it I have had a pci lan card for some time. It connects to the internet via my adsl
modem/router.

I have just put a wireless pci lan card in it as well.

I have a firewall at my ISP and on the modem/router so, as a temporary measure and to make
sure it didn't interfere with any connection attempts I disabled it on my Linux box.

I now have an old laptop with Win9Se and vector linux kernel sata-2.4.29 on it.

I have put a wireless lan card in it and am at present trying to get the laptop to connect
to the linux box and have access to the internet.

I am struggling as the laptop cannot connect properly.

For the linux box:
To start with I had a static ip address 192.168.1.100 for the eth0 card

and tried 192.168.1.50 for wlan0 card in Ad-hoc mode

On the laptop:
to start with I have tried to configure windows to connect.
The card was given an ip 0f 192.168.1.70

The software was configured to connect and found the wireless lan. It seemed to find the
linux wireless card with no trouble and connected to the wireless lan but that is all.

Ping got no replies and no site could be found either by name or ip address.

I then decided to set up dhcpd on my modem/router and set up both boxes to use dhcp
Addresses were assigned but I still can get no further.

/sbin/ifconfig shows:
eth0 Link encap:Ethernet HWaddr 00:0B:6A:BA:45:E9
inet addr:192.168.1.50 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::20b:6aff:feba:45e9/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6 errors:0 dropped:0 overruns:0 frame:0
TX packets:92 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1329 (1.2 KiB) TX bytes:12152 (11.8 KiB)
Interrupt:23 Base address:0xc000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:134 errors:0 dropped:0 overruns:0 frame:0
TX packets:134 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:20372 (19.8 KiB) TX bytes:20372 (19.8 KiB)

wlan0 Link encap:Ethernet HWaddr 00:15:F2:511:EA
inet6 addr: fe80::215:f2ff:fe51:d1ea/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:103 errors:0 dropped:0 overruns:0 frame:0
TX packets:67 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:14468 (14.1 KiB) TX bytes:10386 (10.1 KiB)
Memory:dfffa000-dfffbfff

wlan0:9 Link encap:Ethernet HWaddr 00:15:F2:511:EA
inet addr:127.255.255.255 Bcast:127.255.255.255 Mask:255.0.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Memory:dfffa000-dfffbfff

netstat -rn gives:
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0


I am by no means an expert at this so wonder if you guys can point me in the right direction?
tia,
Norm
 
Reply With Quote
 
 
 
 
Norman Elliott
Guest
Posts: n/a

 
      06-26-2006, 05:38 PM
Norman Elliott wrote:
> Hi,
>
> I have a linux box running Linux kernel 2.6.12-18mdk Mandriva 2006
> In it I have had a pci lan card for some time. It connects to the
> internet via my adsl modem/router.
>
> I have just put a wireless pci lan card in it as well.
>
> I have a firewall at my ISP and on the modem/router so, as a temporary
> measure and to make sure it didn't interfere with any connection
> attempts I disabled it on my Linux box.
>
> I now have an old laptop with Win9Se and vector linux kernel sata-2.4.29
> on it.
>
> I have put a wireless lan card in it and am at present trying to get the
> laptop to connect to the linux box and have access to the internet.
>
> I am struggling as the laptop cannot connect properly.
>
> For the linux box:
> To start with I had a static ip address 192.168.1.100 for the eth0 card
>
> and tried 192.168.1.50 for wlan0 card in Ad-hoc mode
>
> On the laptop:
> to start with I have tried to configure windows to connect.
> The card was given an ip 0f 192.168.1.70
>
> The software was configured to connect and found the wireless lan. It
> seemed to find the linux wireless card with no trouble and connected to
> the wireless lan but that is all.
>
> Ping got no replies and no site could be found either by name or ip
> address.
>
> I then decided to set up dhcpd on my modem/router and set up both boxes
> to use dhcp
> Addresses were assigned but I still can get no further.
>
> /sbin/ifconfig shows:
> eth0 Link encap:Ethernet HWaddr 00:0B:6A:BA:45:E9
> inet addr:192.168.1.50 Bcast:192.168.1.255 Mask:255.255.255.0
> inet6 addr: fe80::20b:6aff:feba:45e9/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:6 errors:0 dropped:0 overruns:0 frame:0
> TX packets:92 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:1329 (1.2 KiB) TX bytes:12152 (11.8 KiB)
> Interrupt:23 Base address:0xc000
>
> lo Link encap:Local Loopback
> inet addr:127.0.0.1 Mask:255.0.0.0
> inet6 addr: ::1/128 Scope:Host
> UP LOOPBACK RUNNING MTU:16436 Metric:1
> RX packets:134 errors:0 dropped:0 overruns:0 frame:0
> TX packets:134 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:20372 (19.8 KiB) TX bytes:20372 (19.8 KiB)
>
> wlan0 Link encap:Ethernet HWaddr 00:15:F2:511:EA
> inet6 addr: fe80::215:f2ff:fe51:d1ea/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:103 errors:0 dropped:0 overruns:0 frame:0
> TX packets:67 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:14468 (14.1 KiB) TX bytes:10386 (10.1 KiB)
> Memory:dfffa000-dfffbfff
>
> wlan0:9 Link encap:Ethernet HWaddr 00:15:F2:511:EA
> inet addr:127.255.255.255 Bcast:127.255.255.255 Mask:255.0.0.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> Memory:dfffa000-dfffbfff
>
> netstat -rn gives:
> Kernel IP routing table
> Destination Gateway Genmask Flags MSS Window irtt
> Iface
> 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0
> eth0
> 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0
> eth0
>
>
> I am by no means an expert at this so wonder if you guys can point me in
> the right direction?
> tia,
> Norm


All sorted,
Needed wlan0 on different subnet to eth0.
Set laptop Ip address in same range as wlan0 card
with gateway ip address to that of wlan card.

then used Mandriva Control centre on main PC to allow internet sharing.
Now all seems to work

ifconfig :
eth0 Link encap:Ethernet HWaddr 00:0B:6A:BA:45:E9
inet addr:192.168.1.30 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::20b:6aff:feba:45e9/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4487 errors:0 dropped:0 overruns:0 frame:0
TX packets:9845 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3582010 (3.4 MiB) TX bytes:849985 (830.0 KiB)
Interrupt:23 Base address:0xc000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1951 errors:0 dropped:0 overruns:0 frame:0
TX packets:1951 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:127518 (124.5 KiB) TX bytes:127518 (124.5 KiB)

wlan0 Link encap:Ethernet HWaddr 00:15:F2:511:EA
inet addr:192.168.2.30 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::215:f2ff:fe51:d1ea/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1036 errors:0 dropped:0 overruns:0 frame:0
TX packets:1008 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:120675 (117.8 KiB) TX bytes:568176 (554.8 KiB)
Memory:dfffa000-dfffbfff

nestat -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 wlan0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0


Norm
 
Reply With Quote
Reply

Thread Tools
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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Networking XP and 2K via ethernet and wifi Doki Home Networking 12 11-03-2007 10:20 PM
Networking: don't get WLAN working; connection manager freezing [x-post] Oliver Meister Linux Networking 2 04-20-2006 06:32 AM
Running rdate after networking connection with WLAN and DHCP isestablished Daniel =?ISO-8859-1?Q?B=F6hmer?= Linux Networking 1 02-23-2006 12:24 PM
Using Ethernet scans to locate WLAN APs ? Povl H. Pedersen Wireless Internet 21 11-28-2004 09:01 PM
wlan networking error dustin Linux Networking 2 08-01-2004 06:35 PM



1 2 3 4 5 6 7 8 9 10 11