LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-31-2004, 02:07 PM   #1
clu
LQ Newbie
 
Registered: Feb 2003
Posts: 6

Rep: Reputation: 0
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.


thanks alot for any help.
-clu
 
Old 01-31-2004, 02:11 PM   #2
Astro
Member
 
Registered: Jan 2003
Location: Ballston Lake, NY
Distribution: Slackware, Debian
Posts: 665

Rep: Reputation: 30
try running `netconfig` and when it asks set the IP for static and put it in there where the ip field is. That should take care of it, I would think.
 
Old 01-31-2004, 02:29 PM   #3
clu
LQ Newbie
 
Registered: Feb 2003
Posts: 6

Original Poster
Rep: Reputation: 0
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.
 
Old 02-01-2004, 07:06 AM   #4
djbanaan
Member
 
Registered: Aug 2003
Location: Haarlem, The Netherlands
Distribution: Slackware, FreeBSD
Posts: 178

Rep: Reputation: 30
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Crypto problem: LOOP_SET_STATUS: Invalid argument Slacker0815 Slackware 7 07-21-2005 05:13 PM
Iptables, invalid argument, problem with modprobe ivanatora Linux - Software 1 05-11-2005 05:55 AM
tc qdisc Invalid argument problem 4mix Linux - Networking 1 09-09-2004 04:26 PM
Dante sockd problem - Invalid argument (errno = 22) Sammy2ooo Linux - Networking 1 11-19-2003 07:22 AM
xawtv - invalid argument liguorir Linux - Software 0 06-17-2003 08:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration