Networking Forums

Networking Forums > Computer Networking > Linux Networking > Linux to net via Windows XP gateway

Reply
Thread Tools Display Modes

Linux to net via Windows XP gateway

 
 
tbarwell@swbell.net
Guest
Posts: n/a

 
      09-14-2007, 03:11 PM
Greetings.

I have two Linux machines I want to connect to the net via Windows XP
machine currently conneted to the net via DSL. This is not my W-XP
machine or my DSL line and I am not allowed to change this. I am
allowed to connect via Windows XP ICS.

I have installed a 2nd NIC in Windows, down loaded drivers and
installed it.
W-XP assures me the NIC is working. I have set up the bridge and it is
up and running and enabled.

Ipconfig /all gets me:

Hostname Cowputer (Yes. it's a Dell)
Prinmary DNS Suffix (This is blank)
IP Routing Enabled (No)
WINS Proxy enabled (No)

Ethernet Adapter Network Bridge

Connection Specific DNS Suffix (blank)
Description MAC bridge miniport
Physical Addresss (MAC number here)
DHCP Enabled yes
Autoconfiguration Enabled yes
IP Address 69.151.200.34
Subnet Mask 255.255.255.0
Default Gateway 192.168.0.1
DHCP Server 192.168.0.1
DNS Servers 192.168.0.1

Firewall is on.

I can see both netcards icons are in the lower right hand corner,
both "connected".
Nic# 2 is working at 100 mbps.

Now my linux boxes.

All are set up to a ethernet hub. All have their hosts files set and
I can ping each other. I have a cable from the hub to the Windows Box.
I have tested the cable and it works

I added "192.168.0.1 Cowputer": to each Linux machine's hosts file,
but I get "network unreachable" if I try to ping Cowputer.

I need to add route tables but here I am stuck. What do I need to do
to get my Linux machines Itchy and Scratchy to connect to the net via
Cowputer? Do I need Cowputer's IP Routing enabled?

A big, fat, live DSL line to use and I can't get to it. I tried
figuring it out and did several route add attempts but I just cannot
find enough info on doing this to get it
done.

Where do I go from here?

Cheerful Charlie

 
Reply With Quote
 
 
 
 
Moe Trin
Guest
Posts: n/a

 
      09-15-2007, 12:22 AM
On Fri, 14 Sep 2007, in the Usenet newsgroup comp.os.linux.networking, in
article <(E-Mail Removed) om>,
(E-Mail Removed) wrote:

NOTE: Posting from groups.google.com (or some web-forums) dramatically
reduces the chance of your post being seen. Find a real news server.

> I have two Linux machines I want to connect to the net via Windows XP
>machine currently conneted to the net via DSL. This is not my W-XP
>machine or my DSL line and I am not allowed to change this. I am
>allowed to connect via Windows XP ICS.


I can't help you on the XP setup - I got rid of windoze before they
discovered the concept of networking.

>I have installed a 2nd NIC in Windows, down loaded drivers and
>installed it.
>W-XP assures me the NIC is working. I have set up the bridge and it is
>up and running and enabled.


I'll take your word for it

>Ipconfig /all gets me:
>
>Hostname Cowputer (Yes. it's a Dell)


You know, we shoot people for puns like that ;-)

>IP Routing Enabled (No)


That might need to be 'Yes'

>Autoconfiguration Enabled yes


Hopefully it knows what's going on. Can it talk to the world?

>IP Address 69.151.200.34
>Subnet Mask 255.255.255.0


That may be reasonable for the Internet side

>Default Gateway 192.168.0.1
>DHCP Server 192.168.0.1
>DNS Servers 192.168.0.1


I don't do windoze, but this doesn't sound exactly correct. The default
should be some host on the same network as 69.151.200.34 (the Internet)
and the DNS server should be something outside as well. When I ask my
name server about 69.151.200.34, it refers me to ns1.swbell.net at
151.164.1.1, and ns2.swbell.net at 151.164.11.218. They may or may not
be the DNS server you need to use.

>Now my linux boxes.
>
>All are set up to a ethernet hub. All have their hosts files set and
>I can ping each other. I have a cable from the hub to the Windows Box.
>I have tested the cable and it works
>
>I added "192.168.0.1 Cowputer": to each Linux machine's hosts file,
>but I get "network unreachable" if I try to ping Cowputer.


What does '/sbin/ifconfig -a' and '/sbin/route -n' show on the Linux boxes?
Let's assume they are on 192.168.10.0/24 with addresses 192.168.10.2 and
192.168.10.3. Let's further assume the windoze box has the second NIC as
192.168.10.1. 'ifconfig' should show "my" address, right mask, network
and broadcast, and little or no error counts. Perhaps something like

eth0 Link encap:10Mbps Ethernet HWaddr 02:60:8C:57:C0:F7
inet addr:192.168.10.3 Bcast:192.168.10.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:100907 errors:0 dropped:0 overruns:0 frame:0
TX packets:92050 errors:0 dropped:0 overruns:0 carrier:0
collisions:154
Interrupt:10 Base address:0x300

The routing table should show the local route AND a route to the world,
using the windoze second NIC as gateway - perhaps

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.10.0 0.0.0.0 255.255.255.0 U 0 0 89948 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 388 lo
0.0.0.0 192.168.10.1 0.0.0.0 UG 0 0 2673 eth0

The windoze data (ipconfig is one, 'route print' for the other) is going
to have to show similar concepts - except that the 'default route' to
the world will be pointing out the DSL interface at some outside box.

>I need to add route tables but here I am stuck. What do I need to do
>to get my Linux machines Itchy and Scratchy to connect to the net via
>Cowputer?


What do you need to talk to the windoze box? OK - it's in the first line,
so send things directly. What do you need to talk to the world? Well,
the world isn't connected to this wire, so send the packets to the
windoze box for forwarding.

>Do I need Cowputer's IP Routing enabled?


My guess - yes

>A big, fat, live DSL line to use and I can't get to it. I tried
>figuring it out and did several route add attempts but I just cannot
>find enough info on doing this to get it done.


Have you looked at the HOWTOs? You haven't told us what the Linux
distribution is, so we can't tell you what files to stroke, or what
GUI icon to click on - that would help.

>Where do I go from here?


-rw-rw-r-- 1 gferg ldp 40490 Jun 22 2000 Home-Network-mini-HOWTO
-rw-rw-r-- 1 gferg ldp 203891 Sep 29 2004 NET3-4-HOWTO
-rw-rw-r-- 1 gferg ldp 45604 Apr 18 2006 Networking-Overview-HOWTO
-rw-rw-r-- 1 gferg ldp 71626 Apr 4 2004 Unix-and-Internet-Fundamentals-HOWTO

Old guy

 
Reply With Quote
 
Andy Ruddock
Guest
Posts: n/a

 
      09-17-2007, 12:40 PM
On Sep 14, 5:11 pm, tbarw...@swbell.net wrote:
> Greetings.
>
> I have two Linux machines I want to connect to the net via Windows XP
> machine currently conneted to the net via DSL. This is not my W-XP
> machine or my DSL line and I am not allowed to change this. I am
> allowed to connect via Windows XP ICS.
>
> I have installed a 2nd NIC in Windows, down loaded drivers and
> installed it.
> W-XP assures me the NIC is working. I have set up the bridge and it is
> up and running and enabled.
>
> Ipconfig /all gets me:
>
> Hostname Cowputer (Yes. it's a Dell)
> Prinmary DNS Suffix (This is blank)
> IP Routing Enabled (No)
> WINS Proxy enabled (No)
>
> Ethernet Adapter Network Bridge
>
> Connection Specific DNS Suffix (blank)
> Description MAC bridge miniport
> Physical Addresss (MAC number here)
> DHCP Enabled yes
> Autoconfiguration Enabled yes
> IP Address 69.151.200.34
> Subnet Mask 255.255.255.0
> Default Gateway 192.168.0.1
> DHCP Server 192.168.0.1
> DNS Servers 192.168.0.1
>
> Firewall is on.
>
> I can see both netcards icons are in the lower right hand corner,
> both "connected".
> Nic# 2 is working at 100 mbps.
>
> Now my linux boxes.
>
> All are set up to a ethernet hub. All have their hosts files set and
> I can ping each other. I have a cable from the hub to the Windows Box.
> I have tested the cable and it works
>
> I added "192.168.0.1 Cowputer": to each Linux machine's hosts file,
> but I get "network unreachable" if I try to ping Cowputer.
>
> I need to add route tables but here I am stuck. What do I need to do
> to get my Linux machines Itchy and Scratchy to connect to the net via
> Cowputer? Do I need Cowputer's IP Routing enabled?
>
> A big, fat, live DSL line to use and I can't get to it. I tried
> figuring it out and did several route add attempts but I just cannot
> find enough info on doing this to get it
> done.
>
> Where do I go from here?
>
> Cheerful Charlie


I think you may be better off by not bridging the network interfaces.
Allocate a fixed IP address to the new network card in XP, say
192.168.10.254/255.255.255.0
Allocate fixed IP addresses to the Linux boxes
192.168.10.1/255.255.255.0 & 192.168.10.2/255.255.255.0
Setup default gateway on Linux boxes to be 192.168.10.254
Enable routing & internet sharing on XP.

 
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
VPN through Linux gateway to Windows LAN rduke15@gmail.com Linux Networking 1 05-23-2007 05:25 PM
WINDOWS 2003 VPN SERVER BEHIND LINUX GATEWAY Nicolas Linux Networking 6 11-15-2006 11:40 PM
Setting up a Windows VPN through a Fedora Linux gateway Carlos Moreno Linux Networking 3 05-27-2005 05:44 AM
Linux gateway windows network neighborhood Bucky Linux Networking 1 02-21-2005 12:21 PM
Windows XP VPN server behind Linux gateway Markus Linux Networking 1 01-21-2005 03:18 PM



1 2 3 4 5 6 7 8 9 10 11