LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-17-2004, 01:17 PM   #1
hamish
Member
 
Registered: Aug 2003
Location: Edinburgh
Distribution: Server: Gentoo2004; Desktop: Ubuntu
Posts: 720

Rep: Reputation: 30
SIOCSIFADDR: Invalid argument - setting up network


Hey,

I'm trying to get my computer and another computer talking to each other.

When I try and start the eth1 device, I get this error:

root@archimedes hamish # /etc/init.d/net.eth1 start
/sbin/runscript.sh: line 31: For: command not found
* Bringing eth1 up...
netmask: Unknown host
SIOCSIFADDR: Invalid argument
* Failed to bring eth1 up

The information for this device is:

iface_eth1="10.30.0.96 broadcast netmask 255.255.255.0"

I am hoping that it will automatically configure a broadcast because, frankly I don' t know what to put it to.

the ethernet device in the other computer is 10.30.0.97.

Please can someone tell me how to set up my device so this problem doesn't occur.

Thanks very much in advance.
Hamish
 
Old 04-17-2004, 01:26 PM   #2
hamish
Member
 
Registered: Aug 2003
Location: Edinburgh
Distribution: Server: Gentoo2004; Desktop: Ubuntu
Posts: 720

Original Poster
Rep: Reputation: 30
Fixed!
(as far as I know)

Changing the /etc/conf.d/net file and the doing /etc/init.d/net.eth1 restart returned the above error.

Instead, if i just start the device with the orginal IP and then run ifconfig, I can change the IP and netmask without any errors.

Hamish
 
Old 04-29-2004, 03:37 PM   #3
iftiuk
Member
 
Registered: Apr 2004
Location: Washington DC
Posts: 43

Rep: Reputation: 15
Question SIOCSIFADDR

I was trying to use SIOCSIFADDR with ioctl function to change the IP address of my computer by I am getting an error message Invalid argument. Any idea what could be wrong?
 
Old 04-29-2004, 04:46 PM   #4
AutOPSY
Member
 
Registered: Mar 2004
Location: US
Distribution: Redhat 9 - Linux 2.6.3
Posts: 836

Rep: Reputation: 31
apparently the interface address parameters you gave it are incorrect or unable to be accomplished.

I would guess its from not adding the broadcast a value.
 
Old 04-30-2004, 09:41 AM   #5
iftiuk
Member
 
Registered: Apr 2004
Location: Washington DC
Posts: 43

Rep: Reputation: 15
Solved though another question

Thansk I was not setting the address family type. It then solved the problem.

I have question reqarding seting the default gateway using ioctl. How can I do that. Which of the #define from ioctl_list can be used for this?

Thanks
 
Old 05-03-2004, 10:42 AM   #6
hamish
Member
 
Registered: Aug 2003
Location: Edinburgh
Distribution: Server: Gentoo2004; Desktop: Ubuntu
Posts: 720

Original Poster
Rep: Reputation: 30
Oh, I also realised that in order for my problem to be solved on reboot, I needed to set the nameserver IP (/etc/resolv.conf), for the computer on which I was changing the IP address, to the same one which the computer was connected to. It wasn't when I was trying it. this now works automatically..

Hamish
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Accept(): Invalid Argument bonhomme Programming 6 07-14-2012 10:12 PM
Invalid argument passed to ext2 library while setting up superblock msross Linux - General 10 09-03-2009 02:05 PM
alsamixer invalid argument subaruwrx Linux - Software 1 03-12-2005 01:34 PM
[ Invalid Argument on 'iptables' ] benleung Linux - Security 1 09-23-2003 12:25 AM
xawtv - invalid argument liguorir Linux - Software 0 06-17-2003 08:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:57 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