OpenVZ Forum


Home » General » Support » *SOLVED* Can ping but not connect from a custom template
*SOLVED* Can ping but not connect from a custom template [message #23349] Thu, 15 November 2007 18:06 Go to previous message
bmaisonn is currently offline  bmaisonn
Messages: 5
Registered: November 2007
Junior Member
Hi,
I've searched to resolve this problem for a long time Crying or Very Sad ! So now, i decide to share it Rolling Eyes .
For a project I had to make a custom template with buildroot and busybox.
I created a VE and gave him an ip address ( venet interface )
(vzctl create 103 --ostemplate linux --ipadd 192.168.254.103)
Next inside that VE i configured my interfaces with this script :

#!/bin/sh
ifconfig venet0 add 127.0.0.1 netmask 255.255.255.255 broadcast 0.0.0.0 up
ifconfig venet0:0 add 192.168.254.103 netmask 255.255.255.255 broadcast 0.0.0.0 up
route add -net 191.255.255.1 netmask 255.255.255.255 dev venet0
route add -net default gw 191.255.255.1

From here, i can ping the HN but can't connect to him through a tcp socket.

I'd like to know i a forgot something, or made something wrong ?

Thanks a lot !

[Updated on: Fri, 16 November 2007 13:15] by Moderator

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to configure quota
Next Topic: *SOLVED* IP ping works, DNS IP ping doesnt work
Goto Forum:
  


Current Time: Mon Jul 14 13:02:32 GMT 2025

Total time taken to generate the page: 0.01894 seconds