Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm sort of new at linux networking. I set the ip address of an interface (eth1) as follows...

/sbin/ip link set eth1 down
/sbin/addr addr add dev eth1
/sbin/ip link set eth1 up

However, when I type ifconfig I get...

eth1      Link encap:Ethernet  HWaddr 00:0E:0C:E5:F0:B5  
          inet addr:  Bcast:  Mask:
          RX packets:96945 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2466 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:6460544 (6.1 Mb)  TX bytes:164386 (160.5 Kb)
          Base address:0x2000 Memory:b8800000-b8820000 

Why is the broadcast Does this mean it will just use the default broadcast ( Or is there some way I need to set it? I've tried using this interface but I can't ping any other devices on the network.

share|improve this question
up vote 2 down vote accepted

change your call to:

/sbin/ip addr add broadcast dev eth1

to get the broadcast correct, guessing is your correct broadcast address.

but be aware that the ip address will vanish with the next reboot. you have to specify it in an interface file to make it permanent. in suse it is e.g. /etc/sysconfig/network/ifcfg-eth1. there are normally also some gui tools to do the network configuration, in suse it is yast, in redhat it is system-config-network.

share|improve this answer
Hah, I'm even using SUSE. That worked, thanks. – Pace Feb 12 '10 at 14:57

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.