hello everyone,
im trying to set up a host interface for virtualbox on a laptop..
the idea is that for the guest OS to communicate with the host OS and get internet connectivity a virtual iface should be created in the host os (ubuntu 7.10) and consequently i should bridge this virtual iface with the ethernet iface (eth0) and a virtual bridge br0..
i tried using the automatic way (the scripts) as virtualbox help menu suggested, but i was losing the internet connectivity on my ppp0 connection.
so i tried the manual way too...
i used as a reference this guide
but i still lose the connectivity... i am almost sure it's smth to do with the routing table...
but i dunno how to solve it:
here is route -n
Quote:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.6.6.6 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 br0
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 ppp0
|
and this is ifconfig
Quote:
br0 Link encap:Ethernet HWaddr 00:a0:d1:20:41:64
inet addr:192.168.0.7 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::2a0:d1ff:fe20:4164/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:248 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:26950 (26.3 KB)
eth0 Link encap:Ethernet HWaddr 00:a0:d1:20:41:64
UP BROADCAST PROMISC MULTICAST MTU:1500 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:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:11
eth1 Link encap:Ethernet HWaddr 00:12:f0:72:d1:55
inet addr:192.168.0.11 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::212:f0ff:fe72:d155/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:545 errors:27 dropped:27 overruns:0 frame:0
TX packets:599 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:190926 (186.4 KB) TX bytes:169699 (165.7 KB)
Interrupt:11 Base address:0xc000 Memory:b000b000-b000bfff
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:2651 errors:0 dropped:0 overruns:0 frame:0
TX packets:2651 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:125803 (122.8 KB) TX bytes:125803 (122.8 KB)
ppp0 Link encap:Point-to-Point Protocol
inet addr:10.70.137.64 P-t-P:10.6.6.6 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:629 errors:0 dropped:0 overruns:0 frame:0
TX packets:715 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:92717 (90.5 KB) TX bytes:168364 (164.4 KB)
tap1 Link encap:Ethernet HWaddr 00:ff:5b:2e:41:b4
inet6 addr: fe80::2ff:5bff:fe2e:41b4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:14 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:0 (0.0 B) TX bytes:582 (582.0 B)
|
what i don't know is how to redirect a default gw from the br0 traffic to the ppp0... cause basically what happens is that i lose the ability to do ssh sessions
i tried like
route add default gw 10.6.6.6 br0 but it failed ...
how can i make sure default traffic (not for the 192.168.0.0 network) and unknown traffic (like dns) will go through the ppp0, so that i will have both a small local network between the host os and the guest os and at the same time be able to share the ppp connection with both..?
thank you in advance for your help
nass