OpenVZ Forum


Home » General » Support » No networking, tried everything (I have tried everything, for 2 days and I can't get Networking working on my VPS)
No networking, tried everything [message #42923] Sat, 18 June 2011 21:25 Go to next message
Gematria7 is currently offline  Gematria7
Messages: 1
Registered: June 2011
Junior Member
Hello, I can't get networking working on my VPS. I've tried everything. The host uses DHCP to connect and obtain IP information.
Master:

[root@193 ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 48:5B:39:7E:71:A3
inet addr:62.65.51.193 Bcast:62.65.51.255 Mask:255.255.252.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:150513 errors:0 dropped:0 overruns:0 frame:0
TX packets:93908 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:213172060 (203.2 MiB) TX bytes:8531719 (8.1 MiB)
Interrupt:233

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:4535 errors:0 dropped:0 overruns:0 frame:0
TX packets:4535 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:9458061 (9.0 MiB) TX bytes:9458061 (9.0 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:3182 errors:0 dropped:0 overruns:0 frame:0
TX packets:4898 errors:0 dropped:1 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:413324 (403.6 KiB) TX bytes:370120 (361.4 KiB)


resolv.conf

[root@193 ~]# cat /etc/resolv.conf
; generated by /sbin/dhclient-script
nameserver 194.126.97.30
nameserver 195.250.187.46



Route:

[root@193 ~]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
62.65.51.192 0.0.0.0 255.255.255.255 UH 0 0 0 venet0
62.65.48.0 0.0.0.0 255.255.252.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 62.65.48.1 0.0.0.0 UG 0 0 0 eth0


Also, yes I've followed the setup guide on the wiki exactly, this is the 4th time I've tried from a fresh install.
VPS (CentOS 5.6):
[root@nikolai network-scripts]# cat ifcfg-venet0:0
DEVICE=venet0:0
ONBOOT=yes
IPADDR=62.65.51.192
NETMASK=255.255.255.255


[root@nikolai network-scripts]# cat ifcfg-venet0
DEVICE=venet0
BOOTPROTO=static
ONBOOT=yes
IPADDR=127.0.0.1
NETMASK=255.255.255.255
BROADCAST=62.65.48.0
IPV6INIT="yes"


Resolv.conf
NETWORKING="yes"
GATEWAYDEV="venet0"
NETWORKING_IPV6="yes"
IPV6_DEFAULTDEV="venet0"
HOSTNAME="nikolai.rune-vps.com"
Re: No networking, tried everything [message #42927 is a reply to message #42923] Mon, 20 June 2011 01:17 Go to previous messageGo to next message
fairweather is currently offline  fairweather
Messages: 1
Registered: June 2011
Junior Member
Try stopping the CentOS firewall on your host.

ie:
$ service iptables stop
Re: No networking, tried everything [message #42969 is a reply to message #42923] Wed, 22 June 2011 23:10 Go to previous messageGo to next message
AnVir is currently offline  AnVir
Messages: 20
Registered: October 2009
Location: Russia
Junior Member

Try it:
sysctl net.ipv4.ip_forward=1


Welcome to xfes.ru OpenVZ repository mirror
Re: No networking, tried everything [message #42983 is a reply to message #42923] Fri, 24 June 2011 16:31 Go to previous message
mustardman is currently offline  mustardman
Messages: 91
Registered: October 2009
Member
On the VM try:

iptables -F

Then when you reboot you lose connection again because it re-loads iptable rules. So you know you need to either disable iptables or change the rules.
Previous Topic: determining per process memory usage
Next Topic: There is great concern that OpenVZ is no longer being supported.
Goto Forum:
  


Current Time: Tue Aug 13 20:09:40 GMT 2024

Total time taken to generate the page: 0.02885 seconds