Problem instalation from vps hetzner

Freecast

Verified User
Joined
Jul 20, 2009
Messages
12
Hello,
I have a problem with installing the panel Direct Adminna ip address 78.47.234.9
the installation is complete, but I can not go to panel
Panel address does not match the

redirects to another address

On yesterday I asked for a change ip 172.31.1.100
appears message that
No license is assigned to this ip address


I contacted the company where I bought the server
reply:


Hello,

in order to install direct admin you need to configure the public IP as alias
to pass the license check. Add this line to / etc / network / interfaces

auto eth0: 0
iface eth0: 0 inet static
address 78.47.234.9
netmask 255.255.255.255


Mit freundlichen Grüßen / Kind regards

Markus Schade


I did this command
and all the time does not work

please help me
 
problem da help

my config networks
root@wemp1 ~ # ifconfig
eth0 Link encap:Ethernet HWaddr 52:54:a2:01:5b:83
inet addr:172.31.1.100 Bcast:172.31.1.255 Mask:255.255.255.0
inet6 addr: 2a01:4f8:c17:1b72::2/64 Scope:Global
inet6 addr: fe80::5054:a2ff:fe01:5b83/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:86 errors:0 dropped:0 overruns:0 frame:0
TX packets:75 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:10186 (9.9 KiB) TX bytes:10778 (10.5 KiB)

eth0:0 Link encap:Ethernet HWaddr 52:54:a2:01:5b:83
inet addr:78.47.234.9 Bcast:78.47.234.9 Mask:255.255.255.255
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:24 errors:0 dropped:0 overruns:0 frame:0
TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1916 (1.8 KiB) TX bytes:1916 (1.8 KiB)
my config
 
172.31.1.100

What is there in logs:

Code:
cat /var/log/directadmin/error.log
?
The ip of this machine (172.31.1.100) does not match the ip in the license file.<br>
Check the value of your ethernet_dev=eth0 setting in your /usr/local/directadmin/conf/directadmin.conf file and the output of /sbin/ifconfig<br>
 
The ip of this machine (172.31.1.100) does not match the ip in the license file.<br>
Check the value of your ethernet_dev=eth0 setting in your /usr/local/directadmin/conf/directadmin.conf file and the output of /sbin/ifconfig<br>

problem fixed
directadmin.com/lan.php
 
I have same problem.
Nor lan.php , nor https://help.directadmin.com/item.php?id=418, nor https://wiki.hetzner.de/index.php/Netzkonfiguration_CentOS/en doesn't help.
ifcfg-eth0:0
DEVICE=eth0:0
BOOTPROTO=none
ONPARENT=yes
IPADDR=94.-end of ip-
NETMASK=255.255.255.255
ONBOOT=yes

Generally, hetzner , if I understand correctly, states ( https://wiki.hetzner.de/index.php/VServer/en ) that there is 1:1 nat and I can't have external dedicated IP inside my virtual machine.

Is there any reliable solution for this? I believe it have to be
 
Hello,

Please make sure you've enabled LAN mode per this guide: https://directadmin.com/lan.html (follow steps #4 and #5 only for existing installations)
The problem is that I can't do steps 2 & 3 from this manual.
I wrote it in my previous message - I just can't add my own IP to eth, you see -I did show ifcfg-eth0:0 , but it just didn't work.
Probably it's because nat 1:1 as described here https://wiki.hetzner.de/index.php/VServer/en , it's not usuall lan on these vds.
 
I see wrong syntax here:

Code:
auto eth0: 0
iface eth0: 0 inet static
address 78.47.234.9
netmask 255.255.255.255

that should be eth0:0 without white-spaces.
 
Just tested on my server at hetzner, trying to add the static IP I had an error that it exists already on another device, mine server is with CentOS your case might be the same, here is what you need to do:


1. run

Code:
ifconfig eth0 add 1.2.3.4

2. control results and check:

Code:
ifconfig

3. start Directadmin

4. open directadmin and go to "IP Management" page

5. add you real IP there

To make sure everything is correct and IP gets added try and restart the server.
 
Just tested on my server at hetzner, trying to add the static IP I had an error that it exists already on another device, mine server is with CentOS your case might be the same, here is what you need to do:


1. run

Code:
ifconfig eth0 add 1.2.3.4

2. control results and check:

Code:
ifconfig

3. start Directadmin

4. open directadmin and go to "IP Management" page

5. add you real IP there

To make sure everything is correct and IP gets added try and restart the server.
1,2) it works, thank you very much.
3,4,5) I don't have directadmin installed yet, I got this problem during installation - this is why I were unable to install directadmin.

Unfortunately after rebooting server I got same default settings, w/o 1.2.3.4 IP in eth interface, how do I save it?
ifconfig (after adding my ip) shows
eth0
inet 172.31.1.100 netmask 255.255.255.0 broadcast 172.31.1.255
eth0:0
inet 1.2.3.4 netmask 255.255.255.0 broadcast 172.31.1.255
but after rebooting eth0:0 simple disappears
 
After you install Directadmin it will be Directadmin to add the IP into interface. If you want to add the IP without directadmin you can use cronjobs to run the command as root with

Code:
@reboot root /sbin/ifconfig eth0 add 1.2.3.4

or

/etc/rc.d/rc.local if it exists in your installation.
 
Back
Top