Hetzner /29 subnet configuration

Issues related to configuring your network
Post Reply
yoxiray
Posts: 1
Joined: 2017/04/28 06:42:16

Hetzner /29 subnet configuration

Post by yoxiray » 2017/04/28 06:50:18

I am trying configure Hetzner /29 subnet as described here:
https://www.sysorchestra.com/2014/11/08 ... etworking/
but can't set route to the subnet ip
my configuration files are as below:

Code: Select all

etc/sysconfig/network-scripts/br0

DELAY=0
IPV6INIT=yes
BROADCAST=<main ip address>
STP=off
BOOTPROTO=none
NAME=""
MACADDR=""
TYPE=Bridge
DEVICE=br0
NETMASK=255.255.255.255
MTU=""
IPADDR=<main ip address>
IPV6ADDR=<main ip v6 address>/64
NETWORK=<main ip address>
IPV6ADDR_SECONDARIES=""
ONBOOT=yes

etc/sysconfig/network-scripts/eth0

IPV6_DEFAULTGW=fe80::1
IPV6_DEFAULTDEV=eth0
IPV6INIT=yes
HWADDR=<MAC>
BROADCAST=<main ip address>
SCOPE="peer <main gateaway adress>"
BOOTPROTO=none
NAME=""
MACADDR=""
DEVICE=eth0
NETMASK=255.255.255.255
MTU=""
IPADDR=<main ip address>
IPV6ADDR=<main ip v6 address>/128
NETWORK=<main ip address>
IPV6ADDR_SECONDARIES=""
ONBOOT=yes


etc/sysconfig/network-scripts/route-br0
ADDRESS0=<subnet address>.72
NETMASK0=255.255.255.255
ADDRESS1=<subnet address>.73
NETMASK1=255.255.255.255
ADDRESS2=<subnet address>.74
NETMASK2=255.255.255.255
ADDRESS3=<subnet address>.75
NETMASK3=255.255.255.255
ADDRESS4=<subnet address>.76
NETMASK4=255.255.255.255
ADDRESS5=<subnet address>.77
NETMASK5=255.255.255.255
ADDRESS6=<subnet address>.78
NETMASK6=255.255.255.255
ADDRESS7=<subnet address>.79
NETMASK7=255.255.255.255

etc/sysconfig/network-scripts/route-eth0
ADDRESS0=0.0.0.0
NETMASK0=0.0.0.0
GATEWAY0=<main gateaway adress>

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Hetzner /29 subnet configuration

Post by TrevorH » 2017/04/28 07:11:11

First thing, the files you need to set up for each interface are called e.g. /etc/sysconfig/network-scripts/ifcfg-eth0 not just /etc/sysconfig/network-scripts/eth0. Your example would be ignored completely.

Second, I suspect it won't like all those lines where you've specified a parameter but then got no value for it - e.g. MACADDR=""

Otherwise, I think it would be a lot easier for people to advise you if you used some actual ip addresses instead of obscuring them to the point of uselessness.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply