OpenVZ Forum


Home » General » Support » OpenVZ and IP masquerading
Re: OpenVZ and IP masquerading [message #2866 is a reply to message #2725] Mon, 24 April 2006 10:38 Go to previous messageGo to previous message
Santi is currently offline  Santi
Messages: 7
Registered: April 2006
Junior Member
Hello,

Thanks for the reply!

Loading "ip_conntrack" module with the additional parameter "ip_conntrack_enable_ve0=1" NAT works fine with local network machines Smile

I can "ping" the VPS from the hardware node but it's not accesible from the local network, this is the system configuration:

Quote:


# ifconfig
eth0 Link encap:Ethernet HWaddr 00:05:1C:19:67:F4
inet addr:xxx Bcast:255.255.255.255 Mask:255.255.224.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4037958 errors:0 dropped:0 overruns:0 frame:0
TX packets:3702217 errors:0 dropped:0 overruns:7 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2993967675 (2.7 GiB) TX bytes:1101935960 (1.0 GiB)
Interrupt:10 Base address:0xdc00

eth1 Link encap:Ethernet HWaddr 00:05:1C:03:26:36
inet addr:192.168.0.210 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1657862 errors:0 dropped:0 overruns:0 frame:0
TX packets:2360321 errors:0 dropped:0 overruns:10 carrier:0
collisions:0 txqueuelen:1000
RX bytes:285203826 (271.9 MiB) TX bytes:2778409189 (2.5 GiB)
Interrupt:11 Base address:0xe000

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:18519 errors:0 dropped:0 overruns:0 frame:0
TX packets:18519 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1587694 (1.5 MiB) TX bytes:1587694 (1.5 MiB)

venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
RX packets:16235 errors:0 dropped:0 overruns:0 frame:0
TX packets:23251 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1167074 (1.1 MiB) TX bytes:26626787 (25.3 MiB)



midori:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.5 0.0.0.0 255.255.255.255 UH 0 0 0 venet0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
xxx 0.0.0.0 255.255.224.0 U 0 0 0 eth0
0.0.0.0 xxx 0.0.0.0 UG 0 0 0 eth0



eth0 is has the Internet DHCP conection and eth1 is conected to local network...

When starting the VPS with "vzctl" command I get those warnings:

Quote:


midori:/vz/template/cache# vzctl --verbose start 101
Warning: no vz_get_mod_info found in /usr/lib/vz//libvzctl-fs.so
Starting VPS ...
Running: /usr/sbin/vzquota show 101
Running: /usr/sbin/vzquota on 101 -r 0 -b 1048676 -B 1153534 -i 200100 -I 220100 -e 0 -n 0 -s 0
Mounting root: /vz/root/101 /vz/private/101
VPS is mounted
Adding IP address(es): 192.168.0.5
Running: /usr/share/vz/vps-net_add
arpsend: can't get iface 'eth0:' address : Cannot assign requested address
vps-net_add WARNING: arpsend -c 1 -w 1 -D -e 192.168.0.5 eth0: FAILED
arpsend: can't get iface 'eth1:' address : Cannot assign requested address
vps-net_add WARNING: arpsend -c 1 -w 1 -D -e 192.168.0.5 eth1: FAILED
arpsend: can't get iface 'eth0:' address : Cannot assign requested address
vps-net_add WARNING: arpsend -c 1 -w 1 -U -i 192.168.0.5 -e 192.168.0.5 eth0: FAILED
arpsend: can't get iface 'eth1:' address : Cannot assign requested address
vps-net_add WARNING: arpsend -c 1 -w 1 -U -i 192.168.0.5 -e 192.168.0.5 eth1: FAILED
Running VPS script: /usr/share/vz/dists/scripts/debian-add_ip.sh
Setting CPU units: 1000
Set hostname: vps101.usansolo.org
Running VPS script: /usr/share/vz/dists/scripts/debian-set_hostname.sh
Running VPS script: /usr/share/vz/dists/scripts/set_dns.sh
File resolv.conf was modified
Running: /usr/sbin/vzquota stat 101 -f
Running: vzquota setlimit 101 -b 1048576 -B 1153434 -i 200000 -I 220000 -e 0 -n 0
VPS start in progress...



Thanks!

--
Santi Saez
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: vzpkgcache issue
Next Topic: *SOLVED* compiling errors with ovzkernel 2.6.16-026test009.1
Goto Forum:
  


Current Time: Thu Jul 11 07:22:16 GMT 2024

Total time taken to generate the page: 0.02319 seconds