setting IP address manually

Mike McGrath mmcgrath at iesabroad.org
Mon Oct 3 14:05:07 UTC 2005


 

> -----Original Message-----
> From: fedora-list-bounces at redhat.com 
> [mailto:fedora-list-bounces at redhat.com] On Behalf Of Gaspar Bakos
> Sent: Sunday, October 02, 2005 7:36 PM
> To: fedora-list
> Subject: setting IP address manually 
> 
> Hi,
> 
> I have a remote power switch device which comes with factory 
> default IP setting 192.168.1.250. It is not intelligent; it 
> hsa no DHCP, for example. I have a crossover cable, and I 
> have two ethernet cards in the
> PC: eth0 and eth1.
> 
> My question is: is there a way of assigning 192.168.1.250 to 
> my eth0 or
> eth1 under Redhat linux?
> 
> I have been trying to play with
> ifconfig, ifup, ifdown, etc.
> but I get the complaint "192.168.1.250" is already in use.
> 
> Cheers
> Gaspar
> 

edit: 

/etc/sysconfig/network-scripts/ifcfg-eth0
and 
/etc/sysconfig/network-scripts/ifcfg-eth1

then do a service network restart

if that doesn't work you can assign IP addresses with the ifconfig
command:

ifconfig eth0 192.168.1.250 netmask 255.255.255.0 broadcast
192.168.1.255

Though I believe the issue you may be having is that you're trying to
assign the same IP address to both interfaces.  They should have a
different IP address (and ideally be on a different network)  for
example, eth0: 192.168.1.250,  eth1: 192.168.2.250.

	-Mike





More information about the fedora-list mailing list