LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 01-18-2014, 09:08 PM   #1
KansaiRobot
Member
 
Registered: Dec 2013
Location: Japan
Distribution: Debian...very few times Ubuntu
Posts: 51

Rep: Reputation: 0
Error when setting static IPs


Hello everybody
I would appreciate your help in the following.

I have two machines with linux (one uCLinux and one Debian)

they have virtual ethernet and ethernet configured. The ethernet is configured for DHCP (both). So far I havent had problems communicating through a cross cable (using sockets)

Well, the other day I tried to change the configuration to static IPs, so I modified the interfaces file in the uCLinux one.

before the interface file was

Code:
auto  lo usb0 eth0
iface lo inet loopback
iface eth0 inet dhcp
iface usb0 inet manual
   up ifconfig usb0 up
   post-up zcip usb0 /etc/zcip.script> /dev/null
   down ifconfig usb0 down
Now I modified it to
Code:
auto  lo usb0 eth0
iface lo inet loopback
iface eth0 inet static
     address 192.168.10.10
     netmask 255.255.255.0
     network 192.168.10.0
     broadcast 192.168.10.255
     gateway  192.168.10.1
iface usb0 inet manual
   up ifconfig usb0 up
   post-up zcip usb0 /etc/zcip.script> /dev/null
   down ifconfig usb0 down
so after that I tried to do ifdown -a and ifup -a and I got an error!

Code:
>ifdown -a
interface eth0 not configured
>ifup -a
ip:either "local" is duplicate, or "/24" is garbage
ip: RTNETLINK answers: File exists

Of course I can not communicate anymore

Can someone tell me what this error means and how to properly configurate static IPs?

Thanks a lot in advance

Kansai
 
Old 01-18-2014, 09:42 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Did you buy any chance store your original config file and your original file in the same directory?

I don't use those distros but on RedHat based distros I know I have to insure the config file copies are either NOT in the same directory or are in a naming format that the networking startup doesn't use.
 
Old 01-18-2014, 10:56 PM   #3
KansaiRobot
Member
 
Registered: Dec 2013
Location: Japan
Distribution: Debian...very few times Ubuntu
Posts: 51

Original Poster
Rep: Reputation: 0
Actually I didnt save it but just overwrote it.

I still dont know about this error but it seems the /24 part refers to the gateway...
I am using a virtual network for the USB and this network so maybe that is the problem...??
 
  


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
[SOLVED] LAN and static IPs again. stf92 Slackware 2 03-04-2013 05:52 PM
[SOLVED] setting up a bridge with 3 static IPs and two VM jbcolmena Linux - Networking 2 08-14-2010 04:16 AM
Problem with static IPs Outerlimit Linux - Networking 2 02-15-2006 03:35 PM
setting up radvd with static local ips pIscIs Linux - Networking 0 12-13-2005 03:48 PM
Using static ips with a router jclu Linux - Hardware 2 07-31-2005 05:35 PM

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

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