OpenVZ Forum


Home » General » Support » Having Two IP Address In OpenVZ
Having Two IP Address In OpenVZ [message #34116] Thu, 04 December 2008 09:27 Go to next message
yccheok is currently offline  yccheok
Messages: 1
Registered: December 2008
Junior Member
I try to have two IP address in open VZ by using ifconfig. Here is the output from ifconfig :-

yanchengdev:/$ ifconfig
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:80351338 errors:0 dropped:0 overruns:0 frame:0
TX packets:80351338 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2762183735 (2.5 GiB) TX bytes:2762183735 (2.5 GiB)

venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:127.0.0.1 P-t-P:127.0.0.1 Bcast:0.0.0.0 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
RX packets:222499 errors:0 dropped:0 overruns:0 frame:0
TX packets:204790 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:45136132 (43.0 MiB) TX bytes:10924664 (10.4 MiB)

venet0:0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:192.168.12.156 P-t-P:192.168.12.156 Bcast:0.0.0.0 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1

venet0:1 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:192.168.12.166 P-t-P:192.168.12.166 Bcast:0.0.0.0 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1


The problem is, when I ping my openvz from and external machine,

ping 192.168.12.156 (OK. Give me responde)
ping 192.168.12.166 (Not OK. No responde)

I try to tail the openvz config file

[yancheng@yancheng ~]$ tail /etc/vz/conf/102.conf

# CPU fair sheduler parameter
CPUUNITS="5000"
VE_ROOT="/vz/root/$VEID"
VE_PRIVATE="/vz/private/$VEID"
OSTEMPLATE="debian-4.0-i386-minimal"
ORIGIN_SAMPLE="vps.basic"
IP_ADDRESS="192.168.12.156"
NAMESERVER="192.168.12.202"
HOSTNAME="yanchengdev.my.xxx.com"
[yancheng@yancheng ~]$


So, can I specific more than 1 IP address in IP_ADDRESS field? Is this the root cause of unable to have two IP address in openvz?

Thanks!
Cheok

[Updated on: Thu, 04 December 2008 09:28]

Report message to a moderator

Re: Having Two IP Address In OpenVZ [message #34151 is a reply to message #34116] Tue, 09 December 2008 10:52 Go to previous message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hello,

please show
"ip a l", "ip rule list", "ip route list" from the HN and from inside the VE.
"arp -n" from the HN.
Check your iptables rules.

Try to ping 192.168.12.166 from an external node and run tcpdump on the HN and inside VE at the same moment.
Previous Topic: World cannot see the containers's services
Next Topic: [SOLVED] Bugzilla account
Goto Forum:
  


Current Time: Wed Feb 28 02:55:47 GMT 2024

Total time taken to generate the page: 0.02745 seconds