Networking Forums

Networking Forums > Computer Networking > Linux Networking > Assigning virtual Interfaces to Debian 5

Reply
Thread Tools Display Modes

Assigning virtual Interfaces to Debian 5

 
 
The Doctor
Guest
Posts: n/a

 
      03-24-2009, 01:38 PM
Finally got Debian 5 to behave.

Only 2 issues now:

how to set up a virtual interface

and

How to make certain resolv.conf is not erased on a reboot.


What has chaged from Debian 4 to Debian 5?
--
Member - Liberal International This is (E-Mail Removed)
Ici (E-Mail Removed) God, Queen and country! Beware Anti-Christ rising!
Never Satan President Republic!
Point to http://tv.cityonahillproductions.com/
 
Reply With Quote
 
 
 
 
Chris Davies
Guest
Posts: n/a

 
      03-24-2009, 03:23 PM
In comp.os.linux.misc The Doctor <(E-Mail Removed)> wrote:
> how to set up a virtual interface
> How to make certain resolv.conf is not erased on a reboot.


Are you (now) using NetworkManager, or are you using
/etc/network/interfaces to define network configuration?

If it's NetworkManager I can't help you. Otherwise I'll have a go.
Chris
 
Reply With Quote
 
Bill Marcum
Guest
Posts: n/a

 
      03-24-2009, 03:28 PM
["Followup-To:" header set to comp.os.linux.setup.]
On 2009-03-24, The Doctor <(E-Mail Removed)> wrote:
>
>
> Finally got Debian 5 to behave.
>
> Only 2 issues now:
>
> how to set up a virtual interface
>
> and
>
> How to make certain resolv.conf is not erased on a reboot.
>

Uninstall the resolvconf package, or learn how to set its defaults.

>
> What has chaged from Debian 4 to Debian 5?


Release notes should be available at debian.org.

 
Reply With Quote
 
The Doctor
Guest
Posts: n/a

 
      03-24-2009, 06:00 PM
In article <(E-Mail Removed)>,
Chris Davies <(E-Mail Removed)> wrote:
>In comp.os.linux.misc The Doctor <(E-Mail Removed)> wrote:
>> how to set up a virtual interface
>> How to make certain resolv.conf is not erased on a reboot.

>
>Are you (now) using NetworkManager, or are you using
>/etc/network/interfaces to define network configuration?
>
>If it's NetworkManager I can't help you. Otherwise I'll have a go.
>Chris


/etc/network/interfaces
--
Member - Liberal International This is (E-Mail Removed)
Ici (E-Mail Removed) God, Queen and country! Beware Anti-Christ rising!
Never Satan President Republic!
Point to http://tv.cityonahillproductions.com/
 
Reply With Quote
 
Chris Davies
Guest
Posts: n/a

 
      03-24-2009, 08:16 PM
In comp.os.linux.misc The Doctor <(E-Mail Removed)> wrote:
> how to set up a virtual interface
> How to make certain resolv.conf is not erased on a reboot.


> [this is using] /etc/network/interfaces


OK.

1. Create a vIF by naming it in the same way that you would for eth0 or
wlan0, etc. Here's a line from a firewall I look after:

auto eth1:5
iface eth1:5 inet static
address 10.1.30.190
netmask 255.255.255.224
broadcast 10.1.30.191

After that it "just works". Or did you mean that you wanted a TUN/TAP
interface, or a Bridge? You can invent these by using the pre-up and up
lines for your required interface.


2. Leaving resolv.conf alone

* Have you removed the resolvconf package?

* If you're using ppp* have you told it to leave your resolv.conf alone?

* If you're using dhclient, try this:
echo 'make_resolv_conf () { return 0; }' > /etc/dhcp3/dhclient-enter-hooks.d/local

Chris
 
Reply With Quote
 
The Doctor
Guest
Posts: n/a

 
      03-24-2009, 11:07 PM
In article <(E-Mail Removed)>,
Chris Davies <(E-Mail Removed)> wrote:
>In comp.os.linux.misc The Doctor <(E-Mail Removed)> wrote:
>> how to set up a virtual interface
>> How to make certain resolv.conf is not erased on a reboot.

>
>> [this is using] /etc/network/interfaces

>
>OK.
>
>1. Create a vIF by naming it in the same way that you would for eth0 or
>wlan0, etc. Here's a line from a firewall I look after:
>
> auto eth1:5
> iface eth1:5 inet static
> address 10.1.30.190
> netmask 255.255.255.224
> broadcast 10.1.30.191
>
>After that it "just works". Or did you mean that you wanted a TUN/TAP
>interface, or a Bridge? You can invent these by using the pre-up and up
>lines for your required interface.
>


NO TUN interface or bridge.

Let me try the above.

>
>2. Leaving resolv.conf alone
>
> * Have you removed the resolvconf package?
>
> * If you're using ppp* have you told it to leave your resolv.conf alone?
>


All right, let me look at that.

> * If you're using dhclient, try this:
> echo 'make_resolv_conf () { return 0; }' >
>/etc/dhcp3/dhclient-enter-hooks.d/local
>
>Chris



--
Member - Liberal International This is (E-Mail Removed)
Ici (E-Mail Removed) God, Queen and country! Beware Anti-Christ rising!
Never Satan President Republic!
Point to http://tv.cityonahillproductions.com/
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Allocating many 'net_device's (virtual interfaces) tal.omer.17@gmail.com Linux Networking 6 02-03-2008 09:16 AM
Assigning IP to virtual network interface under chroot() jail. latin0511@gmail.com Linux Networking 3 09-04-2006 07:05 PM
How to use ospfd and zebra on virtual interfaces? sandy Linux Networking 0 10-28-2005 07:53 AM
Virtual Ethernet Interfaces Troy C Linux Networking 6 10-10-2004 10:52 PM
Help with dhcpd and virtual interfaces noc Linux Networking 1 07-10-2003 04:59 PM



1 2 3 4 5 6 7 8 9 10 11