Accessing Emulators over the network

Document created by cdnadmin on Jan 25, 2014
Version 1Show Document
  • View in full screen mode
This document was generated from CDN thread

Created by: Michael Shevenell on 18-09-2013 06:42:24 AM
The EmulatorUserGuide has some brief instructions on how to configure the emulators to be reachable over the network. It seems to revolve around obtaining DHCP addresses (in the 3node network) for:
   router1-:GigabitEthernet0/3
   router2-:GigabitEthernet0/2
   router3-:GigabitEthernet0/2
In our environment our IT folks would prefer to have static IPs assigned to these interfaces - so I have those configured in the emulators. These addresses are reachable from all emulated routers but not from the all-in-oine Linux VM. And they are not visible outside the VM at all. I've tired everything I could think of to make those available outside the all-in-one VM but with no success.

  Are there any suggestion on how to accomplish this.

Subject: RE: Accessing Emulators over the network
Replied by: Vinod Pandarinathan on 18-09-2013 06:50:02 PM
Hi Michael,

 By default, the interfaces you mention are bridged to the interface "eth1" on ubuntu.
So there are two things to check.
a) Does your eth1 have connectivity outside ?
b) Have you assigned the IP address from the same subnet as eth1 ?

After verifying 'a' and 'b', if it still does not work, please provide "route -n" output along with the IP address of eth1, and the virtual router interfaces.

Thanks

Subject: RE: Accessing Emulators over the network
Replied by: Joseph Clarke on 18-09-2013 09:16:40 PM
Assuming the AiO VM is installed on ESXi, make sure that the vNIC corresponding to eth1 is connected to a VLAN that is trunked and otherwise accessible through the ESXi host.  In addition to what Vinod mentioned, it would be helpful to understand more about how you've deployed the AiO VM in your virtual infrastructure.

Subject: RE: New Message from Vinod Pandarinathan in onePK Developer - Emulator inst
Replied by: Michael Shevenell on 19-09-2013 07:35:02 AM
a) Does your eth1 have connectivity outside ?
A: No, that is probably the root problem

b) Have you assigned the IP address from the same subnet as eth1 ?
B: Yes see below. Also worth noting I tried assigning the address (alternately) to eth1 and vb_ex_eth1 without success.
                                "route -n" with address assigned to eth1
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         10.241.0.1      0.0.0.0         UG    0      0        0 eth0
10.10.10.0      0.0.0.0         255.255.255.0   U     0      0        0 vb_vmc_lan_1
10.241.0.0      0.0.0.0         255.255.255.0   U     0      0        0 eth1
10.241.0.0      0.0.0.0         255.255.255.0   U     1      0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 eth0
192.168.122.0   0.0.0.0         255.255.255.0   U     0      0        0 virbr0

                                "route -n" with address assigned to vb_ex_eth1
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         tentwofortyonez 0.0.0.0         UG    0      0        0 eth0
10.10.10.0      *               255.255.255.0   U     0      0        0 vb_vmc_lan_1
10.241.0.0      *               255.255.255.0   U     0      0        0 vb_ex_eth1
10.241.0.0      *               255.255.255.0   U     1      0        0 eth0
link-local      *               255.255.0.0     U     1000   0        0 eth0
192.168.122.0   *               255.255.255.0   U     0      0        0 virbr0

-----------
all-in-one  VM
  ip address 10.241.0.24

eth1
  sudo ifconfig eth1 10.241.0.70 netmask 255.255.255.0

Router1 interface GigabitEthernet0/3
ip address 10.241.0.67 255.255.255.0

Router2 interface GigabitEthernet0/2
ip address 10.241.0.68 255.255.255.0

Router2 interface GigabitEthernet0/2
ip address 10.241.0.69 255.255.255.0

From: Cisco Developer Community Forums [mailto:cdicuser@developer.cisco.com]
Sent: Wednesday, September 18, 2013 7:50 PM
To: cdicuser@developer.cisco.com
Subject: New Message from Vinod Pandarinathan in onePK Developer - Emulator installation: RE: Accessing Emulators over the network

Vinod Pandarinathan has created a new message in the forum "Emulator installation": -------------------------------------------------------------- Hi Michael,

By default, the interfaces you mention are bridged to the interface "eth1" on ubuntu.
So there are two things to check.
a) Does your eth1 have connectivity outside ?
b) Have you assigned the IP address from the same subnet as eth1 ?

After verifying 'a' and 'b', if it still does not work, please provide "route -n" output along with the IP address of eth1, and the virtual router interfaces.

Thanks
--
To respond to this post, please click the following link: http://developer.cisco.com/web/onepk-developer/forum/-/message_boards/view_message/19367448 or simply reply to this email.

Subject: RE: New Message from Vinod Pandarinathan in onePK Developer - Emulator inst
Replied by: Vinod Pandarinathan on 19-09-2013 12:36:09 PM
Michael Shevenell:
a) Does your eth1 have connectivity outside ?
A: No, that is probably the root problem

VINOD>> Ok, As Joseph mentioned we need to understand where the all-in-one is deployed ?
a) On a ESXI, you need to go to the  virtual machine, network adapter setting and add the interface to the "VM Network"  that has uplink port attached.
b) If its running on vmPlayer, vmFusion, virtualbox, from the hypervisor setting you can try to set eth1 to bridge network.


b) Have you assigned the IP address from the same subnet as eth1 ?
B: Yes see below. Also worth noting I tried assigning the address (alternately) to eth1 and vb_ex_eth1 without success.
                                "route -n" with address assigned to eth1
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         10.241.0.1      0.0.0.0         UG    0      0        0 eth0
10.10.10.0      0.0.0.0         255.255.255.0   U     0      0        0 vb_vmc_lan_1
10.241.0.0      0.0.0.0         255.255.255.0   U     0      0        0 eth1
10.241.0.0      0.0.0.0         255.255.255.0   U     1      0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 eth0
192.168.122.0   0.0.0.0         255.255.255.0   U     0      0        0 virbr0

VINOD>> You need not assign the IP address to vmc_lan_1, that is used for routing packets from the virtual routers to the all-in-one VM. For. eg. you should be able to ping 10.10.10.30 from the all-in-one VM, when 3node topology is running.

At this point, your IP configs look fine. Is your eth0 and eth1 configured to the same subnet ? Which version of vmcloud are you using (vmcloud -V) ?

Thanks
Vinod.

"route -n" with address assigned to vb_ex_eth1
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         tentwofortyonez 0.0.0.0         UG    0      0        0 eth0
10.10.10.0      *               255.255.255.0   U     0      0        0 vb_vmc_lan_1
10.241.0.0      *               255.255.255.0   U     0      0        0 vb_ex_eth1
10.241.0.0      *               255.255.255.0   U     1      0        0 eth0
link-local      *               255.255.0.0     U     1000   0        0 eth0
192.168.122.0   *               255.255.255.0   U     0      0        0 virbr0

-----------
all-in-one  VM
  ip address 10.241.0.24

eth1
  sudo ifconfig eth1 10.241.0.70 netmask 255.255.255.0

Router1 interface GigabitEthernet0/3
ip address 10.241.0.67 255.255.255.0

Router2 interface GigabitEthernet0/2
ip address 10.241.0.68 255.255.255.0

Router2 interface GigabitEthernet0/2
ip address 10.241.0.69 255.255.255.0

From: Cisco Developer Community Forums [mailto:cdicuser@developer.cisco.com]
Sent: Wednesday, September 18, 2013 7:50 PM
To: cdicuser@developer.cisco.com
Subject: New Message from Vinod Pandarinathan in onePK Developer - Emulator installation: RE: Accessing Emulators over the network

Vinod Pandarinathan has created a new message in the forum "Emulator installation": -------------------------------------------------------------- Hi Michael,

By default, the interfaces you mention are bridged to the interface "eth1" on ubuntu.
So there are two things to check.
a) Does your eth1 have connectivity outside ?
b) Have you assigned the IP address from the same subnet as eth1 ?

After verifying 'a' and 'b', if it still does not work, please provide "route -n" output along with the IP address of eth1, and the virtual router interfaces.

Thanks
--
To respond to this post, please click the following link: http://developer.cisco.com/web/onepk-developer/forum/-/message_boards/view_message/19367448 or simply reply to this email.


Subject: RE: New Message from Vinod Pandarinathan in onePK Developer - Emulator inst
Replied by: Vinod Pandarinathan on 19-09-2013 12:37:46 PM
VINOD>> You need not assign the IP address to vmc_lan_1, that is used for routing packets from the virtual routers to the all-in-one VM. For. eg. you should be able to ping 10.10.10.30 from the all-in-one VM, when 3node topology is running.

You should be able to ping 
10.10.10.120

Attachments

    Outcomes