How to create network bridge to start my Debian Lenny ....

Discussions related to using VirtualBox on Linux hosts.
Post Reply
d3v1ous
Posts: 14
Joined: 9. Sep 2009, 10:55
Primary OS: Debian Lenny
VBox Version: OSE Debian
Guest OSses: Debian Lenny

How to create network bridge to start my Debian Lenny ....

Post by d3v1ous »

Hello, my real system is Debian Lennny, My VirtualBox Is the same, both without graphic environment.

I want to make network bridge because i configured my virtual host with static interface from my local network..

How to do this?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: How to create network bridge to start my Debian Lenny ....

Post by Perryg »

Drop this create a network bridge in lenny on VBox in Google.com there are a few things that that will help as well as a few problems indicated by Debian.
d3v1ous
Posts: 14
Joined: 9. Sep 2009, 10:55
Primary OS: Debian Lenny
VBox Version: OSE Debian
Guest OSses: Debian Lenny

Re: How to create network bridge to start my Debian Lenny ....

Post by d3v1ous »

Ok, mine configuration after creating the bridge:

Code: Select all

root@warbox-co-cc:~# VBoxManage showvminfo Debian-Test-Box | grep "NIC 1"
NIC 1:           MAC: 08002731ACA4, Attachment: Bridged Interface 'vbox-1', Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps
root@warbox-co-cc:~#

Code: Select all

root@warbox-co-cc:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0d:87:3d:dc:47
          inet addr:192.168.10.10  Bcast:192.168.10.255  Mask:255.255.255.0
          inet6 addr: fe80::20d:87ff:fe3d:dc47/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3588 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2516 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:334554 (326.7 KiB)  TX bytes:346993 (338.8 KiB)
          Interrupt:11 Base address:0xd400

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)

vbox-1    Link encap:Ethernet  HWaddr 00:ff:41:4b:6a:d4
          inet addr:192.168.10.11  Bcast:192.168.10.255  Mask:255.255.255.0
          inet6 addr: fe80::2ff:41ff:fe4b:6ad4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:6 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
root@warbox-co-cc:~#

Code: Select all

root@warbox-co-cc:~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.10.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0
192.168.10.0    0.0.0.0         255.255.255.0   U     0      0        0 vbox-1
0.0.0.0         192.168.10.254  0.0.0.0         UG    0      0        0 eth0
root@warbox-co-cc:~#
The ip of my real box is: 192.168.10.10, i want to setup ip 192.168.10.11 to my virtualbox, but with this configuration when i try to ssh to 192.168.10.11 i was connected to 192.168.10.10, the virtualbox working or stoping is with no sense
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: How to create network bridge to start my Debian Lenny ....

Post by Sasquatch »

If the VM needs to be like a normal physical machine, you no longer need a virtual NIC for the bridge. At least, since version 2.1.0 (check the changelogs for the exact version), you no longer need it. You select the NIC directly. For the VM, you simply configure it with the IP you want it to have.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
d3v1ous
Posts: 14
Joined: 9. Sep 2009, 10:55
Primary OS: Debian Lenny
VBox Version: OSE Debian
Guest OSses: Debian Lenny

Re: How to create network bridge to start my Debian Lenny ....

Post by d3v1ous »

Can you give me example how to configure the ip of the virtualbox?
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: How to create network bridge to start my Debian Lenny ....

Post by Sasquatch »

IP configuration is not done in VB, it's in the OS itself. If you don't know, Google it.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
d3v1ous
Posts: 14
Joined: 9. Sep 2009, 10:55
Primary OS: Debian Lenny
VBox Version: OSE Debian
Guest OSses: Debian Lenny

Re: How to create network bridge to start my Debian Lenny ....

Post by d3v1ous »

SPAM_SEARCH... not want to working for me..

Code: Select all

root@warbox-co-cc:~# VBoxManage showvminfo Debian-Test-Box | grep "NIC 1"
NIC 1:           MAC: 08002731ACA4, Attachment: Bridged Interface 'eth0', Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps
root@warbox-co-cc:~#

Code: Select all

root@warbox-co-cc:~# VBoxManage hostonlyif ipconfig eth0 --ip 192.168.10.11
I cant ssh to the box when i ran it..
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: How to create network bridge to start my Debian Lenny ....

Post by Sasquatch »

You're confusing Host-Only with Host Interface, the name changed a few versions back. Host-Only is as the manual states, only the Host, no outside connections possible (VMs and Host connections only). Host Interface is renamed to Bridged to avoid confusions with Host-Only.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Post Reply