andreaolivato |
03-11-2010 04:28 PM |
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 :)
|