Code: Select all
Name: Debian Lenny
Guest OS: Other/Unknown
UUID: 57717d0c-8b0f-4f01-82eb-2ad6bbf7d17a
Config file: /root/.VirtualBox/Machines/Debian Lenny/Debian Lenny.xml
Memory size: 256MB
VRAM size: 8MB
Number of CPUs: 1
Boot menu mode: message and menu
Boot Device (1): DVD
Boot Device (2): DVD
Boot Device (3): HardDisk
Boot Device (4): Not Assigned
ACPI: on
IOAPIC: off
PAE: off
Time offset: 0 ms
Hardw. virt.ext: on
Nested Paging: off
VT-x VPID: off
State: running (since 2009-10-23T20:20:38.604000000)
Monitor count: 1
3D Acceleration: off
Floppy: empty
SATA: disabled
IDE Controller: PIIX4
Primary master: /home/virtual-box/Debian-Lenny.vdi (UUID: 671d897e-f539-46eb-bdbc-0b0b30a9b8b6)
DVD: empty
NIC 1: MAC: 080027A22A7C, Attachment: NAT (192.168/16), Cable connected: on, Trace: off (file: none), Type: Am79C973, Reported speed: 0 Mbps
NIC 2: disabled
NIC 3: disabled
NIC 4: disabled
NIC 5: disabled
NIC 6: disabled
NIC 7: disabled
NIC 8: disabled
UART 1: disabled
UART 2: disabled
Audio: disabled
Clipboard Mode: Bidirectional
Video mode: 720x400x0
VRDP: disabled
USB: disabled
USB Device Filters:
<none>
Available remote USB devices:
<none>
Currently Attached USB Devices:
<none>
Shared folders: <none>
VRDP Connection: not active
Clients so far: 0
Guest:
Statistics update: disabled
Code: Select all
eth1 Link encap:Ethernet HWaddr 00:00:b5:c4:64:09
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
Code: Select all
root@debian:~# cat /etc/dhcp3/dhcpd.conf
option domain-name "home.lan";
option domain-name-servers 192.168.0.1;
authoritative;
# subnet declaration
subnet 192.168.0.0 netmask 255.255.255.0 {
# ?????? ?? DHCP ??????? ?????? ?? ? ??-????? ?? 50,
# ??? ????? ?? ??????? 50-?? ??. ??-?? ????? ???? ??????
# ????? ?? ?????????? ?? ?????? ???? STATIC IP.
range 192.168.0.3 192.168.0.32;
# Gateway, ????? ?? ??????? ?????????.
option routers 192.168.0.1;
# ?????, ????? ?? ??????? ?????????, ??? ? ????? ?? ? 255.255.255.0
option subnet-mask 255.255.255.0;
# Broadcast , ????? ?? ??????? ?????????.
option broadcast-address 192.168.0.255;
# default-lease-time 600;
# max-lease-time 7200;
}
VirtualBox:
Code: Select all
root@nighthawk:~# ifconfig
eth0 Link encap:Ethernet HWaddr 08:00:27:a2:2a:7c
inet addr:192.168.0.15 Bcast:192.168.255.255 Mask:255.255.0.0
inet6 addr: fe80::a00:27ff:fea2:2a7c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1927 errors:0 dropped:0 overruns:0 frame:0
TX packets:1297 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:155443 (151.7 KiB) TX bytes:171255 (167.2 KiB)
Interrupt:11 Base address:0xd020
root@nighthawk:~# ping google.bg
PING google.bg (74.125.91.104) 56(84) bytes of data.
64 bytes from qy-in-f104.1e100.net (74.125.91.104): icmp_seq=1 ttl=63 time=502 ms
64 bytes from qy-in-f104.1e100.net (74.125.91.104): icmp_seq=2 ttl=63 time=503 ms
64 bytes from qy-in-f104.1e100.net (74.125.91.104): icmp_seq=3 ttl=63 time=504 ms
^C
--- google.bg ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 502.051/503.382/504.125/1.107 ms
root@nighthawk:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 192.168.0.2 0.0.0.0 UG 0 0 0 eth0
root@nighthawk:~# ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
From 192.168.0.15 icmp_seq=2 Destination Host Unreachable
From 192.168.0.15 icmp_seq=3 Destination Host Unreachable
From 192.168.0.15 icmp_seq=4 Destination Host Unreachable
^C
--- 192.168.0.1 ping statistics ---
4 packets transmitted, 0 received, +3 errors, 100% packet loss, time 3000ms
, pipe 3
root@nighthawk:~#
IP 192.168.0.1 is the ip of the real box.
I see manual for this but i dont know how to setup it. I mean:
http://www.virtualbox.org/wiki/Advanced ... king_Linux