LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices

Reply
 
Search this Thread
Old 06-02-2014, 04:45 AM   #1
Aliasger
LQ Newbie
 
Registered: Jun 2014
Posts: 5

Rep: Reputation: Disabled
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.

Last edited by Aliasger; 06-03-2014 at 09:37 AM.
 
Old 06-04-2014, 05:06 PM   #2
dijetlo
Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Slackware Current 64bit Multi-Lib/RHEL
Posts: 728

Rep: Reputation: Disabled
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
 
Old 06-09-2014, 10:54 PM   #3
GaWdLy
Member
 
Registered: Feb 2013
Location: San Jose, CA
Distribution: RHEL/CentOS/Fedora
Posts: 344

Rep: Reputation: Disabled
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.
 
Old 06-10-2014, 03:44 AM   #4
Aliasger
LQ Newbie
 
Registered: Jun 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
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

Last edited by Aliasger; 06-10-2014 at 03:47 AM.
 
Old 06-10-2014, 06:57 AM   #5
GaWdLy
Member
 
Registered: Feb 2013
Location: San Jose, CA
Distribution: RHEL/CentOS/Fedora
Posts: 344

Rep: Reputation: Disabled
If you put your RHEL 5 box into dhcp mode, doe it magically get Internet access?
 
Old 06-11-2014, 02:25 AM   #6
Aliasger
LQ Newbie
 
Registered: Jun 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
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.
 
Old 06-11-2014, 02:32 AM   #7
GaWdLy
Member
 
Registered: Feb 2013
Location: San Jose, CA
Distribution: RHEL/CentOS/Fedora
Posts: 344

Rep: Reputation: Disabled
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.
 
Old 06-11-2014, 04:06 AM   #8
Aliasger
LQ Newbie
 
Registered: Jun 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
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.
 
Old 06-12-2014, 04:37 AM   #9
Aliasger
LQ Newbie
 
Registered: Jun 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
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

Last edited by Aliasger; 06-12-2014 at 04:41 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
bridge-utils / dnsmasq / iptables / debian => internet sharing problems cocchiararo Linux - Networking 5 09-17-2009 08:27 PM
Cannot access Internet from Vmware guest : Cent O/S when adsl router is bridge mode kumvinod Linux - Networking 0 03-02-2009 12:42 PM
internet connection sharing through bridge positiveinflux Linux - Networking 6 04-04-2007 12:16 AM
Sharing Internet with VMWare? subaruwrx Linux - Networking 5 03-30-2004 05:09 AM
Internet Sharing & nic bridge? darchon Linux - Networking 21 03-29-2003 04:00 AM


All times are GMT -5. The time now is 12:39 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration