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