Florellon
Apr 27, 2009, 01:35 PM
I have two laptops, one running Vista and the other FreeBSD (which I have just installed and am currently learning to use). The Vista laptop has a wireless network card, the other laptop doesn't. At the moment I am connecting to the internet wirelessly on my Vista laptop; the wireless network card is configured like this:
IP: 192.168.2.15
Subnet mask: 255.255.255.0
Default Gateway: 192.168.2.1
(192.168.2.1 is the IP address of my wireless router.)
As my FreeBSD laptop doesn't have wireless capability (and I am out of range of available ethernet cables) I am trying to set it up to connect to the internet via my Vista laptop, using an ethernet crossover cable between the two. Unfortunately, I don't really know how to do this. As I understand it, the crossover link between the two wired network cards needs to be in a different subnet to the wireless link between my Vista laptop and the router (since the FreeBSD laptop can't get to the router in one hop). So somehow my Vista laptop needs to be set up as a gateway between these two subnets, so that traffic from the FreeBSD laptop can go like this:
FreeBSD laptop <==[wired]==> Vista laptop <==[wireless]==> Router <==> Internet
So presumably the IP addresses would look something like this:
192.168.1.2 [FreeBSD, wired]
192.168.1.1 [Vista, wired]
192.168.2.15 [Vista, wireless]
192.168.2.1 [Wireless router]
This is how it is set up at the moment. I can ping 192.168.1.1 from 192.168.1.2 (so that connection works), but I can't figure how to get the Vista laptop acting as a gateway to enable 192.168.1.2 (the FreeBSD laptop) to reach the wider world.
Is this correct/possible? Am I doing something completely wrong? I'd appreciate any help please! Thank you :)
IP: 192.168.2.15
Subnet mask: 255.255.255.0
Default Gateway: 192.168.2.1
(192.168.2.1 is the IP address of my wireless router.)
As my FreeBSD laptop doesn't have wireless capability (and I am out of range of available ethernet cables) I am trying to set it up to connect to the internet via my Vista laptop, using an ethernet crossover cable between the two. Unfortunately, I don't really know how to do this. As I understand it, the crossover link between the two wired network cards needs to be in a different subnet to the wireless link between my Vista laptop and the router (since the FreeBSD laptop can't get to the router in one hop). So somehow my Vista laptop needs to be set up as a gateway between these two subnets, so that traffic from the FreeBSD laptop can go like this:
FreeBSD laptop <==[wired]==> Vista laptop <==[wireless]==> Router <==> Internet
So presumably the IP addresses would look something like this:
192.168.1.2 [FreeBSD, wired]
192.168.1.1 [Vista, wired]
192.168.2.15 [Vista, wireless]
192.168.2.1 [Wireless router]
This is how it is set up at the moment. I can ping 192.168.1.1 from 192.168.1.2 (so that connection works), but I can't figure how to get the Vista laptop acting as a gateway to enable 192.168.1.2 (the FreeBSD laptop) to reach the wider world.
Is this correct/possible? Am I doing something completely wrong? I'd appreciate any help please! Thank you :)