acid_kewpie that is what I was looking for...Thanks. I thought I need bridging but wasn't sure.
However I'm having trouble configuring the bridge, and I don't know how to debug it.
Basically I created TUN/TAP device called tap0 with tunctl command.
Then I need to create a bridge via:
Code:
sudo /usr/sbin/brctl addbr kvm-brigde
Then I do: (where eth0 is my wired ethernet card.
Code:
sudo /sbin/ifconfig tap0 0.0.0.0 up
sudo /sbin/ifconfig eth0 0.0.0.0 up
Then add the two interfaces to the bridge
Code:
sudo /usr/sbin/brctl addif kvm-bridge tap0
sudo /usr/sbin/brctl addif kvm-bridge eth0
Everything looks good:
Code:
bash-3.2$ /usr/sbin/brctl show
bridge name bridge id STP enabled interfaces
kvm-bridge 8000.0019db6d7272 no eth0
tap0
virbr0 8000.000000000000 no
So i decide to get a new ip address for eth0 via:
Code:
bash-3.2$ sudo /etc/init.d/network restart
Shutting down interface eth0: [ OK ]
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0:
Determining IP information for eth0... done.
[ OK ]
Which is a fedora core script. so i check to see if I have a new ip address:
Code:
eth0 Link encap:Ethernet HWaddr 00:19:DB:6D:72:72
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::219:dbff:fe6d:7272/64 Scope:Link
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:120119 errors:0 dropped:0 overruns:0 frame:0
TX packets:105029 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:78984845 (75.3 MiB) TX bytes:2
But when I ping my router I get this:
Code:
bash-3.2$ ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
From 192.168.1.100 icmp_seq=1 Destination Host Unreachable
From 192.168.1.100 icmp_seq=4 Destination Host Unreachable
From 192.168.1.100 icmp_seq=5 Destination Host Unreachable
I even ran tcpdump on eth0 and nothing show up when I'm pinging.
So I'm alittle confused how to debug this. my route looks like this:
Code:
bash-3.2$ /sbin/route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
192.168.122.0 * 255.255.255.0 U 0 0 0 virbr0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
Is there something I'm missing in order to start the bridge?
To get my internet connection back I remove the eth0 from the brigde:
Code:
sudo /usr/sbin/brctl delif kvm-bridge eth0
Thanks,
djgerbavor3