Problem assigning class D IPADDR because of SIOCIFADDR: Invalid argument
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Problem assigning class D IPADDR because of SIOCIFADDR: Invalid argument
I am trying to setup a multicast server/client pair using java. I am running slackware 8.1. In order to do this I need to assign a class D IPADDRR to my server. I have tried doing this by editing IPADDR="230.0.0.4" for eth0 in /etc/rc.d/rc.inet1. when I run the script rc.inet1 it says:
SIOCADDRT: file exists.
Configuring eth0
ifconfig eth0 230.0.0.4 broadcast 230.255.255.0 netmask 255.255.255.0
SIOCIFADDR: invalid argument
SIOCSIFBRDADDR: Cannot assign requested address.
SIOCSIFNETMASK: Cannot assign requested address.
ifconfig eth0 says that UP BROADCAST RUNNING MULTICAST.
I ran netconfig as suggested, and tried pinging 230.0.0.4 and got a network is unreachable message.
Then I ran /etc/rc.d/rc.inet1 and it returned the same error message about SIOCIFADDR: invalid argument. Thanks for your suggestion, any other ideas would still be very helpful.
I don't know very much about multicast, but I'd say your subnetting is wrong. If you use a 230.0.0.0/24 network (24 network bits giving it a mask of 255.255.255.0), the broadcast address is 230.0.0.255.
If you would make it a /8 network (netmask 255.0.0.0) then the broadcast address would be 230.255.255.255, but never 230.255.255.0.
The broadcast address is always the highest address in a subnet. In the subnet you're using the hightest address is 230.0.0.255.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.