Re: [gentoo-user] sub-net 0.0.0.0 [SOLVED]

2005-08-28 Thread Nick Rout
On Sat, 2005-08-27 at 23:35 -0600, Joseph wrote:
> On Sat, 2005-08-27 at 10:23 +0100, Neil Bothwick wrote:
> > On Fri, 26 Aug 2005 17:20:12 -0600, Joseph wrote:
> > 
> > > Is there a way to check what IP the device has on the network?
> > > I know the device MAC address and when I plug it IN, it obtains one of
> > > the IP via DHCP.   With 
> > > arp -a IP
> > > arp -e 
> > > I can only check the MAC address.   Is there a way to other way around. 
> > 
> > Try arp -a
> 
> Very closed.  but better yet is:
> Knowing MAC address but looking for IP
> tcpdump -e -i eth0 |grep -i "00:09:45:52:04:da"
> Since I know the MAC address, the above command will capture the IP
> address of the device when plugged into the server.
> 
> Knowing IP address but looking for MAC
> ping IP
> arp -e

of course arp will only work if the device has actually done anything on
the network within arp's cache period. I just tried arp -a and found my
wireless AP did not appear in the list, probably because I haven't used
wireless for a few days. I pinged the (known) address and then tried
again and it showed up. 

> 
> -- 
> #Joseph
-- 
Nick Rout <[EMAIL PROTECTED]>

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] sub-net 0.0.0.0 [SOLVED]

2005-08-27 Thread Joseph
On Sat, 2005-08-27 at 10:23 +0100, Neil Bothwick wrote:
> On Fri, 26 Aug 2005 17:20:12 -0600, Joseph wrote:
> 
> > Is there a way to check what IP the device has on the network?
> > I know the device MAC address and when I plug it IN, it obtains one of
> > the IP via DHCP.   With 
> > arp -a IP
> > arp -e 
> > I can only check the MAC address.   Is there a way to other way around. 
> 
> Try arp -a

Very closed.  but better yet is:
Knowing MAC address but looking for IP
tcpdump -e -i eth0 |grep -i "00:09:45:52:04:da"
Since I know the MAC address, the above command will capture the IP
address of the device when plugged into the server.

Knowing IP address but looking for MAC
ping IP
arp -e

-- 
#Joseph
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] sub-net 0.0.0.0

2005-08-27 Thread Neil Bothwick
On Fri, 26 Aug 2005 17:20:12 -0600, Joseph wrote:

> Is there a way to check what IP the device has on the network?
> I know the device MAC address and when I plug it IN, it obtains one of
> the IP via DHCP.   With 
> arp -a IP
> arp -e 
> I can only check the MAC address.   Is there a way to other way around. 

Try arp -a


-- 
Neil Bothwick

Never underestimate the bandwidth of a station wagon full of tapes!


pgpQHNFbfv8Nz.pgp
Description: PGP signature


Re: [gentoo-user] sub-net 0.0.0.0

2005-08-26 Thread William Kenworthy
This seems to be similar to the dlink adsl modem I am using (no routing
function).

Think of the 192.168.0.0 network as being the network between the modem
and the gateway machine.  In my case, the 10. (equiv) networks are on
the internal side of the gateway.  My gateway machine runs dhcp on eth0
(the 192.168.0.0/24 network).  When the adsl modem is unlocked, I get a
192.168.0.2 address from the adsl modem.  When locked, the 192.168.0.2
is replaced by the ISP allocated address.  The default gateway then
becomes the *ISP end* (far) of the adsl connection, and is normally set
by dhcp on your gateway machine.  The modem web server is always
reachable via 192.168.0.1, even after the ISP allocated
addresses/gateway are set.

In my case
1) ISP -> unlocked -> adsl modem -> 192.168.0.1 -> 192.168.0.2 ->gateway
-> 192.168.1.x

2) ISP -> x.x.x.x -> adsl modem -> x.x.x.(x-1) -> gateway -> 192.168.1.x
||
-> 192.168.0.1 ->
Edited route -n for my gateway:
Kernel IP routing table
Destination Gateway Genmask Flags Metric RefUse
Iface
192.168.1.0 0.0.0.0 255.255.255.0   U 0  00
eth1
192.168.43.00.0.0.0 255.255.255.0   U 0  00
eth2
x.x.x.00.0.0.0 255.255.255.0   U 0  00 eth0
127.0.0.0   127.0.0.1   255.0.0.0   UG0  00
lo
0.0.0.0 x.x.x.21   0.0.0.0 UG0  00 eth0


the .43 is a wireless network
the x.x.x.x is my ISP dhcp allocated IP as set by dhcp running on my
gateway.

I would steer clear of adding anything else to the 192.168.0.0/24
network as (in my case) things dont always work as expected (with an
accidental misconfiguration, I ended up with "wild" packets present on
my internal network).

BillK

On Fri, 2005-08-26 at 17:20 -0600, Joseph wrote:
> On Fri, 2005-08-26 at 19:04 -0300, José Pablo Ezequiel Fernández wrote:
> > > > Try this:
> > > >
> > 

...

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] sub-net 0.0.0.0

2005-08-26 Thread Nick Rout
On Fri, 2005-08-26 at 15:56 -0600, Joseph wrote:
> On Sat, 2005-08-27 at 08:34 +1200, Nick Rout wrote:
> > 
> > Try this:
> > 
> > on your desktop, which normally has a 10.0.0.x address, add a virtual
> > entry for eth0, in other words give it another IP address in the
> > subnet
> > needed by the other device:
> > 
> > something like:
> > 
> > ifconfig eth0:1 192.168.0.10 up
> > 
> > and you should be able to communicate directly with the device.
> > 
> 
> Thanks Nick, this sounds interesting. 
> 
> To which file /etc/confg.d/net  ?

yes (actually /etc/conf.d/net - you made a typo- and see net.examples in
the same directory)

if you only need to do it once in order to change the config on the
device then there is no need to put it in the config file, just do it on
the command line as per my original message. If you want to do it on
every boot /etc/conf.d/net is the place.

> 
> -- 
> #Joseph
-- 
Nick Rout <[EMAIL PROTECTED]>

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] sub-net 0.0.0.0

2005-08-26 Thread Joseph
On Fri, 2005-08-26 at 18:32 -0500, Jonathan A. Kollasch wrote:
> 
> Ethereal's CLI counterpart is tcpdump, (you can use tcpdump to make
> capture 
> files for Ethereal) you could also look in your dhcpd's lease file, or
> see if 
> it responds to a ping to 224.0.0.1.

Yes, that was the missing puzzle.
I just need to learn how to use it more efficient than:
tcpdump -i eth0 
 
-- 
#Joseph
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] sub-net 0.0.0.0

2005-08-26 Thread Jonathan A. Kollasch
On Friday 26 August 2005 06:20 pm, Joseph wrote:
> Is there a way to check what IP the device has on the network?
> I know the device MAC address and when I plug it IN, it obtains one of
> the IP via DHCP.   With
> arp -a IP
> arp -e
> I can only check the MAC address.   Is there a way to other way around.
>
> I know ethereal will capture the IP address, but I was wandering if
> there is any command line tool.

Ethereal's CLI counterpart is tcpdump, (you can use tcpdump to make capture 
files for Ethereal) you could also look in your dhcpd's lease file, or see if 
it responds to a ping to 224.0.0.1.

Jonathan Kollasch
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] sub-net 0.0.0.0

2005-08-26 Thread Joseph
On Fri, 2005-08-26 at 19:04 -0300, José Pablo Ezequiel Fernández wrote:
> > > Try this:
> > >
> > > on your desktop, which normally has a 10.0.0.x address, add a
> virtual
> > > entry for eth0, in other words give it another IP address in the
> > > subnet
> > > needed by the other device:
> > >
> > > something like:
> > >
> > > ifconfig eth0:1 192.168.0.10 up
> > >
> > > and you should be able to communicate directly with the device.
> >
> > Thanks Nick, this sounds interesting.
> >
> > To which file /etc/confg.d/net  ?
> That line is for running on the command line as root,
> for /etc/conf.d/net, a 
> similar one would have the same efect (check the file, it has comments
> about 
> it).

Will definitely add this command to my book.
It is so easy and I can't believe it.   It worked like a charm.

Is there a way to check what IP the device has on the network?
I know the device MAC address and when I plug it IN, it obtains one of
the IP via DHCP.   With 
arp -a IP
arp -e 
I can only check the MAC address.   Is there a way to other way around. 

I know ethereal will capture the IP address, but I was wandering if
there is any command line tool. 

-- 
#Joseph

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] sub-net 0.0.0.0

2005-08-26 Thread José Pablo Ezequiel Fernández
On Friday 26 August 2005 18:56, Joseph wrote:
> On Sat, 2005-08-27 at 08:34 +1200, Nick Rout wrote:
> > Try this:
> >
> > on your desktop, which normally has a 10.0.0.x address, add a virtual
> > entry for eth0, in other words give it another IP address in the
> > subnet
> > needed by the other device:
> >
> > something like:
> >
> > ifconfig eth0:1 192.168.0.10 up
> >
> > and you should be able to communicate directly with the device.
>
> Thanks Nick, this sounds interesting.
>
> To which file /etc/confg.d/net  ?
That line is for running on the command line as root, for /etc/conf.d/net, a 
similar one would have the same efect (check the file, it has comments about 
it).
-- 
José Pablo Ezequiel Fernández

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] sub-net 0.0.0.0

2005-08-26 Thread Joseph
On Sat, 2005-08-27 at 08:34 +1200, Nick Rout wrote:
> 
> Try this:
> 
> on your desktop, which normally has a 10.0.0.x address, add a virtual
> entry for eth0, in other words give it another IP address in the
> subnet
> needed by the other device:
> 
> something like:
> 
> ifconfig eth0:1 192.168.0.10 up
> 
> and you should be able to communicate directly with the device.
> 

Thanks Nick, this sounds interesting. 

To which file /etc/confg.d/net  ?

-- 
#Joseph
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] sub-net 0.0.0.0

2005-08-26 Thread Nick Rout
On Fri, 2005-08-26 at 11:50 -0600, Joseph wrote:
> On Fri, 2005-08-26 at 13:38 -0400, Willie Wong wrote:
> > On Fri, Aug 26, 2005 at 10:02:08AM -0600, Joseph wrote:
> > > I have a device with an IP 192.168.0.1 which I need to access via
> > > browser.
> > > My PC gets an IP via DHCP from the router.
> > > What should I use for gateway? I've tired 192.168.0.0  192.168.0 
> > 
> > huh? if you get the IP via DHCP, doesn't it also set up the gateway?
> 
> No, I set my firewall/router with my numbers.  My main network is set to
> Gateway 10.0.0.1  and DHCP pool range (so other devices an get the IP
> automatically) is 10.0.0.150 - 10.0.0.180
> 
> But the deice I have has a preset from the factory static IP 192.168.0.1
> If they set it to anything else like 192.168.0.10 or 192.168.0.100 it
> would be easy.
> I could set my gateway to 192.168.0.1 and DHCP pool range to
> 192.168.0.10 to 192.168.0.100 and it would work.  
> 
> When I try to set my gateway to 192.168.0.0 my DHCP pool range
> 192.168.0.1 to 192.168.0.100 doesn't work.
> 
> I'm using PC base firewall freesco.


Try this:

on your desktop, which normally has a 10.0.0.x address, add a virtual
entry for eth0, in other words give it another IP address in the subnet
needed by the other device:

something like:

ifconfig eth0:1 192.168.0.10 up

and you should be able to communicate directly with the device.

> -- 
> #Joseph
-- 
Nick Rout <[EMAIL PROTECTED]>

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] sub-net 0.0.0.0

2005-08-26 Thread Joseph
[snip]
> Not sure what hardware you have around, but if you don't have a 
> crossover cable do you at least have a hub or switch? If you do, just 
> disable DHCP temporarilly on your PC and manually set the IP address to 
> 192.168.0.2, set the gateway to 192.168.0.1 and netmask to 255.255.255.0 
> and plug the PC and router device into the same hub/switch. This method 
> has worked for me in the past when I have a router with a preset address 
> that needed to be changed.

You are right, setting the gateway to anything that 192.168.0.1 solved
the problem like 192.168.0.2.  I can not have the gateway set to
192.168.0.1 as the device I'm trying to access is hard coded to this IP.
In addition somebody recommend setting the sub-net to 0.0.0.0 which
didn't work for me.

-- 
#Joseph
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] sub-net 0.0.0.0

2005-08-26 Thread Alec Shaner

Joseph wrote:

On Fri, 2005-08-26 at 13:38 -0400, Willie Wong wrote:


On Fri, Aug 26, 2005 at 10:02:08AM -0600, Joseph wrote:


I have a device with an IP 192.168.0.1 which I need to access via
browser.
My PC gets an IP via DHCP from the router.
What should I use for gateway? I've tired 192.168.0.0  192.168.0 


huh? if you get the IP via DHCP, doesn't it also set up the gateway?



No, I set my firewall/router with my numbers.  My main network is set to
Gateway 10.0.0.1  and DHCP pool range (so other devices an get the IP
automatically) is 10.0.0.150 - 10.0.0.180

But the deice I have has a preset from the factory static IP 192.168.0.1
If they set it to anything else like 192.168.0.10 or 192.168.0.100 it
would be easy.


This is a little confusing to me - is there something special about IP 
192.168.0.1 compared to any other IP?



I could set my gateway to 192.168.0.1 and DHCP pool range to
192.168.0.10 to 192.168.0.100 and it would work.  


When I try to set my gateway to 192.168.0.0 my DHCP pool range
192.168.0.1 to 192.168.0.100 doesn't work.


Not sure what hardware you have around, but if you don't have a 
crossover cable do you at least have a hub or switch? If you do, just 
disable DHCP temporarilly on your PC and manually set the IP address to 
192.168.0.2, set the gateway to 192.168.0.1 and netmask to 255.255.255.0 
and plug the PC and router device into the same hub/switch. This method 
has worked for me in the past when I have a router with a preset address 
that needed to be changed.


--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] sub-net 0.0.0.0

2005-08-26 Thread Joseph
On Fri, 2005-08-26 at 14:23 -0400, Willie Wong wrote:
> On Fri, Aug 26, 2005 at 11:50:29AM -0600, Joseph wrote:
> > No, I set my firewall/router with my numbers.  My main network is set to
> > Gateway 10.0.0.1  and DHCP pool range (so other devices an get the IP
> > automatically) is 10.0.0.150 - 10.0.0.180
> 
> Okay, so far I follow you. You have a main network. The Gateway is at
> 10.0.0.1, presumably that is also where the router/dhcp server lives?
> Is this the network where your PC is on?

Sorry for the confusion.  Yes, I have to networks one main and second
backup network.
So my main network  (gateway) is 10.0.0.1 and this is the network I want
that device to be on (it is an ATA phone adapter 4xFXS).  

[snip]

> So hold on a second. I am lost. Are you dealing with a second separate
> network? What kind of device are you speaking of? If you set the
> gateway to 192.168.0.1 doesn't it conflict with the device? 
> 
> > 
> > When I try to set my gateway to 192.168.0.0 my DHCP pool range
> > 192.168.0.1 to 192.168.0.100 doesn't work.
> > 
> 
> uh... I am pretty sure octet 0 is reserved for the last word? I.e.
> valid IP addresses run from *.*.*.1 to *.*.*.254? 

Yes, that is was causing me confusion.  But I solve it.
I set my backup network (in order to access the device via browser) to
Gateway 192.168.0.05 (last digits anything lower than 1) and DHCP pool
range to 192.168.0.2 to 192.168.0.20  

> 192.168.0.0 refers actually to the network and not any particular
> machines, and 192.168.0.255 is the broadcast address for the
> 192.168.0.0 network
> 
> Can't you move the gateway to something like 192.168.0.254 with the
> DHCP range 192.168.0.2 to 192.168.0.180? Since you have a device
> hardcoded to be 192.168.0.1 you should leave it out of the DHCP range. 

Thank you for the explanation. You understood it correctly. 

> 
> Unless, of course, I am completely misunderstanding your post. If that
> is the case, post an ascii diagram or something of what the network
> looks like. 

I've change the Lan Setting on that ATA device to DHCP and assign the
static IP to 10.0.0.111 and I can access it now.

-- 
#Joseph
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] sub-net 0.0.0.0

2005-08-26 Thread Neil Bothwick
On Fri, 26 Aug 2005 11:50:29 -0600, Joseph wrote:

> No, I set my firewall/router with my numbers.  My main network is set to
> Gateway 10.0.0.1  and DHCP pool range (so other devices an get the IP
> automatically) is 10.0.0.150 - 10.0.0.180
> 
> But the deice I have has a preset from the factory static IP 192.168.0.1
> If they set it to anything else like 192.168.0.10 or 192.168.0.100 it
> would be easy.
> I could set my gateway to 192.168.0.1 and DHCP pool range to
> 192.168.0.10 to 192.168.0.100 and it would work.  

Set your gateway to 192.168.0.2 and it will still work.

Or leave your addressing as it is and set up a route to 192.168.0.1 that
does not go through your gateway.


-- 
Neil Bothwick

UNIX is the OS of the future and always will be...


pgp2z8ldvbLsr.pgp
Description: PGP signature


Re: [gentoo-user] sub-net 0.0.0.0

2005-08-26 Thread A. Khattri
On Fri, 26 Aug 2005, Joseph wrote:

> I could set my gateway to 192.168.0.1 and DHCP pool range to
> 192.168.0.10 to 192.168.0.100 and it would work.

Yes, you might need to do this temporarily until you change the IP of the
device to what you normally use, then you can switch back afterwards.

-- 

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] sub-net 0.0.0.0

2005-08-26 Thread Willie Wong
On Fri, Aug 26, 2005 at 11:50:29AM -0600, Joseph wrote:
> No, I set my firewall/router with my numbers.  My main network is set to
> Gateway 10.0.0.1  and DHCP pool range (so other devices an get the IP
> automatically) is 10.0.0.150 - 10.0.0.180

Okay, so far I follow you. You have a main network. The Gateway is at
10.0.0.1, presumably that is also where the router/dhcp server lives?
Is this the network where your PC is on?

> 
> But the deice I have has a preset from the factory static IP 192.168.0.1
> If they set it to anything else like 192.168.0.10 or 192.168.0.100 it
> would be easy.

I agree. 

> I could set my gateway to 192.168.0.1 and DHCP pool range to
> 192.168.0.10 to 192.168.0.100 and it would work.  

So hold on a second. I am lost. Are you dealing with a second separate
network? What kind of device are you speaking of? If you set the
gateway to 192.168.0.1 doesn't it conflict with the device? 

> 
> When I try to set my gateway to 192.168.0.0 my DHCP pool range
> 192.168.0.1 to 192.168.0.100 doesn't work.
> 

uh... I am pretty sure octet 0 is reserved for the last word? I.e.
valid IP addresses run from *.*.*.1 to *.*.*.254? 

192.168.0.0 refers actually to the network and not any particular
machines, and 192.168.0.255 is the broadcast address for the
192.168.0.0 network

Can't you move the gateway to something like 192.168.0.254 with the
DHCP range 192.168.0.2 to 192.168.0.180? Since you have a device
hardcoded to be 192.168.0.1 you should leave it out of the DHCP range. 

Unless, of course, I am completely misunderstanding your post. If that
is the case, post an ascii diagram or something of what the network
looks like. 

W

-- 
Black holes are where God divided by zero.
Sortir en Pantoufles: up 14 days, 21:17
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] sub-net 0.0.0.0

2005-08-26 Thread Joseph
On Fri, 2005-08-26 at 13:38 -0400, Willie Wong wrote:
> On Fri, Aug 26, 2005 at 10:02:08AM -0600, Joseph wrote:
> > I have a device with an IP 192.168.0.1 which I need to access via
> > browser.
> > My PC gets an IP via DHCP from the router.
> > What should I use for gateway? I've tired 192.168.0.0  192.168.0 
> 
> huh? if you get the IP via DHCP, doesn't it also set up the gateway?

No, I set my firewall/router with my numbers.  My main network is set to
Gateway 10.0.0.1  and DHCP pool range (so other devices an get the IP
automatically) is 10.0.0.150 - 10.0.0.180

But the deice I have has a preset from the factory static IP 192.168.0.1
If they set it to anything else like 192.168.0.10 or 192.168.0.100 it
would be easy.
I could set my gateway to 192.168.0.1 and DHCP pool range to
192.168.0.10 to 192.168.0.100 and it would work.  

When I try to set my gateway to 192.168.0.0 my DHCP pool range
192.168.0.1 to 192.168.0.100 doesn't work.

I'm using PC base firewall freesco.
-- 
#Joseph
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] sub-net 0.0.0.0

2005-08-26 Thread Willie Wong
On Fri, Aug 26, 2005 at 10:02:08AM -0600, Joseph wrote:
> I have a device with an IP 192.168.0.1 which I need to access via
> browser.
> My PC gets an IP via DHCP from the router.
> What should I use for gateway? I've tired 192.168.0.0  192.168.0 

huh? if you get the IP via DHCP, doesn't it also set up the gateway?

in any case, the gateway should be the router... everything is plugged
into it, no?

> What DHCP pool range should I set my firewall to?

I guess you mean your DHCP server/router? Set it to something that
doesn't include 192.168.0.1

> 
> Apparently, the device can be access directly, but for this I would need
> cross over cable isn't it?  
> 

yes

W
-- 
"Dude, this is making the same approximation twice in a row. It's like a 
whack-a-mole game."
~DeathMech, Some Student. P-town PHY 205
Sortir en Pantoufles: up 14 days, 20:39
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] sub-net 0.0.0.0

2005-08-26 Thread Joseph
On Fri, 2005-08-26 at 10:02 -0600, Joseph wrote:
> I have a device with an IP 192.168.0.1 which I need to access via
> browser.
> My PC gets an IP via DHCP from the router.
> What should I use for gateway? I've tired 192.168.0.0  192.168.0 
> What DHCP pool range should I set my firewall to?
> 
> Apparently, the device can be access directly, but for this I would need
> cross over cable isn't it?  

I've set my gateway to 0.0.0.0
but I don't know what to use for DHCP pool range.

-- 
#Joseph
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] sub-net 0.0.0.0

2005-08-26 Thread Joseph
I have a device with an IP 192.168.0.1 which I need to access via
browser.
My PC gets an IP via DHCP from the router.
What should I use for gateway? I've tired 192.168.0.0  192.168.0 
What DHCP pool range should I set my firewall to?

Apparently, the device can be access directly, but for this I would need
cross over cable isn't it?  

-- 
#Joseph
-- 
gentoo-user@gentoo.org mailing list