VMware Communities
susuMIT
Contributor
Contributor

Connecting three v machines via a router

Hello,

So far, I'm not sure what is my problem. I'm creating a virtual netwrok consisting from three machines with different subnets and a router. I'm using Quagga as a router running on Ubuntu.

After installing and configuring everything. I can't ping between the machines. It's like the router is not directing the packets among the machines. I run RIP routing protocol.

I did show interface and found that the interface is up and line protocol detection is disabled.

Can someone help me.

Do I need three routers to connect the three subnet.

I knew that it may becouse I need to connect the machines and the router via a cross-over table. How this can be done in VMWare.

Thanks is advance.

Susu

0 Kudos
6 Replies
AWo
Immortal
Immortal

Welcome to the forums!

Give some more information, please:

1. "ifconfig -all" or "ipconfig /all" from all guests.

2. Is the router a guest, too?

3. What kind of Vmware network do you use? Bridged, NAT or host-only?

4. Routing table of your router.


If you found this information useful, please consider awarding points for "Correct" or "Helpful" replies. Thanks!!


AWo

VCP / vEXPERT 2009

vExpert 2009/10/11 [:o]===[o:] [: ]o=o[ :] = Save forests! rent firewood! =
0 Kudos
susuMIT
Contributor
Contributor

Hello AWo,

My three VMWare machines are running under CentOS 5.2

1.

first machine:

# ifconfig

eth0 Link encap:Ethernet HWaddr 00:0C:29:4C:95:2D

inet addr:192.168.1.3 Bcast:192.168.1.255 Mask:255.255.255.0

inet6 addr: fe80::20c:29ff:fe4c:952d/64 Scope:Link

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

RX packets:465 errors:0 dropped:0 overruns:0 frame:0

TX packets:5007 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:48206 (47.0 KiB) TX bytes:216656 (211.5 KiB)

Interrupt:185 Base address:0x1424

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:17549 errors:0 dropped:0 overruns:0 frame:0

TX packets:17549 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:0

RX bytes:23452763 (22.3 MiB) TX bytes:23452763 (22.3 MiB)

second machine

# ifconfig

eth0 Link encap:Ethernet HWaddr 00:0C:29:8F:2D:04

inet addr:192.168.3.3 Bcast:192.168.3.255 Mask:255.255.255.0

inet6 addr: fe80::20c:29ff:fe8f:2d04/64 Scope:Link

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

RX packets:374 errors:0 dropped:0 overruns:0 frame:0

TX packets:5768 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:33344 (32.5 KiB) TX bytes:248430 (242.6 KiB)

Interrupt:185 Base address:0x1400

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:18323 errors:0 dropped:0 overruns:0 frame:0

TX packets:18323 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:0

RX bytes:25827320 (24.6 MiB) TX bytes:25827320 (24.6 MiB)

third machine

# ifconfig

eth0 Link encap:Ethernet HWaddr 00:0C:29:D6:A1:93

inet addr:192.168.2.3 Bcast:192.168.2.255 Mask:255.255.255.0

inet6 addr: fe80::20c:29ff:fed6:a193/64 Scope:Link

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

RX packets:483 errors:0 dropped:0 overruns:0 frame:0

TX packets:4978 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:49251 (48.0 KiB) TX bytes:215158 (210.1 KiB)

Interrupt:185 Base address:0x1400

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:17655 errors:0 dropped:0 overruns:0 frame:0

TX packets:17655 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:0

RX bytes:25544448 (24.3 MiB) TX bytes:25544448 (24.3 MiB)

2. The router is a guest and running Ubuntu

3. I created 3 LANs (I'm not sure if this is right.) and add three adaptes to the router guest machine to connect each adapter to one of the three guest machines.

4. I use Quagga and rip.

I posted here the routing table, rip table, and show interface

quagga-router# show ip route

Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF,

I - ISIS, B - BGP, > - selected route, * - FIB route

C>* 127.0.0.0/8 is directly connected, lo

C>* 192.168.1.0/24 is directly connected, eth4

C>* 192.168.2.0/24 is directly connected, eth5

C>* 192.168.3.0/24 is directly connected, eth6

quagga-router#

quagga-router# show ip rip

Codes: R - RIP, C - connected, S - Static, O - OSPF, B - BGP

Sub-codes:

(n) - normal, (s) - static, (d) - default, (r) - redistribute,

:smileyinfo: - interface

Network Next Hop Metric From Tag Time

C(i) 192.168.1.0/24 0.0.0.0 1 self 0

C(i) 192.168.2.0/24 0.0.0.0 1 self 0

C(i) 192.168.3.0/24 0.0.0.0 1 self 0

quagga-router# show interface

Interface eth4 is up, line protocol detection is disabled

index 3 metric 1 mtu 1500

flags: <UP,BROADCAST,RUNNING,MULTICAST>

HWaddr: 00:0c:29:89:50:83

inet 192.168.1.2/24 broadcast 192.168.1.255

inet6 fe80::20c:29ff:fe89:5083/64

5708 input packets (0 multicast), 351510 bytes, 0 dropped

0 input errors, 0 length, 0 overrun, 0 CRC, 0 frame

0 fifo, 0 missed

498 output packets, 46128 bytes, 0 dropped

0 output errors, 0 aborted, 0 carrier, 0 fifo, 0 heartbeat

0 window, 0 collisions

Interface eth5 is up, line protocol detection is disabled

index 4 metric 1 mtu 1500

flags: <UP,BROADCAST,RUNNING,MULTICAST>

HWaddr: 00:0c:29:89:50:8d

inet 192.168.2.2/24 broadcast 192.168.2.255

inet6 fe80::20c:29ff:fe89:508d/64

5911 input packets (0 multicast), 356899 bytes, 0 dropped

0 input errors, 0 length, 0 overrun, 0 CRC, 0 frame

0 fifo, 0 missed

491 output packets, 46169 bytes, 0 dropped

0 output errors, 0 aborted, 0 carrier, 0 fifo, 0 heartbeat

0 window, 0 collisions

Interface eth6 is up, line protocol detection is disabled

index 2 metric 1 mtu 1500

flags: <UP,BROADCAST,RUNNING,MULTICAST>

HWaddr: 00:0c:29:89:50:79

inet 192.168.3.2/24 broadcast 192.168.3.255

inet6 fe80::20c:29ff:fe89:5079/64

5693 input packets (0 multicast), 350610 bytes, 0 dropped

0 input errors, 0 length, 0 overrun, 0 CRC, 0 frame

0 fifo, 0 missed

497 output packets, 46532 bytes, 0 dropped

0 output errors, 0 aborted, 0 carrier, 0 fifo, 0 heartbeat

0 window, 0 collisions

Interface lo is up, line protocol detection is disabled

index 1 metric 1 mtu 16436

flags: <UP,LOOPBACK,RUNNING>

inet 127.0.0.1/8

inet6 ::1/128

584 input packets (0 multicast), 39320 bytes, 0 dropped

0 input errors, 0 length, 0 overrun, 0 CRC, 0 frame

0 fifo, 0 missed

584 output packets, 39320 bytes, 0 dropped

0 output errors, 0 aborted, 0 carrier, 0 fifo, 0 heartbeat

0 window, 0 collisions

Interface pan0 is down

index 5 metric 1 mtu 1500

flags: <BROADCAST,MULTICAST>

HWaddr: a2:4b:ae:7b:f9:bc

0 input packets (0 multicast), 0 bytes, 0 dropped

0 input errors, 0 length, 0 overrun, 0 CRC, 0 frame

0 fifo, 0 missed

0 output packets, 0 bytes, 0 dropped

0 output errors, 0 aborted, 0 carrier, 0 fifo, 0 heartbeat

0 window, 0 collisions

I also attach my topology as a word doc.

Please help.

Susu

0 Kudos
AWo
Immortal
Immortal

That looks fine so far. Let's have a look at your virtual networks.

Which host OS do you use? Can you post screenshots of the Virtual Network Editor?

Otherwise describe which VMnet is used for bridging, NAT, "host-only" and your three networks. Describe which guest uses which VMnet.


If you found this information useful, please consider awarding points for "Correct" or "Helpful"

replies. Thanks!!


AWo

VCP / vEXPERT 2009

vExpert 2009/10/11 [:o]===[o:] [: ]o=o[ :] = Save forests! rent firewood! =
0 Kudos
susuMIT
Contributor
Contributor

My host machine is Vista and here is a screenshot of my virtual editor..

0 Kudos
AWo
Immortal
Immortal

Try this:

Delete the team, for now. Open the Virtual network Editor and assign different IP addresses to the virtual networks VMnet2,3 and 4.

Assign on of these networks to the vNIC of each guest and the router should be member of all three networks.

Configure the guests IP setup accordingly to these three networks.


If you found this information useful, please consider awarding points for "Correct" or "Helpful" replies. Thanks!!


AWo

VCP / vEXPERT 2009

vExpert 2009/10/11 [:o]===[o:] [: ]o=o[ :] = Save forests! rent firewood! =
0 Kudos
susuMIT
Contributor
Contributor

Hello AWo,

I solved the problem by using wireshark.

I noticed that the interfaces order are different that what I applied in the team setting.

I swaped the interfaces and everything is working now..

Thanks a lot...

Susu

0 Kudos