LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 03-11-2010, 04:28 PM   #1
andreaolivato
LQ Newbie
 
Registered: Mar 2010
Posts: 1

Rep: Reputation: 0
VmWare bridged connection with public ip


Hello,

I own a dedicated server running debian 5 adm64 and I have 2 public ip addresses pointed on that machine.

I created a vmware machine (debian 5 i386) for running some services (want to try Zimbra open source) and would like this guest system to use the 2nd ip address.

First of all I turned off the 2nd ethernet connection on my host server, then I replied its configuration inside the guest os.

Unfortunately this seems wrong, as I can not reach any address (gw, the host etc) from the guest os.

This is the HOST ifconfig -a
Code:
eth1      Link encap:Ethernet  HWaddr 00:1d:92:bb:08:48  
          inet addr:200.35.145.201  Bcast:200.35.145.255  Mask:255.255.255.0
          inet6 addr: fe80::21d:92ff:febb:848/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:41400484 errors:0 dropped:1 overruns:0 frame:0
          TX packets:30352216 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:23649056633 (22.0 GiB)  TX bytes:15617410062 (14.5 GiB)
          Interrupt:23 Base address:0xdc00 

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:3648934 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3648934 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:635734878 (606.2 MiB)  TX bytes:635734878 (606.2 MiB)
This is the GUEST ifconfig -a
Code:
eth1      Link encap:Ethernet  HWaddr 00:0c:29:2c:a2:1c  
          inet addr:200.35.145.202  Bcast:200.35.145.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:1 overruns:0 frame:0
          TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:378 (378.0 B)
          Interrupt:18 Base address:0x1400 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:10 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:979 (979.0 B)  TX bytes:979 (979.0 B)
Guest /etc/network/interfaces
Code:
# The loopback network interface
auto lo
iface lo inet loopback

mapping hotplug
        script grep
        map eth0

# The primary network interface
auto eth0
iface eth0 inet static
        address 200.35.145.202
        netmask 255.255.255.0
        network 200.35.145.0
        broadcast 200.35.145.255
        gateway 200.35.145.1
I use a bridged connection and this is my vmx

Code:
#!/usr/bin/vmware
.encoding = "UTF-8"
config.version = "8"
virtualHW.version = "4"
scsi0.present = "TRUE"
scsi0.virtualDev = "lsilogic"
memsize = "256"
scsi0:0.present = "TRUE"
scsi0:0.fileName = "debian-500-i386-netinst.vmdk"
ide1:0.present = "TRUE"
ide1:0.fileName = "/usr/lib/vmware/isoimages/linux.iso"
ide1:0.deviceType = "cdrom-image"
floppy0.startConnected = "FALSE"
floppy0.fileName = "/dev/fd0"
ethernet0.present = "TRUE"
ethernet0.connectionType = "nat"
ethernet0.wakeOnPcktRcv = "FALSE"
roamingVM.exitBehavior = "go"
displayName = "debian-500-i386-netinst"
guestOS = "other26xlinux"
nvram = "debian-500-i386-netinst.nvram"
virtualHW.productCompatibility = "esx"
ft.secondary0.enabled = "TRUE"
tools.upgrade.policy = "useGlobal"

extendedConfigFile = "debian-500-i386-netinst.vmxf"

ethernet0.addressType = "generated"
uuid.location = "56 4d c0 86 88 85 6a fd-c8 e6 95 f4 40 ab e9 50"
uuid.bios = "56 4d a7 d0 dd 2e bc f5-58 73 4c b6 35 2c a2 1c"
scsi0:0.redo = ""
vmotion.checkpointFBSize = "16777216"
ethernet0.generatedAddress = "00:0c:29:2c:a2:1c"
ethernet0.generatedAddressOffset = "0"

ide1:0.autodetect = "TRUE"
floppy0.autodetect = "TRUE"

ide1:0.startConnected = "FALSE"
tools.remindInstall = "TRUE"
Any help would really be appreciated
 
Old 03-16-2010, 08:05 AM   #2
wolfperkins
Member
 
Registered: Oct 2007
Location: Val-des-Monts, Québec, Canada
Distribution: CentOS, RHEL, Fedora
Posts: 109

Rep: Reputation: 16
Your ethernet connection type in the vmx file is set to NAT rather than BRIDGED
 
  


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
Bridged connection problem, can ping but cannot telnet ! Ceville Linux - Virtualization and Cloud 3 01-04-2010 02:03 AM
Linux KVM/VMWare bridged interfaces and the Cisco 5505 fantasygoat Linux - Networking 1 12-04-2009 01:21 PM
setting up bridged connection with guest OS in VMware jogurt666 Linux - Software 0 10-02-2005 07:53 AM
Bridged network on VMWARE, Debian hangs firsara Linux - Software 0 08-02-2005 04:54 AM
vmware bridged network homestead1000 Linux - Networking 1 01-21-2004 04:00 PM


All times are GMT -5. The time now is 03:58 PM.

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