|
|
On Tue, 10 May 2005 23:33:40 +0200, John Johansson wrote:
> I'm trying to set up a home network at home between my Slackware box and
> a laptop running Win XP, but i don't have a clue on how to do it. I've
> got 2 nics in my slackware box = eth0 - eth1. eth1 is for internet and
> is set up correctly, and now i want eth1 to serve my Win XP laptop. Can
> someone give me some hints on how to do this? With dhcpd? How? Here's my
> output from ifconfig:
>
> eth0 Link encap:Ethernet HWaddr 00:08:A1:73:56:13
> UP BROADCAST NOTRAILERS MULTICAST MTU:1500 Metric:1
> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:0 (0.0 b) TX bytes:7080 (6.9 Kb)
> Interrupt:18 Base address:0xb000
>
> eth1 Link encap:Ethernet HWaddr 00:0F:EA:4B:25:A1
> inet addr:213.67.250.59 Bcast:213.67.250.255 Mask:255.255.255.0
> UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:4482290 errors:0 dropped:0 overruns:0 frame:0
> TX packets:5559116 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:846539024 (807.3 Mb) TX bytes:1855402329 (1769.4 Mb)
> Interrupt:23 Base address:0xe800
>
> lo Link encap:Local Loopback
> inet addr:127.0.0.1 Mask:255.0.0.0
> UP LOOPBACK RUNNING MTU:16436 Metric:1
> RX packets:3680 errors:0 dropped:0 overruns:0 frame:0
> TX packets:3680 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:164624 (160.7 Kb) TX bytes:164624 (160.7 Kb)
>
> ppp0 Link encap:Point-to-Point Protocol
> inet addr:192.168.0.1 P-t-P:192.168.0.2 Mask:255.255.255.255
> UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
> RX packets:42648 errors:0 dropped:0 overruns:0 frame:0
> TX packets:10525 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:3
> RX bytes:2076292 (1.9 Mb) TX bytes:1787396 (1.7 Mb)
>
> ppp0 is connected to my other laptop running slackware aswell.
>
> /john
Don't you mean you want eth0 to be the local IP? Well, you could just
create a non-routable set of IP addresses for each system like the Linux
box could be 192.168.1.2 and the XP box could be 192.168.1.3.
If there is a hub inbetween them, you could plug cat5 from each system into
the hub or just use a crossover cable between them.
You could make the linux box become a dhcp server pretty easily by
installing the dhcp server package. I did this here and had a dhcp server
working on debian in about 15 minutes. Now if I plug in another system it
gets a IP address. You could install samba on the linux box next and let it
serve up your files to the XP box. You could install some open source
backup software and then backup both the XP and linux box perhaps to a
archive drive or something.
But first you should get some ping action happening between the two and
assign some static IPs that each can see. You could install a ethernet
card in the laptop and let it do ethernet. YOu could get wild and do
wireless by getting a linksys access point. I used to use a WAP54G at work
and it worked pretty well. Then the laptop could get an IP address from
your dhcp server or the WAP54G could be the dhcp server.
The horizon is wide open and you have lots of places to play and learn :)
--
Michael Perry | do or do not. There is no try. -Master Yoda
mperry@xxxxxxxxxxxxxx | http://www.lnxpowered.org
|
|