Re: networking with ethernet and wlan in my box
- From: Norman Elliott <nelliott@xxxxxxxxxxx>
- Date: Mon, 26 Jun 2006 18:38:50 +0100
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:51:D1: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:51:D1: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:51:D1: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
.
- References:
- networking with ethernet and wlan in my box
- From: Norman Elliott
- networking with ethernet and wlan in my box
- Prev by Date: Re: hardware for debian NAT router
- Next by Date: Re: HOW TO MAKE EASY MONEY!!!!!!!!
- Previous by thread: networking with ethernet and wlan in my box
- Next by thread: How to know library version installed
- Index(es):
Relevant Pages
|