Networking Forums

Networking Forums > Computer Networking > Linux Networking > ifup eth1 gives error but successfully ups and works why?

Reply
Thread Tools Display Modes

ifup eth1 gives error but successfully ups and works why?

 
 
kernel.lover
Guest
Posts: n/a

 
      04-06-2005, 06:55 AM
Hello,
Why it happens that whenever i try to up interface which is
previously down by me gives error. what should be wrong in my
configuration which is static IPs to eth0 and eth1

[root@localhost root]#ifup eth1
ipcalc: bad ip address: 10.0.0.
Error: an inet prefix is expected rather than "10.0.0./".

my configuration is
eth0 Link encap:Ethernet HWaddr 00:08:A1:43:61:F5
inet addr:10.0.1.100 Bcast:10.255.255.255 Mask:255.0.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:240 (240.0 b)
Interrupt:9 Base address:0xbc00

eth1 Link encap:Ethernet HWaddr 00:80:48:C3:11:94
inet addr:10.0.1.200 Bcast:10.255.255.255 Mask:255.0.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:915 (915.0 b) TX bytes:420 (420.0 b)
Interrupt:11 Base address:0xdc00
 
Reply With Quote
 
 
 
 
Unruh
Guest
Posts: n/a

 
      04-06-2005, 07:24 AM
(E-Mail Removed) (kernel.lover) writes:

>Hello,
> Why it happens that whenever i try to up interface which is
>previously down by me gives error. what should be wrong in my
>configuration which is static IPs to eth0 and eth1


Maybe you should let us see what is in the config file for eth1 (eg
/etc/sysconfig/networ-scripts/ifcfg-eth1 on Redhat/Mandrake) so we could
see what you have in there.
Ie, how can we know what is wrong with your configuration if you do not
show the configuration file to us?


>[root@localhost root]#ifup eth1
>ipcalc: bad ip address: 10.0.0.
>Error: an inet prefix is expected rather than "10.0.0./".


>my configuration is
>eth0 Link encap:Ethernet HWaddr 00:08:A1:43:61:F5
> inet addr:10.0.1.100 Bcast:10.255.255.255 Mask:255.0.0.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:0 (0.0 b) TX bytes:240 (240.0 b)
> Interrupt:9 Base address:0xbc00


>eth1 Link encap:Ethernet HWaddr 00:80:48:C3:11:94
> inet addr:10.0.1.200 Bcast:10.255.255.255 Mask:255.0.0.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:8 errors:0 dropped:0 overruns:0 frame:0
> TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:915 (915.0 b) TX bytes:420 (420.0 b)
> Interrupt:11 Base address:0xdc00

 
Reply With Quote
 
Tauno Voipio
Guest
Posts: n/a

 
      04-06-2005, 07:28 AM
kernel.lover wrote:
> Hello,
> Why it happens that whenever i try to up interface which is
> previously down by me gives error. what should be wrong in my
> configuration which is static IPs to eth0 and eth1
>
> [root@localhost root]#ifup eth1
> ipcalc: bad ip address: 10.0.0.
> Error: an inet prefix is expected rather than "10.0.0./".
>
> my configuration is
> eth0 Link encap:Ethernet HWaddr 00:08:A1:43:61:F5
> inet addr:10.0.1.100 Bcast:10.255.255.255 Mask:255.0.0.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:0 (0.0 b) TX bytes:240 (240.0 b)
> Interrupt:9 Base address:0xbc00
>
> eth1 Link encap:Ethernet HWaddr 00:80:48:C3:11:94
> inet addr:10.0.1.200 Bcast:10.255.255.255 Mask:255.0.0.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:8 errors:0 dropped:0 overruns:0 frame:0
> TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:915 (915.0 b) TX bytes:420 (420.0 b)
> Interrupt:11 Base address:0xdc00


Which distribution (Debian) ?

What is in the eth1 configuration specification file?

The error message says that there is a bad IP address specification
associated with eth1 ('10.0.0.' or '10.0.0./'), maybe a route or
gateway.

(In Debian, the file is /etc/network/interfaces).

--

Tauno Voipio
tauno voipio (at) iki fi

 
Reply With Quote
 
David Efflandt
Guest
Posts: n/a

 
      04-06-2005, 05:47 PM
On Wed, 06 Apr 2005, Tauno Voipio <(E-Mail Removed)> wrote:
> kernel.lover wrote:
>> Hello,
>> Why it happens that whenever i try to up interface which is
>> previously down by me gives error. what should be wrong in my
>> configuration which is static IPs to eth0 and eth1
>>
>> [root@localhost root]#ifup eth1
>> ipcalc: bad ip address: 10.0.0.
>> Error: an inet prefix is expected rather than "10.0.0./".
>>
>> my configuration is
>> eth0 Link encap:Ethernet HWaddr 00:08:A1:43:61:F5
>> inet addr:10.0.1.100 Bcast:10.255.255.255 Mask:255.0.0.0
>> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
>> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>> TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
>> collisions:0 txqueuelen:1000
>> RX bytes:0 (0.0 b) TX bytes:240 (240.0 b)
>> Interrupt:9 Base address:0xbc00
>>
>> eth1 Link encap:Ethernet HWaddr 00:80:48:C3:11:94
>> inet addr:10.0.1.200 Bcast:10.255.255.255 Mask:255.0.0.0
>> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
>> RX packets:8 errors:0 dropped:0 overruns:0 frame:0
>> TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
>> collisions:0 txqueuelen:1000
>> RX bytes:915 (915.0 b) TX bytes:420 (420.0 b)
>> Interrupt:11 Base address:0xdc00

>
> Which distribution (Debian) ?
>
> What is in the eth1 configuration specification file?
>
> The error message says that there is a bad IP address specification
> associated with eth1 ('10.0.0.' or '10.0.0./'), maybe a route or
> gateway.
>
> (In Debian, the file is /etc/network/interfaces).


Both interfaces are on the same network (same local route), so only one of
those interfaces (1st matching in routing table) would actually be used
(unless more specific -host or -net routing was added, or advance routing
per Adv-Routing HOWTO).
 
Reply With Quote
 
kernel.lover
Guest
Posts: n/a

 
      04-07-2005, 04:26 AM
Tauno Voipio <(E-Mail Removed)> wrote in message news:<RcM4e.65$(E-Mail Removed)>...
> Which distribution (Debian) ?

Using Redhat 9
>
> What is in the eth1 configuration specification file?


DEVICE=eth1
ONBOOT=yes
BOOTPROTO=none
IPADDR=10.0.1.200
NETMASK=255.0.0.0
TYPE=Ethernet
USERCTL=no
PEERDNS=no
NETWORK=10.0.0.0
BROADCAST=10.255.255.255

>
> The error message says that there is a bad IP address specification
> associated with eth1 ('10.0.0.' or '10.0.0./'), maybe a route or
> gateway.
>
> (In Debian, the file is /etc/network/interfaces).

 
Reply With Quote
 
Tauno Voipio
Guest
Posts: n/a

 
      04-07-2005, 11:25 AM
kernel.lover wrote:
> Tauno Voipio <(E-Mail Removed)> wrote in message news:<RcM4e.65$(E-Mail Removed)>...
>
>>Which distribution (Debian) ?

>
> Using Redhat 9
>
>>What is in the eth1 configuration specification file?

>
>
> DEVICE=eth1
> ONBOOT=yes
> BOOTPROTO=none
> IPADDR=10.0.1.200
> NETMASK=255.0.0.0
> TYPE=Ethernet
> USERCTL=no
> PEERDNS=no
> NETWORK=10.0.0.0
> BROADCAST=10.255.255.255
>
>
>>The error message says that there is a bad IP address specification
>>associated with eth1 ('10.0.0.' or '10.0.0./'), maybe a route or
>>gateway.
>>
>>(In Debian, the file is /etc/network/interfaces).


This seems to be OK. It seems that your script
is broken. The error message is clear.

--

Tauno Voipio
tauno voipio (at) iki fi

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ANyone using VPN successfully with Voyager 2110? Andrew Hodgson Home Networking 0 12-17-2005 11:35 PM
Anyone using VPN successfully over Voyager 2110? Andrew Hodgson Broadband 0 12-17-2005 05:50 PM
(Not) Successfully Setting up DNS - a long story NotSure2003 Linux Networking 1 01-21-2004 06:10 AM
Error: NETDEV WATCHDOG:eth1: transmit timed out www.hyebun.com Linux Networking 1 08-09-2003 10:56 AM
Re: Network fails with (almost) no error messages on LFS, but works on Debian Bobby Martin Linux Networking 1 07-20-2003 05:47 AM



1 2 3 4 5 6 7 8 9 10 11