Looks as he has a similar setup to me ,.....judging by the IP it is a paradise 
cable connection to a single NIC .....

Adam are you at the install stage or have you got your base system up and 
running ????
I take it the box your installing on is to be a gateway/firewall type box with 
a internal network connected to a router/switch with the uplink to the Cable 
modem and you want internal traffic NAT'd by the box your installing to ???

If this is the case it'd be easier to finish installing Gentoo on the box then 
look at setting up iptables (or which ever GUI you want to use if X is 
installed )to forward internal requests via the box your building ....

Cheers
Dale.

On Tue, 17 Jun 2003 23:12, you wrote:
> I think you have the broadcast and default gateway mixed up. A broadcast
> address is something else entirely.
>
> eth0 should know nothing about your cable connection. Therefore:
> IP: 192.168.1.1
> broadcast: 192.168.1.255  (stuff sent to this goes to every 192.168.1.x
> machine. try "ping 192.168.1.255" for example)
> netmask: 255.255.255.0
>
> also I thought eth0 should be at the end of the line? I could be wrong...
> or it might vary between versions. 'man ifconfig' for more information.
>
> so try:
> ifconfig eth0 192.168.1.1 broadcast 192.168.1.255 netmask 255.255.255.0
>
> then you add a default route to your routing tables to tell your machine
> where to send data that isn't bound for the local (192.168.1.x) network.
> Something like:
>
> route add -net 0.0.0.0 gw 192.168.1.x
>
> where 192.168.1.x is the internal address of the machine/router with the
> cable connection.
>
> Unless of course you mean you only have the 1 machine, and eth0 *is* the
> cable connection device? In which case, why bother with the internal
> address at all?
>
> Cheers,
> Gareth
>
> On Tuesday 17 June 2003 22:42, Adam Martin wrote:
> > I am on a cable connection
> > IP is 202.0.x.x
> > I want to set up an internal address of 192.168.1.1
> >
> > Could someone please tell me what the correct command for ifconfig
> > should be... ie.
> >
> > ifconfig eth0 202.0.x.x broadcast 192.168.1.1 netmask 255.255.255.0

Reply via email to