LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-10-2012, 07:13 AM   #1
Mikken
LQ Newbie
 
Registered: Jan 2012
Posts: 4

Rep: Reputation: Disabled
Problem setting up virtual network card on ubuntu for use with Clonezilla


I am completely new to Linux/Ubuntu so please bear with me...
I'm trying to set up clonezilla se on a new install of ubuntu, following this tutorial:
http://geekyprojects.com/cloning/set...ver-on-ubuntu/

It mostly works out ok, but i have a problem setting up the virtual network card, ubuntu doesn't seem to accept my settings. This is my interfaces file:

Code:
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.3.113
netmask 255.255.255.0
broadcast 0.0.0.0
gateway 192.168.3.1

auto eth0:1
iface eth0 inet static
address 192.168.99.113
netmask 255.255.255.0
when I run ifconfig it doesn't find the eth0:1 card. I've tried to restart the network using
Code:
sudo /etc/init.d/networking restart
.

Have I forgotten something vital here?
 
Old 01-10-2012, 05:59 PM   #2
tsumaru
LQ Newbie
 
Registered: Jan 2012
Distribution: Ubuntu
Posts: 18

Rep: Reputation: Disabled
You're almost there. See below (my change is bold):

Code:
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.3.113
netmask 255.255.255.0
broadcast 0.0.0.0
gateway 192.168.3.1

auto eth0:1
iface eth0:1 inet static
address 192.168.99.113
netmask 255.255.255.0
 
Old 01-11-2012, 02:36 AM   #3
Mikken
LQ Newbie
 
Registered: Jan 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Hi Tsumaru!

Thanks for the reply, but sadly that wasn't the problem.
It seems what I've done with the settings here is correct, so something else have to be the problem. When I install DRBL, I can't select i586 CPU architecture, which is the recommended option, I have to go for "Use the same architecture as this DRBL server". Could this give me any problems? It's the only point where i have encountered any problems. I have to get Clonezilla up and running, if this doesn't work I will try to install Hardy and follow this guide instead
 
Old 01-11-2012, 04:49 AM   #4
Mikken
LQ Newbie
 
Registered: Jan 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
I have run these commands:

data@data-OptiPlex-380:~$ sudo /etc/init.d/networking restart
* Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces
* Reconfiguring network interfaces... RTNETLINK answers: File exists
Failed to bring up eth0.
Ignoring unknown interface eth0:0=eth0:0.

and:
ifconfig
eth0 Link encap:Ethernet HWaddr bc:30:5b:ac:fd:9b
inet addr:192.168.3.113 Bcast:192.168.3.255 Mask:255.255.255.0
inet6 addr: fe80::be30:5bff:feac:fd9b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6085 errors:0 dropped:0 overruns:0 frame:0
TX packets:3467 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5005680 (5.0 MB) TX bytes:521660 (521.6 KB)
Interrupt:16

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
 
Old 01-11-2012, 07:34 AM   #5
tsumaru
LQ Newbie
 
Registered: Jan 2012
Distribution: Ubuntu
Posts: 18

Rep: Reputation: Disabled
Not sure what to advise.. This is mine:

Code:
simon@bond:~$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
        address 87.117.217.27
        netmask 255.255.255.0
        network 87.117.217.0
        broadcast 87.117.217.255
        gateway 87.117.217.1

#VM Secondary
auto eth0:0
iface eth0:0 inet static
       address 87.117.217.44
       netmask 255.255.255.0
       network 87.117.217.0
       broadcast 87.117.217.255


iface bond0 inet static
        address 172.26.0.1
        netmask 255.255.255.0
        bond-slaves tun0 tun1
        bond_mode balance-rr


simon@bond:~$ ifconfig -a
bond0     Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:172.26.0.1  Bcast:172.26.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1
          RX packets:5613031 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8802585 errors:0 dropped:0 overruns:329452 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:348680962 (348.6 MB)  TX bytes:4163202641 (4.1 GB)

eth0      Link encap:Ethernet  HWaddr 08:00:27:3b:d1:de
          inet addr:87.117.217.27  Bcast:87.117.217.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fe3b:d1de/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:16327677 errors:0 dropped:0 overruns:0 frame:0
          TX packets:17585107 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:3323581223 (3.3 GB)  TX bytes:3757573202 (3.7 GB)

eth0:0    Link encap:Ethernet  HWaddr 08:00:27:3b:d1:de
          inet addr:87.117.217.44  Bcast:87.117.217.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

tun0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          UP POINTOPOINT RUNNING NOARP SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:5613031 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8802585 errors:0 dropped:0 overruns:329452 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:348680962 (348.6 MB)  TX bytes:4163202641 (4.1 GB)


Only difference i can see is mine starts at eth0:0 where yours is eth0:1, try making it eth0:0 and see what happens?

Once you have edited the interfaces file try just ifuping the new interface and see what happens?

Last edited by tsumaru; 01-11-2012 at 07:36 AM.
 
Old 01-11-2012, 11:12 AM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,976

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
I don't like the broadcast numbers.

In some rare cases a nic and or driver for nic can't support multiple ip's.

Since you have ubuntu I'd guess they compiles alias into it. Could check proc to see

Guess could try network gui if you have it installed. Forget command line to bring that up.


Try simple alias. ifconfig eth0:0 172.16.1.1 and see if that works.
 
Old 01-12-2012, 02:31 AM   #7
Mikken
LQ Newbie
 
Registered: Jan 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks man! That actually worked. BUT, Clonezilla prefers a Private class C IP - any clue why I can't use 192.168.x.x. IP's?

Is my network card/driver causing the problems?

Last edited by Mikken; 01-12-2012 at 02:36 AM.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up a virtual network using Virtualbox? Dralnu Linux - Networking 6 10-27-2010 03:08 AM
Lost in the network: setting up network on Laptop with virtual guest machines pdaalder Linux - Networking 1 02-16-2010 04:33 AM
LXer: Migrate to a virtual Linux environment with Clonezilla LXer Syndicated Linux News 0 04-22-2009 03:10 PM
Problem with setting up network card / network ssmeets Linux - Hardware 3 11-03-2005 03:46 PM
Setting up an old Network Card (Problem with modprobe) Bodycount Linux - Networking 8 10-10-2003 10:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration