LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   Vmware internet sharing problem in bridge mode (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/vmware-internet-sharing-problem-in-bridge-mode-4175506737/)

Aliasger 06-02-2014 03:45 AM

Vmware internet sharing problem in bridge mode
 
Hello everyone,

I have host machine Win-XP which work with two nic eth0 (192.168.150.21) and eth1 (192.168.150.150), and wi-fi connection.

In vmware guest machine i have two os (rhel4 and rhel5)

Rhel4 is working with successful internet connectivity on nat mode.

But problem arise in rhel5 where i want to use bridge mode with internet connection, it doesn't seems okay, i cannot resolve internet sharing from host but can do 3-way handshake even in a network.

In the rhel5 guest ip address

eth0: 192.168.150.222
eth1: 192.168.150.223
gateway 192.168.150.21

I need your valuable comments,
Thanks in advance who wish to help me.

dijetlo 06-04-2014 04:06 PM

Quote:

eth0: 192.168.150.222
eth1: 192.168.150.223
gateway 192.168.150.21
Let me start by saying I don't know anything about RHEL, so it may have facilities to troubleshoot this, but your extended IP address doesn't look like this, does it?
eth0: 192.168.150.222\255.255.255.127
eth1: 192.168.150.223\255.255.255.127
gateway 192.168.150.21255.255.255.0

GaWdLy 06-09-2014 09:54 PM

What, exactly, is the problem? Does the RHEL5 vm have internet access with 1 IF? Does it only lose internet access with a bridge in place?

Please put the output of 'ip addr show' into the thread.

Aliasger 06-10-2014 02:44 AM

Hello and thanks alot you people who gave me reply,

actually problem here is not getting internet on my rhel5 vm guest machine - bridge mode where seems all things okay but still no internet.

here for more detail i add my snaps of rhel5

==>ip a s
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000
inet 192.168.150.222/24 brd 192.168.150.255 scope global eth0
valid_lft forever preferred_lft forever
3: sit0: <NOARP> mtu 1480 qdisc noop
link/sit 0.0.0.0 brd 0.0.0.0
# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]

==>ifconfig
DEVICE=eth0
HWADDR=00:0c:29:7a:ea:1f
ONBOOT=yes
TYPE=Ethernet
NETMASK=255.255.255.0
IPADDR=192.168.150.222
GATEWAY=192.168.150.21

==>netstat -r
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.150.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
default 192.168.150.21 0.0.0.0 UG 0 0 0 eth0

==>ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
--- 8.8.8.8 ping statistics ---
26 packets transmitted, 0 received, 100% packet loss, time 25030ms

NOTE: PORT 53 NOT RESOLVE WITH CORRECT DNS OR IP ADDR.

==>/etc/resolve.conf
nameserver 192.168.19.1


now this is on windows-xp ifconfig file
Windows IP Configuration

Ethernet adapter VMware Network Adapter VMnet8:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.23.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :

Ethernet adapter VMware Network Adapter VMnet1:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.134.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :

Ethernet adapter Local Area Connection 2:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.150.21
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.150.254

Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.150.150
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.150.254

Ethernet adapter Wireless Network Connection 3:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.19.2
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.19.1

on other hand rhel4 vm guest machine (2nd vm guest - nat mode) works charm because that mode has its own dhcp.

please see if i am doing anything wrong here so correct me.
thanks again for your comments

GaWdLy 06-10-2014 05:57 AM

If you put your RHEL 5 box into dhcp mode, doe it magically get Internet access?

Aliasger 06-11-2014 01:25 AM

Hello,

i already tried but not getting ip addr from dhcp and eventually i set up with my physical adapter into bridge mode by using vmware network editor in order to provide dhcp-client on rhel5 but bad luck.

currently: if i put manual ip addr on my vm guest RHEL5 so works fine with network connectivity but no internet sharing from host but if i put dhcp mode on host pc so does't fatch ip addr.

please suggest me how to set internet connection with running lan connectivity on bridge mode.

GaWdLy 06-11-2014 01:32 AM

Set the network for RHEL 5 up exactly as you have for the RHEL 4 box. If the vmware and Linux sides are configured the same, you should get the same results for both Linux vms.

Aliasger 06-11-2014 03:06 AM

Hi,
Can you give me some idea how can i do that bcoz on nat 192.168.23.0/24 with auto dhcp by vms and on bridge 168.168.150.0/24 totally different ip subnets.

thanks if any one can reply.

Aliasger 06-12-2014 03:37 AM

Share host internet to vm guest(RHEL5 - BRIDGE MODE) static ip address SOLVED
 
Hello Ever1,

FINALLY I RESOLVED THE PROBLEM, AND THANKS FOR THOSE GUYS WHO HAD READ THIS POST AND GAVE ME SOME VALUABLE COMMENTS,

I WANT TO SHARE SOME POINTS WITH SOLUTION FOR THOSE WHO ARE FACING THIS PROBLEM AND UNABLE TO SHARE INTERNET FROM HOST TO VMS
LINUX BRIDGE(mode) network.

NOTE: CONSIDER LIKE YOUR MACHINE HAVE ONLY ONE NIC (DOESN'T MATTER HOW MANY NIC IN YOUR SYSTEM).

PROBLEM:
Host Machine: Window XP
Nic:
Ip: 192.168.150.21
Netmask: 255.255.255.0
G/w: 192.168.150.21

wireless or modem or ppp0e:
ip: 12.168.19.223(dhcp by internet provider)
Netmask: 255.255.255.0
G/w: 12.168.19.1
dns: 8.8.8.8

Vmware Nic on vmware network editor:

vmnet0: Bridge Network(auto bridge by default)
ip: on vmbox ip assign by dhcp or manually for network connectivity
FOR 3WAY HANDSHAKE IN A NETWORK, LIKE PHYSICAL PC.

vmnet1: Host Network (auto Host by default)
ip: 192.168.134.0, assign ip address randomly by dhcp from vms services and can be change by manually
FOR 3WAY HANDSHAKE ONLY FOR WINDOWS-XP TO VMWARE BOX.

vmnet8: Nat Network (auto Nat by default)
ip: 192.168.23.0, assign ip address randomly by dhcp from vms services and can be change by manually
FOR 2WAY HANDSHAKE ONLY FOR VMWARE BOX TO EXTERNAL NETWORK, OUT SIDE PHYSICAL NETWORK WILL NOT DETERMINE THIS vm-box PC.

GOTO WIRELESS NIC ADAPTER,
RIGHT CLICK,
CHECK ANTIVIRUS FIREWALL (SHOULD BE ENABLE)
CHECK VMWARE BRIDGE PROTOCAL (SHOULD BE ENABLE)
ON ADVANCED TAB --> ALLOW OTHER NETWORK USERS TO CONNECT THROUGH THIS COMPUTER'S INTERNET CONNECTION,
AND LOCATE TO VMNET1(Reminder this is for host network), and this step will ask you to set ip by 192.168.0.1 for internet

sharing, press ok and again ok.

GOTO VMWARE NETWORK VMNET1 ADAPTER,
RIGHT CLICK
CHECK ANTIVIRUS OR ANY FIREWALL (SHOULD BE DISABLE, OTHERWISE ANY FIREWALL WILL BLOCK YOUR INTERNET TO SHARE.)
CHECK VMWARE OR VIRUTAL-BOX BRIDGE PROTOCAL (SHOULD BE ENABLE)
CHECK FILE AND PRITER SHARING (SHOULD BE ENABLE)
IP ADDR: 192.168.0.1
NETMASK: 255.255.255.0
G/W: LEAVE IT
DNS: 8.8.8.8(OR ANY THING ELSE WHAT YOU SEE ON WIRELESS, MODEM, PPP0E NIC)

NOW TIME TO MOVE YOUR LINUX BOX(vm guest RHEL5 pc)
vim /etc/sysconfig/network
networking=yes
hostname=anything.you-can-put.com
(save and exit)

system-config-network-tui(static ip address)
Ip: 192.168.150.222
Netmask 255.255.255.0
G/w: 192.168.150.21
(Save and exit)

vim /etc/resolve.conf
NAMESERVER 8.8.8.8(OR ANY THING ELSE WHAT YOU SEE ON WIRELESS, MODEM, PPP0E NIC)
(save and exit)

lokkit
enable eth0 (enable *)
enforcing (enable *)
put all thing with enable *, except MASQUERADE
OK


service network restart

and click browser with www.google.com

Thanks


All times are GMT -5. The time now is 04:34 AM.