Hello!
I can't ping myself in the VE. What could be the problem?
# zctl set 300 --netif_add eth0 --save
Saved parameters for VE 300
# vzctl start 300
Starting VE ...
VE is mounted
Setting CPU units: 1000
Configure meminfo: 65536
Configure veth devices: veth300.0
VE start in progress...
# vctl enter 300
## ifconfig eth0 192.168.3.1 netmask 255.255.255.0 up
## ifconfig
eth0 Link encap:Ethernet HWaddr 00:18:51:8A:04:58
inet addr:192.168.3.1 Bcast:192.168.3.255 Mask:255.255.255.0
inet6 addr: fe80::218:51ff:fe8a:458/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:196 (196.0 b)
## ping 192.168.3.1
PING 192.168.3.1 (192.168.3.1) 56(84) bytes of data.
^C
--- 192.168.3.1 ping statistics ---
10 packets transmitted, 0 received, 100% packet loss, time 6012ms
##
I have not connected veth300.0 on the host to a bridge until now, but I have tried it; id did not change. In my opinion, the ping must work even when I do nothing with veth300.0 on the host...
Thank you,
divB