Hello, i have created virtual interface on ubuntu 20.04 LTS
but while installing drbl server it does not recognize my virtual interface.
Is there a trick for that problem?
I have removed network-manager and netplan/*.yaml files.
The configs that i used are below.
I will be very appreciated for any helps.
------------ping results--------------
thas@ubuntu:~$ ping 192.168.99.200
PING 192.168.99.200 (192.168.99.200) 56(84) bytes of data.
64 bytes from 192.168.99.200: icmp_seq=1 ttl=64 time=0.045 ms
64 bytes from 192.168.99.200: icmp_seq=2 ttl=64 time=0.063 ms
64 bytes from 192.168.99.200: icmp_seq=3 ttl=64 time=0.063 ms
64 bytes from 192.168.99.200: icmp_seq=4 ttl=64 time=0.066 ms
64 bytes from 192.168.99.200: icmp_seq=5 ttl=64 time=0.062 ms
64 bytes from 192.168.99.200: icmp_seq=6 ttl=64 time=0.063 ms
^C
--- 192.168.99.200 ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 5126ms
rtt min/avg/max/mdev = 0.045/0.060/0.066/0.007 ms
-----------end of ping------------
Since it's virtual machine, it's easier you add a virtual network card, not an alias one. Say, you have ens33 and ens34. Then configure them. When running "drblpush -i", it should detect both of them.
Steven
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Now you have a Physical computer? You problem you only have 1 network interface, the thing that looks like a really big phone cord. You need at least 2 of them, add a second network card and you will get further.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
as far as i know,It is possible to create virtual nics that is dependent to a physical nic.It is used especially on routers,otherwise a router must have nics as many as subnets.Lets focus drbl server,I have made configurations on ubuntu 16.04 but it is time to upgrade.Ubuntu has changed its network infrastructure with netplan.I have disbaled it and configured like on old days,but i can not succee.If the command outputs are inspected carefully it is very clear what i meant.ifconfig shows virtual interfaces but drbl recognizes only the pyhisical one.That's the problem.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello, i have created virtual interface on ubuntu 20.04 LTS
but while installing drbl server it does not recognize my virtual interface.
Is there a trick for that problem?
I have removed network-manager and netplan/*.yaml files.
The configs that i used are below.
I will be very appreciated for any helps.
------------ping results--------------
thas@ubuntu:~$ ping 192.168.99.200
PING 192.168.99.200 (192.168.99.200) 56(84) bytes of data.
64 bytes from 192.168.99.200: icmp_seq=1 ttl=64 time=0.045 ms
64 bytes from 192.168.99.200: icmp_seq=2 ttl=64 time=0.063 ms
64 bytes from 192.168.99.200: icmp_seq=3 ttl=64 time=0.063 ms
64 bytes from 192.168.99.200: icmp_seq=4 ttl=64 time=0.066 ms
64 bytes from 192.168.99.200: icmp_seq=5 ttl=64 time=0.062 ms
64 bytes from 192.168.99.200: icmp_seq=6 ttl=64 time=0.063 ms
^C
--- 192.168.99.200 ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 5126ms
rtt min/avg/max/mdev = 0.045/0.060/0.066/0.007 ms
-----------end of ping------------
--------ifconfig results--------------
thas@ubuntu:~$ ifconfig
ens33: flags=4163<up,broadcast,running,multicast> mtu 1500
inet 10.1.18.50 netmask 255.255.255.0 broadcast 10.1.18.255
inet6 fe80::20c:29ff:fe4d:7b3 prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:4d:07:b3 txqueuelen 1000 (Ethernet)
RX packets 35453 bytes 46235032 (46.2 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 7977 bytes 928666 (928.6 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0</up,broadcast,running,multicast>
ens33:0: flags=4163<up,broadcast,running,multicast> mtu 1500
inet 192.168.99.200 netmask 255.255.255.0 broadcast 192.168.99.255
ether 00:0c:29:4d:07:b3 txqueuelen 1000 (Ethernet)</up,broadcast,running,multicast>
lo: flags=73<up,loopback,running> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 2857 bytes 226171 (226.1 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2857 bytes 226171 (226.1 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
----------------end of ifconfig---------------------------------------</host></up,loopback,running>
----------interfaces content------------------
Loopback
auto lo
iface lo inet loopback
Network Interface, this should match your network
auto ens33
iface ens33 inet static
address 10.1.18.50
netmask 255.255.255.0
gateway 10.1.18.1
Virtual Interface for Conezilla, make sure you use a "class C" IP (192.168.x.x)
auto ens33:0
iface ens33:0 inet static
address 192.168.99.200
netmask 255.255.255.0
---------------------------
Since it's virtual machine, it's easier you add a virtual network card, not an alias one. Say, you have ens33 and ens34. Then configure them. When running "drblpush -i", it should detect both of them.
Steven
You are right,I can add an extra interface for virtual machine.Could you answer it for a pyhsical computer for educational purposes.
"Could you answer it for a pyhsical computer for educational purposes." -> What did you mean?
Steven
Could you answerthe question for a pyhsical computer?I am asking this question just for learning.
Now you have a Physical computer? You problem you only have 1 network interface, the thing that looks like a really big phone cord. You need at least 2 of them, add a second network card and you will get further.
Looks like you had 2 nics in your VM, but you will need two in the physical computer as well.
as far as i know,It is possible to create virtual nics that is dependent to a physical nic.It is used especially on routers,otherwise a router must have nics as many as subnets.Lets focus drbl server,I have made configurations on ubuntu 16.04 but it is time to upgrade.Ubuntu has changed its network infrastructure with netplan.I have disbaled it and configured like on old days,but i can not succee.If the command outputs are inspected carefully it is very clear what i meant.ifconfig shows virtual interfaces but drbl recognizes only the pyhisical one.That's the problem.
Since you have ens33 and ens33:0, and both of them are configured. What was the issue when you run "drblpush -i"?
Steven
As you see from the only1interface.png attachment. It says only one configured interface found. That is the problem.
Please run this command on the server then post its result:
ip add show
Steven