LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-07-2004, 08:06 AM   #1
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,203

Rep: Reputation: 45
why is that?eth0


Do u know what the following error means? After this command the interface is up and works perfectly
ifconfig eth0 192.168.64.11 255.255.255.0
SIOCSIFADDR: Invalid argument
 
Old 07-07-2004, 08:36 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399
Syntax of the command is not correct, although ifconfig 'guesses' the correct syntax.
Correct syntax:

ifconfig eth0 up 192.168.64.11 netmask 255.255.255.0

See man ifconfig.
 
Old 07-07-2004, 10:00 AM   #3
Hitman1
LQ Newbie
 
Registered: Jun 2004
Distribution: Fedora Core 5
Posts: 10

Rep: Reputation: 0
SIOCSIFADDR: Invalid argument

this error message is harmless. I can't remember which program was causing it I think either DNS or DHCP. But it is perfectly fine. Just Ignore it
 
Old 07-07-2004, 04:36 PM   #4
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,203

Original Poster
Rep: Reputation: 45
The same error appears
 
Old 07-08-2004, 05:01 AM   #5
hasnain
Member
 
Registered: Jun 2004
Location: Karachi
Distribution: Redhat
Posts: 56

Rep: Reputation: 15
eth 0 problem

hello


solution is simple u were writiing incorrect command


try this

[root@localhost root] ifconfig eth0:0 192.168.0.12 netmask 255.255.255.0 up



it would work now after that restart network

[root @localhost root] service network restart


regards
 
Old 07-08-2004, 05:10 PM   #6
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,203

Original Poster
Rep: Reputation: 45
Thx for your reply but waht eth0:0 means?
 
Old 07-08-2004, 05:22 PM   #7
hasnain
Member
 
Registered: Jun 2004
Location: Karachi
Distribution: Redhat
Posts: 56

Rep: Reputation: 15
what eth0:0 means

hello

well eth0 is the secondary ethernet card by writing eth0:0 means that we are binding new setting on eth0 of 0 means updating our eth0 configurations

regards
 
Old 07-09-2004, 02:51 AM   #8
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,203

Original Poster
Rep: Reputation: 45
Canu expmlain this? "......well eth0 is the secondary ethernet "
 
Old 07-09-2004, 04:19 AM   #9
hasnain
Member
 
Registered: Jun 2004
Location: Karachi
Distribution: Redhat
Posts: 56

Rep: Reputation: 15
eth0 confusion

hello

well yes eth0 is the secondart ethernet card

regards
 
Old 07-09-2004, 09:52 AM   #10
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,203

Original Poster
Rep: Reputation: 45
I was thinking that the second ethernet inteface was the eth1... I have 2 ethernet cards in my pc and the first one is the eth0 and the second one the eth1... What;s the wrong with that?
 
Old 07-09-2004, 11:15 AM   #11
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399
Nothing, it's might even be considered as 'better'.

You have 2 hardware devices (network cards), both devices have an IP number attached to it.

eth0 = 1.2.3.4
eth1 = 4.3.2.1

The eth0 notation is a short notation for eth0:0.

It is possible to attach different IP's to 1 hardware device.
eth0:0 = 1.2.3.4 (eth0 for short)
eth0:1 = 1.2.3.5
.
.
eth0:N = 1.2.3.N

In 'normal' situations you do not need to attach more then 1 IP to a network device.

For now just attach 1 IP number to a physical device and keep in mind that ethX:0 is short for ethX.

Hope this clears things up a bit.
 
1 members found this post helpful.
Old 07-09-2004, 04:14 PM   #12
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,203

Original Poster
Rep: Reputation: 45
"It is possible to attach different IP's to 1 hardware device.
eth0:0 = 1.2.3.4 (eth0 for short)
eth0:1 = 1.2.3.5
.
.
eth0:N = 1.2.3.N"



It sounds great but do u know some reasons for doing that? If an interface has more than one ip then it responds to all requests from all rthe networks?
 
Old 07-09-2004, 05:24 PM   #13
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399
Quote:
It sounds great but do u know some reasons for doing that?
In general you will not do this, but here are a few reasons:

- Simulate a second (third, fourth) network. Reason: No real network device can be placed (lack of money, slots), testing etc.
- Build (more) redundancy into your network. Reason: Network must have a high 'up-time'.
- Just for fun

Quote:
If an interface has more than one ip then it responds to all requests from all rthe networks?
If the rest of the network is setup correctly it will rrespond to all the IP numbers it has.

It has a few downsides:
- If network device fails, most (all) network connections going thru that device are gone,
- The capacity of the line might become a problem now that is has to pass the data of multiple networks instaid of one.
 
1 members found this post helpful.
Old 07-09-2004, 10:57 PM   #14
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,203

Original Poster
Rep: Reputation: 45
Thx again for your reply...but how u connect such an interface to multiple networks? A hub or a switch can connect interfaces in the same network....
 
Old 07-10-2004, 12:55 AM   #15
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399Reputation: 2399
You gave the naswer to that one: Routers, switches and hubs can be used.
 
  


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
Wireless network on eth1 diabled Ethernet eth0 and eth0 never comes back tadatoshi Linux - Wireless Networking 4 09-23-2004 05:57 PM
Firewall WAN eth0 LAN eth1 self-bridges, eth0 does all routeing. Nichole_knc Linux - Networking 5 07-29-2004 02:33 PM
howto delete existing static ip of ethernet(eth0)& reconf multiple ips on eth0 viveku Linux - Networking 2 02-02-2004 01:30 AM
howto delete static ip configured on eth0 & reconf multiple ip on one eth0(redhat8 viveku Linux - Networking 0 01-31-2004 10:40 AM
Bringing up interface eth0: determining ip information for eth0... failed ralphethomas Linux - Networking 0 01-24-2004 05:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:20 PM.

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