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