DebWrt

Debian on embedded devices

Welcome Guest 

Show/Hide Header

Welcome Guest, posting in this forum requires registration.





Pages: [1]
Author Topic: Communicating from qemu to the outside world
Erik
Newbie
Posts: 1
Post Communicating from qemu to the outside world
on: September 8, 2011, 11:46

I did follow the networksteps, but i got into problems when trying to use the tap and tun interfaces...

I have installed the mentioned packages
and can communicate with the outside world
I have
eth0 - 192.168.0.2 --- to communicate with my network and router (192.168.0.254)
eth0:1 - 192.168.1.2 -- to communicate with an asus device on 192.168.1.1

erik@britannica:/usr/src$ sudo ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:10:dc:9a:8e:e2
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::210:dcff:fe9a:8ee2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1009 errors:0 dropped:0 overruns:0 frame:0
TX packets:199 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:65243 (63.7 KiB) TX bytes:27988 (27.3 KiB)
Interrupt:19 Base address:0xec00

eth0:1 Link encap:Ethernet HWaddr 00:10:dc:9a:8e:e2
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:19 Base address:0xec00

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:15 errors:0 dropped:0 overruns:0 frame:0
TX packets:15 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1194 (1.1 KiB) TX bytes:1194 (1.1 KiB)

pan0 Link encap:Ethernet HWaddr 06:96:90:ea:dd:f9
BROADCAST 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:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

sudo modprobe tun
sudo tunctl -u erik -t tap0
Set 'tap0' persistent and owned by uid 1000
sudo ifconfig tap0 0.0.0.0
sudo brctl addbr br0
sudo brctl addif br0 tap0
sudo ifconfig eth0 0.0.0.0
sudo brctl addif br0 eth0
sudo ifconfig br0 192.168.0.24 netmask 255.255.255.192
sudo ifconfig br0:1 192.168.1.2 netmask 255.255.255.0

erik@britannica:/usr/src$ sudo ifconfig -a
br0 Link encap:Ethernet HWaddr 00:10:dc:9a:8e:e2
inet addr:192.168.0.24 Bcast:192.168.0.63 Mask:255.255.255.192
inet6 addr: fe80::210:dcff:fe9a:8ee2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:64 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:9632 (9.4 KiB)

br0:1 Link encap:Ethernet HWaddr 00:10:dc:9a:8e:e2
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

eth0 Link encap:Ethernet HWaddr 00:10:dc:9a:8e:e2
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:1217 errors:0 dropped:0 overruns:0 frame:0
TX packets:205 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:77723 (75.9 KiB) TX bytes:29527 (28.8 KiB)
Interrupt:19 Base address:0xec00

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:17 errors:0 dropped:0 overruns:0 frame:0
TX packets:17 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1384 (1.3 KiB) TX bytes:1384 (1.3 KiB)

pan0 Link encap:Ethernet HWaddr 06:96:90:ea:dd:f9
BROADCAST 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:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

tap0 Link encap:Ethernet HWaddr 36:9d:f9:85:e0:14
inet6 addr: fe80::349d:f9ff:fe85:e014/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:37 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

erik@britannica:/usr/src$ sudo brctl show
bridge name bridge id STP enabled interfaces
br0 8000.0010dc9a8ee2 no eth0
tap0
pan0 8000.000000000000 no

erik@britannica:/usr/src$ sudo brctl showmacs br0
port no mac addr is local? ageing timer
2 00:10:dc:9a:8e:e2 yes 0.00
1 36:9d:f9:85:e0:14 yes 0.00

erik@britannica:/usr/src$ ping 192.168.0.254
connect: Network is unreachable

And (of couse) i can also not communicate with my webbrowser to the internet.

erik@britannica:/usr/src$ netstat -r

Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.0.0 * 255.255.255.192 U 0 0 0 br0
192.168.1.0 * 255.255.255.0 U 0 0 0 br0

I dont understand why this is not working.
What did i forget ...?
Please help

Pages: [1]
Mingle Forum by cartpauj
Version: 1.0.33 ; Page loaded in: 0.02 seconds.