0

I have some pretty basic knowledge about networking and linux, however a virtual server I provisioned in Strato has a strange configuration that I cannot understand.

#ifcfg-lo content
DEVICE=lo
IPADDR=127.0.0.1
NETMASK=255.0.0.0
NETWORK=127.0.0.0
# If you're having problems with gated making 127.0.0.0/8 a martian,
# you can change this to something else (255.255.255.255, for example)
BROADCAST=127.255.255.255
ONBOOT=yes
NAME=loopback

#ifcfg-venet0 content
DEVICE=venet0
BOOTPROTO=static
ONBOOT=yes
IPADDR=127.0.0.1
NETMASK=255.255.255.255
BROADCAST=0.0.0.0
NM_CONTROLLED="no"
ARPCHECK="no"
GATEWAYDEV="venet0"
IPV6INIT="yes"
IPV6_DEFAULTDEV="venet0"

#ifcfg-venet0:0 content
DEVICE=venet0:0
ONBOOT=yes
IPADDR=xxx.xxx.xxx.xxx (here is my public ip address)
ARPCHECK="no"
NM_CONTROLLED="no"
NETMASK=255.255.255.255

I have couple of questions:

  • having 127.0.0.1 on both interfaces, isn't a problem?
  • given that all internal and external ip addresses have 255.255.255.255 netmasks, how should a routing work?
  • How is GATEWAYDEV="venet0" is a gateway, given that it has 127.0.0.1?

I hope to find some clarification to these basic configuration, so that I can fix some port forwarding rules in iptables.

Regards, Ozgur

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.