Page 1 of 1
internal networking without bridging
Posted: 24. Jul 2009, 15:06
by dcdieci
Hi,
i know this topic has been discussed for several times but i dont get my internal network working correctly.
i have a lenovo netbook r61 as a host system with vista (192.168.2.50) behind a router (192.168.0.1). i do want to run ubuntu 9.04 in virtualbox and connect internally with a static ip e.g. 192.168.2.51. (from vista host to ubuntu client).
i dont want to use bridging. i tried bridging but it resulted in a system freeze for several times.(this could be an issue due to the network adapter (Intel(R) Wireless WiFi Link 4965AGN).
is there an option to handle this?
br dc
Re: internal networking without bridging
Posted: 24. Jul 2009, 15:10
by baf
If you want it on the same net as your host then it must be bridged.
Re: internal networking without bridging
Posted: 24. Jul 2009, 15:16
by dcdieci
ah ok.
actually it must not be in the same net. i just need a static address, so i can access apache and the system via ssh from my vista host.
Re: internal networking without bridging
Posted: 24. Jul 2009, 15:23
by baf
Then I would suggest using two network interfaces. One NAT to reach internet. One host only which will give full access between host and guest. This could be set to a static address in the guest. Host already has a defined one 192.168.56.1 unless one changes things.
Re: internal networking without bridging
Posted: 24. Jul 2009, 15:39
by dcdieci
baf wrote:Then I would suggest using two network interfaces. One AT to reach internet. One host only which will give full access between host and guest. This could be set to a static address in the guest. Host already has a defined one 192.168.56.1 unless one changes things.
hi,
thats what i already tried. i choose 2 adapter one nat (for internet) and one for the internal communication between host and client with static ip, i choose "host only" adapter. ->boot ->inet ist working
output /etc/network/interfacesl
Code: Select all
auto lo
iface lo inet loopback
auto eth0
ifconfig
Code: Select all
ubuntu@ubuntu:~$ ifconfig
eth1 Link encap:Ethernet HWaddr 08:00:27:0c:2c:2a
inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe0c:2c2a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:754 errors:0 dropped:0 overruns:0 frame:0
TX packets:492 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:817304 (817.3 KB) TX bytes:59873 (59.8 KB)
Interrupt:11 Base address:0xd020
eth2 Link encap:Ethernet HWaddr 08:00:27:f7:07:d9
inet addr:192.168.56.101 Bcast:192.168.56.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fef7:7d9/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:21 errors:0 dropped:0 overruns:0 frame:0
TX packets:23 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3062 (3.0 KB) TX bytes:4171 (4.1 KB)
Interrupt:10 Base address:0xd240
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:12 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
so now i tried to edit coonections in network connection manager. there i see eth1 and eth2.
i addes address 192.168.2.54 netmask 255.255.255.0 gateway 192.168.2.1 for eth2
but im still not able to ping from my vista client. the other direction is working pinging from ubuntu to vista .
any ideas?
Re: internal networking without bridging
Posted: 24. Jul 2009, 16:26
by baf
remove
/etc/udev/rules.d/70-persistent-net.rules
in your guest and add
auto eth1
to your interfaces then reboot it.
After that come back with your ifconfig if it doesnt work.
Re: internal networking without bridging
Posted: 24. Jul 2009, 16:44
by dcdieci
hi,
i made the changes as recommended but inet is not working any longer. and i cannot ping to the router
ifconfig
eth0
inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
...
eth1
inet addr:192.168.2.55 Bcast:192.168.2.255 Mask:255.255.255.0
Re: internal networking without bridging
Posted: 24. Jul 2009, 16:49
by baf
Remove the static addresses you set up and let it be on dhcp to start with.
Re: internal networking without bridging
Posted: 24. Jul 2009, 16:56
by dcdieci
hi,
ty for helping.
inet ist working and i can ping the host from the ubuntu shell but how can i access the opposit way regarding the client does not have a static ip ?
ifconfig shows me 192.168.56.101 for eth2 and i can ping from host.
but i cannot lookup the ip every time i boot, how can i make it static?
kind regards
Re: internal networking without bridging
Posted: 24. Jul 2009, 17:17
by baf
Now with everything working set the internal interface to static with ip 192.168.56.101 and mask 255.255.255.0 but NO GATEWAY.
Re: internal networking without bridging
Posted: 24. Jul 2009, 17:38
by dcdieci
i changed the following
iface eth1 inet static
address 192.168.56.101
netmask 255.255.255.0
but ifconfig does not show eth1 any longer, only eth0
furthermore inet connection ist getting slow
Re: internal networking without bridging
Posted: 24. Jul 2009, 17:57
by baf
Here is my /etc/network interfaces, how does your look now. also again ifconfig -a
Code: Select all
auto lo eth0 eth1
iface lo inet loopback
iface eth0 inet static
address 10.0.2.15
netmask 255.255.255.0
gateway 10.0.2.2
iface eth1 inet static
address 192.168.56.100
netmask 255.255.255.0
Re: internal networking without bridging
Posted: 24. Jul 2009, 18:27
by dcdieci
hi,
i copied your interfaces conf and rebooted the system.
and now the network ist not getting up (i cannot post ifconfig output, because inet is not available)
iconfig -a
does not show for eth0 and eth1 addrress netmask and broadcast
ubuntus network manager does not show any entry
update
right now i changed interfaces to
auto eth0
and ifconfig shows me that eth0 gets the usual ip address via dhcp
10.2....
but eth1 witht the static settings is not shown
and i do get a very slow internet connection