Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 8th October 2009, 19:12
awe awe is offline
Junior Member
 
Join Date: May 2009
Location: Tossa de Mar (Girona) Spain
Posts: 17
Thanks: 0
Thanked 3 Times in 3 Posts
Default How do I set up a virtual interface in Ubuntu Server?

The presence of "auto eth1:1" in /etc/network/interfaces brings up this error when networking starts: "Ignoring unknown interface eth1:1=eth1:1"

The network file is:

# The loopback network interface
auto lo
iface lo inet loopback

# LAN
auto eth0
iface eth0 inet static
address 192.168.10.1
network 192.168.10.0
netmask 255.255.255.0
broadcast 192.168.10.255

# Internet and virtual interface
auto eth1 eth0:1
iface eth1 inet static
address 192.168.10.2
netmask 255.255.255.0
network 192.168.10.0
gateway 192.168.10.198
broadcast 192.168.10.255

Any help is greatly appreciated.

Last edited by awe; 8th October 2009 at 19:14.
Reply With Quote
Sponsored Links
  #2  
Old 8th October 2009, 22:18
Franz Franz is offline
Senior Member
 
Join Date: Jul 2009
Location: Cakovec
Posts: 120
Thanks: 7
Thanked 24 Times in 18 Posts
Send a message via Skype™ to Franz
 
Default

all enrtys in virtual interface must have eth1:1:


auto eth1:1
iface eth1:1 inet static
address 192.168.10.2
netmask 255.255.255.0
network 192.168.10.0
gateway 192.168.10.198
broadcast 192.168.10.255
__________________
my PAGE
VoIP
my IT help blog
Reply With Quote
Reply

Bookmarks

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
User unknown in relay recipient table Taxick Installation/Configuration 12 9th April 2013 13:31
FTP cannot open remote folder!?! andysm849 Server Operation 23 17th October 2008 00:34
mail delivered in mbox patfee Installation/Configuration 8 11th December 2007 14:58
Problem with keeping Apache alive bobeq Server Operation 3 29th November 2007 17:11
Rejecting outbound mail tristanlee85 General 11 20th May 2007 18:04


All times are GMT +2. The time now is 15:38.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.