:: [DNG] interfaces.d question
Pàgina inicial
Delete this message
Reply to this message
Autor: Gregory Nowak
Data:  
A: dng
Assumpte: [DNG] interfaces.d question
Hi All,
assume the following:

--- start /etc/network/interfaces.d/staticlan ---
iface eth0 inet static
address 192.168.1.1
netmask 255.255.255.0
# no gateway

--- end /etc/network/interfaces.d/staticlan ---

--- start /etc/network/interfaces/dynamiclan ---
iface eth0 inet dhcp

--- end /etc/network/interfaces.d/dynamiclan ---

If I do:

ifup staticlan
or:
ifup dynamiclan

I get:

"staticlan: unknown interface"

Same for dynamiclan

That makes sense, since there are no such physical interfaces in the
system. However, for ppp links the following works:

iface dsllink inet ppp
provider dsl-provider
...

This works, even though there is no such physical interface as
dsllink. This leads me to believe that what I want to do is
possible. However, I've read interfaces(5), and don't see there
anything that suggests how to do what I want to do.

So, Is it possible for me to define interfaces based on
/etc/network/interfaces.d/* instead of physical interfaces,
even though those interfaces don't
actually exist? If yes, then can someone either point me to an
explanation of how to do that, or can someone please explain how to do
that? Thanks.

Greg


--
web site: http://www.gregn.net
gpg public key: http://www.gregn.net/pubkey.asc
skype: gregn1
(authorization required, add me to your contacts list first)
If we haven't been in touch before, e-mail me before adding me to your contacts.

--
Free domains: http://www.eu.org/ or mail dns-manager@???