Debian: No network with /etc/network/interfaces

Debian: No network with /etc/network/interfaces

Post by Nick Drey » Tue, 26 Nov 2002 13:09:13



Hi:

Just starting a Debian 3.0r0 install from scratch.
Network: DSL is bridged with static IP.

I've read the man pages on the interfaces file but cannot
get it to work.  Instead, I need to issue the folowing
two commands before I can ping anything except localhost:

ifconfig eth0 aaa.bbb.ccc.ddd up netmask 255.255.255.0
route add default gw aaa.bbb.ccc.1 dev eth0

where, aaa.bbb.ccc.ddd is my static ip, and aaa.bbb.ccc.1
the ip of the DSL modem/gateway.

Here are the relevant, but non-functional
lines in /etc/network//interfaces:

iface eth0 inet static
  address aaa.bbb.ddd.ccc
  netmask 255.255.255.0
  gateway aaa.bbb.ddd.1

Any idea what could be broken?

I get nowhere with those lines in /etc/network/interface
and using the command ifup -a.  If there is no resolution
to this, where in the boot sequence should I put the
ifconfig and route commands?  (I tried adding a script
with those commands in /etc/network/if-up.d
with no succes either)

Thanks in advance for any and all advice.

|\|.

================================================================================

Hey you know something people?                      They won't go for no more
I'm not black, but there's a whole lotsa times      Great Midwestern hardware store
I wish I could say I'm not white.                   Philosophy that turns away
(1965, Frank Zappa in Trouble Every Day             From those who aren't afraid to say
 -> Freak Out)                                      What's on their mind -- The left behinds
                                                    Of The Great Society.
                                                    (1965, Frank Zappa in Hungry Freaks, Daddy
                                                     -> Freak Out)

 
 
 

Debian: No network with /etc/network/interfaces

Post by Bill Marcu » Tue, 26 Nov 2002 17:55:48


On 25 Nov 2002 04:09:13 GMT,

Quote:> Hi:

> Just starting a Debian 3.0r0 install from scratch.
> Network: DSL is bridged with static IP.

> I've read the man pages on the interfaces file but cannot
> get it to work.  Instead, I need to issue the folowing
> two commands before I can ping anything except localhost:

> ifconfig eth0 aaa.bbb.ccc.ddd up netmask 255.255.255.0
> route add default gw aaa.bbb.ccc.1 dev eth0

> where, aaa.bbb.ccc.ddd is my static ip, and aaa.bbb.ccc.1
> the ip of the DSL modem/gateway.

> Here are the relevant, but non-functional
> lines in /etc/network//interfaces:

On my system the first line of /etc/network/interfaces is
auto eth0

 
 
 

1. Debian: doc for /etc/network/interfaces, ifup, ifdown

Where can I find documentation for the ifupdown package that comes
with Debian?

I already looked at "man interfaces", "man ifup" and the
/usr/share/doc/ifupdown/examples/ directory.  

But I'm still confused about the "mapping" feature and about the
interface name.  For the mapping feature, it is not clear what it
does, and it is also unclear how the script that needs to be specified
is called and how does it return the results.

I _think_ the idea is that "ifup eth0" looks at the mapping section
for eth0, runs the script specified there, and uses the script output
to determine a `real' interface name foo, and then processes the
"iface foo" section.

For the interface name, ifconfig(8) says that it is "usually a driver
name followed by a unit number, for example eth0 for the first
Ethernet interface."  But I wonder if I can use different interface
names for the same ethernet card?  This would allow me to specify on
the command line the interface to use.

kai
--
Symbol's function definition is void: signature

2. Trouble mounting FreeBSD UFS under Linux

3. discovering the ip address of an interface without knowing any network info (like network, subnet, etc)

4. sed: extracting a pattern

5. Debian Linux does not install network interface

6. PPP won't work!

7. What is the fucntion of /etc/networks (In Debian 1.3.0) ?

8. Ethernet Card??

9. /etc/init.d/network not used in debian?

10. Two Network interface with the same network

11. Network Interface Driver for AIX - Questions for the Networking Gurus

12. single interface multiple networks + broadcast to all networks

13. Does AIX support Combine 2 network adaptor to form a single network interface using single IP