Gentoo Archives: gentoo-user

From: Nick Rout <nick@×××××××.nz>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] sub-net 0.0.0.0
Date: Fri, 26 Aug 2005 20:43:55
Message-Id: 1125088476.11017.1.camel@sf.rout.dyndns.org
In Reply to: Re: [gentoo-user] sub-net 0.0.0.0 by Joseph
1 On Fri, 2005-08-26 at 11:50 -0600, Joseph wrote:
2 > On Fri, 2005-08-26 at 13:38 -0400, Willie Wong wrote:
3 > > On Fri, Aug 26, 2005 at 10:02:08AM -0600, Joseph wrote:
4 > > > I have a device with an IP 192.168.0.1 which I need to access via
5 > > > browser.
6 > > > My PC gets an IP via DHCP from the router.
7 > > > What should I use for gateway? I've tired 192.168.0.0 192.168.0
8 > >
9 > > huh? if you get the IP via DHCP, doesn't it also set up the gateway?
10 >
11 > No, I set my firewall/router with my numbers. My main network is set to
12 > Gateway 10.0.0.1 and DHCP pool range (so other devices an get the IP
13 > automatically) is 10.0.0.150 - 10.0.0.180
14 >
15 > But the deice I have has a preset from the factory static IP 192.168.0.1
16 > If they set it to anything else like 192.168.0.10 or 192.168.0.100 it
17 > would be easy.
18 > I could set my gateway to 192.168.0.1 and DHCP pool range to
19 > 192.168.0.10 to 192.168.0.100 and it would work.
20 >
21 > When I try to set my gateway to 192.168.0.0 my DHCP pool range
22 > 192.168.0.1 to 192.168.0.100 doesn't work.
23 >
24 > I'm using PC base firewall freesco.
25
26
27 Try this:
28
29 on your desktop, which normally has a 10.0.0.x address, add a virtual
30 entry for eth0, in other words give it another IP address in the subnet
31 needed by the other device:
32
33 something like:
34
35 ifconfig eth0:1 192.168.0.10 up
36
37 and you should be able to communicate directly with the device.
38
39 > --
40 > #Joseph
41 --
42 Nick Rout <nick@×××××××.nz>
43
44 --
45 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] sub-net 0.0.0.0 Joseph <syscon@×××××××××.com>