Dynamips Virtual Router not pinging external host after bridging
- by maiky
I have setup a virtual router image with dynamips and setup bridging between tap0 interface of the virtual router and eth0 and br0 with commands
[root@cisco_host]# brctl addbr br0
[root@cisco_host]# ifconfig br0 up
[root@cisco_host]# ifconfig eth1 0.0.0.0
[root@cisco_host]# brctl addif br0 eth1
[root@cisco_host]# ifconfig br0 192.168.0.100 netmask 255.255.255.0 up
In dynagen configuration I have: f0/0 = NIO_tap:tap0
So,
[root@cisco_host]# brctl addif br0 tap0
[root@cisco_host]# ifconfig tap0 up
router(config)#int fa0/0
router(config-if)#ip address 192.168.0.101 255.255.255.0
router(config-if)#no shutdown
After the configuration above I was expecting that from inside the router I could ping an external machine with IP 192.168.0.1
Actually from the host I can ping the external host 192.168.0.1 as well as 192.168.0.100 and 192.168.0.101.
So what am I missing here? tap0 is bridged with br0 and in turn with eth1. So why the router is not pingable from 192.168.0.1 and vice-versa??