ifup and ifdown commands don't work.
I'm running Debian 6. I have an interface named eth1 on it. I want to run ifup and ifdown on it because those are the only commands that access the interfaces file in /etc/network.
However, if the eth1 network is up: when I run ifdown eth1 (eth1 is up) it displays: Code:
ifdown: interface eth1 not configured when I run ifdown --force eth1, it runs the down commands in the interfaces file, but it also displays the following message: Code:
SIOCDELRT: No such process If the eth1 network is down: when I run ifup eth1, the computer displays: Code:
SIOCADDRT: No such process when I run ifup --force eth1 it does the same thing. Also I noticed that an interface called 5.0 appears when I run ifconfig after I run any of the ifup commands. Can you tell me how to successfully run the ifup and the ifdown commands so that the instructions in the interfaces file may be ran accordingly? |
hi
I have only one network device but suspect you have 2 lspci -v should show them. 2) do you have a file called /etc/network/interfaces? this should show you how to up them? |
Quote:
The /etc/network/interfaces file looks like this: Code:
# This file describes the network interfaces available on your system |
I presume you're using the CLI, & not using any GUI stuff like Network Manager (or any other Gnome/KDE stuff)
Have you read the relevant bit of the Debian manual - here's a link to Debian Reference Manual - The Basic Network Configuration with ifupdown First thing is to sanity check all the relevant config files. Hopefully the Reference will highlight what's wrong with your networking configuration Your gateway looks weird to me - is that your gateway's address or am I not understanding something? EDIT: Also that error message is shown if there are invalid addresses in the config file |
Not sure if this would solve the issue at hand, however, once I had a similar problem and had to use the ifconfig eth1 up command. This tended to work OK.
|
Quote:
|
Have another look at your gateway address - it isn't valid, that's why you're getting error messages & its bombing out
It should be an address that exists either on the public internet or as a private address using the reserved address spaces. |
I recently tried to connect to a wireless ap from command line using ifconfig and iwconfig and the last command to get connected, dhclient eth1. It never worked this way, from command line Debian wiki says you need to configure the interfaces file. But just configuring it does not get me connected, running the dhclient command has the interfaces file processed and a connection is established via dhcp. I would think the router needs to be configured to use dhcp.
|
Quote:
Now my interfaces file looks like this, but it does not have any effect: Code:
# This file describes the network interfaces available on your system |
Have you tried using the /sbin/ifconfig command to configure eth1 - it might give you a more explanatory error message. Also, when you boot, as eth1 is set to auto, the errors should be logged in /var/log depending on your logging setup, & they might be able to tell you something.
The gateway address is normally the address of your router or another machine that is the "gateway" to the network, i.e another network or the internet i.e the route that you want traffic to take when as address isn't on the local network(e.g. an internet address). What exactly are you aiming at with this network config? If eth1 is connected to the 10.5.10.128/25 network & the plan is that traffic from the 10.5.10.128/25 is connected to the internet through this machine, perhaps with filtering, then eth1 doesn't need a gateway address at all & the other PCs on the 10.5.10.128/25 network will use 10.5.10.200 as their gateway. A network that notwork can be very frustrating, I know... :) |
Quote:
I solved the problem: eth1 should not be configured the auto. Deleting or commenting "auto eth1" solved the whole thing. Yes, it's very frustrating, I use ip or ifconfig... However they don't execute the required scrips, so I'm stuck with ifup and ifdown that succede the other commands (which means that if a network or interface is downed or upped by ifconfig, for example, ifup or ifdown won't have any effect on it). |
Pleased to hear that you've solved it - I take your point about scripting.
|
All times are GMT -5. The time now is 05:42 AM. |