Solved How to duplicate the tap0 interface in a new tap1 network interface that it is not used

On the contrary. My description in my post #30 here is 100% practical -- it works for me right now!!
Right now I have Ubuntu VM running in bhyve with networking configuration as I described above. So don't you tell me it is not practical. It rather hits me that your METHOD OF DOING THINGS is not practical for some reason or other...
Yes, you do have the balls to embark on your FreeBSD bhyve adventure. But know what? This is NOT ENOUGH!
You must also concentrate. Good to take a notebook and write down your steps (they are many and you must be precise).
First of all, don't forget to set vm-bhyve_enable=NO in your /etc/rc.conf. in addition to what I described.

What do you need to do after that networking is set up?
Why, you launch your ubuntu VM with the simple script that you published above.
Then you go into your NetworkManager (click upper right corned -> Wired connections -> Settings -> and very paitently and carefully configure ipv4 -> Manual.
There you set IP=192.168.7.25, mask=255.255.255.0 gateway=192.168.7.1
and DNS (instead of AUTO) set to '8.8.8.8,8.8.4.4'
Then click Apply . Then is about 1 minute it will be working. You can monitor it in Terminal through the command ip address.

If THAT doesn't give you working Ubuntu with internet connection, then something is terribly wrong with your attention.
And no, you HAVE NOT done what I have carefully described in detail. If you had, you would have everything working now.

thanks for your interest and suggestion. But I've already tried all that you have suggested,excluding the firewall configuration because I haven't installed it.
 
Your method can't be valid everytime and mine the same,because everyone is different. I know myself,I know what are my limits. I don't think Im stupid,but I know that I need help. Your approach seem to be too much self-centered, individualistic, also because you have more skills and experience than me and u can support it. But you have some troubles putting yourself in the shoes of those who have less. I am not frustrated because I cannot solve problems, but because I find that some very generic suggestions like "read the manual" aren't able to take into account the efforts made and the limitations of the other people and they are useless and irritating. Don't u think that's obvious that reading the most relevant part of the manual is the first thing that a person does ? I am not at all ashamed that I need help and to ask for it.
You misread me entirely. I don't have any experience in this area whatsoever, to such a point that I could barely even pretend to understand the question. I don't have a degree in psychology like you say you have, but I can still recognize passive-aggressive trolling and behavioral modification techniques when I see them. Therefore your insults directed at me have very little effect, and I wasn't even trying to be insulting. I sincerely believe that you are capable enough, and more than intelligent enough, to solve your own problems, if you would only apply yourself to solving them for yourself, rather than trying to psychologically manipulate others into solving them for you.
 
thanks for your interest and suggestion. But I've already tried all that you have suggested,excluding the firewall configuration because I haven't installed it.
Yep, as I said. You excluded the most important thing without which it won't work
No need to INSTALL anything , it is already part of FreeBSD base distribution.
If you followed other instructions the same way, in parts, then it is not surprising things also work for you in parts...
 
You misread me entirely. I don't have any experience in this area whatsoever, to such a point that I could barely even pretend to understand the question. I don't have a degree in psychology like you say you have, but I can still recognize passive-aggressive trolling and behavioral modification techniques when I see them. Therefore your insults directed at me have very little effect, and I wasn't even trying to be insulting. I sincerely believe that you are capable enough, and more than intelligent enough, to solve your own problems, if you would only apply yourself to solving them for yourself, rather than trying to psychologically manipulate others into solving them for you.

Why would I want to insult you if you have helped me a lot so far? You are misinterpreting my communication intentions. On the contrary, I have complimented you and at the same time I am explaining that you can solve problems on your own,alone and that u are self-centered because you have more skills than me. But u can't expect that all the people are experienced like you and that they can solve problems only by themself,like u do. In addition,I want to say that there is only one post I made where I have asked a lot of questions without to be able to fix the problem. If u see my other posts,u will see that they are shorter and I have been able to solve the problem with less suggestions. So,I'm not sure that I bother people everytime. Is this post that's taking too long. No man,I don't like to win "easy". I don't need to manipulate someone. I would like to be helped. That's all. If u solve my problem,I will have no satisfaction.
 
Maybe this is not a serious thread but his master thesis or something...

I don't want to give up. If I find the solution,I will mark it as solved. why not ? I'm not upset with anyone because I understand that understanding each other is difficult due to the many cultural / of knowledge and psychological differences that exist between people. I have the feeling that we are spinning in circles without finding the explanation. I have repeated your advices several times, but without success. I have to get out of the spiral and do different experiments.
 
Let's change our direction a bit. :) :)
What have you learned trying to set up FreeBSD + bhyve? Have you learned anything useful, anything you can now teach other people to do?
If not, then you need to change your approach, I would say.
 
Let's change our direction a bit. :) :)
What have you learned trying to set up FreeBSD + bhyve? Have you learned anything useful, anything you can now teach other people to do?
If not, then you need to change your approach, I would say.
Not yet. I'm still fresh of bhyve and freebsd.
 
No need to run Rambox with linuxlator,because the networking is working great with vm-bhyve. I could stop trying to understand why the bhyve networking is not working,but I'm stubborn. These are the challenges I like.
If the original problem (to run Rambox) isn't an issue anymore because bhyve works using the vm-bhyve scripts and you only want to understand how the vm-bhyve scripts configure the network, i have a better challenge for you: Look at the sources of vm-bhyve and exactly know what it does.

Asking dozens of people in multiple threads i wouldn't call a challenge.
 
If the original problem (to run Rambox) isn't an issue anymore because bhyve works using the vm-bhyve scripts and you only want to understand how the vm-bhyve scripts configure the network, i have a better challenge for you: Look at the sources of vm-bhyve and exactly know what it does.

Asking dozens of people in multiple threads i wouldn't call a challenge.

I don't agree. It's a big challenge,since none of us found the solution. If it works for you,it does not work for me,so,the reason why it does not work is again under the hood. I will give a look at the source code,but as I have already told to @Vull,I have my limits. Im not a coder. No one can ask to a coder,to make the doctor,right ?

PS : sorry,I've looked inside the code of some file,it's too much complicated for me to understand the meaning of what's written inside.
 
Since I want to shuffle the cards, I'm going to install DragonflyBSD and then the nvmm hypervisor,since there is a good tutorial that can help me. And it helps to configure the bridge exactly like I should do when I use bhyve. Let's see if it works and which errors I will get. This will help to exclude some variables.

 
I've compared the routes added by vm-bhyve and by bhyve,to try to understand why the first one allows any linux distro to connect to internet and the second one,doesn't,and I found that the route below is added by vm-bhyve but not by bhyve. I tried to add it manually inside ubuntu using this command : route add default gw 192.168.1.1 enp0s5 , but,instead of adding 192.168.1.1,it added _gateway. I think that it is the reason why it does not work. Also the metric should be changed. The right one is 100,but the command that I have issued doesnt add 100,but its still 0.

DestinationgatewayGenmaskFlagsmetricrefuseiface
default192.168.1.10.0.0.0UG10000enps05

this is the route that has been added by that command :

Destinationgatewaygenmaskflagsmetricrefuseiface
default_gateway0.0.0.0UG000enps05
 
or,it should be added in the guest manually ? maybe I did it in the wrong way. On freebsd I have already a route called default,with gateway modemtim (that should be 192.168.1.1) linked to the em0 network interface.

Code:
root@marietto:/home/marietto # netstat -r
Routing tables

Internet:

Destination        Gateway            Flags     Netif Expire

default            modemtim           UGS         em0
localhost          link#2             UH          lo0
192.168.1.0/24     link#1             U           em0
192.168.1.6        link#1             UHS         lo0
 
I have rebooted the PC and I tried again. Ubuntu can't connect to internet. My theory is that to work the dhcp server should be called inside the linux vm like you did before,opening a shell and giving the dhcp command. but when ubuntu is installed it will not work. Do u want to login and check ? The commands that I've issued are only the following ones :

ifconfig tap0 create up
ifconfig bridge0 create up
ifconfig bridge0 addm em0
ifconfig bridge0 addm tap0

instead you wrote :

ifconfig tap0 create
ifconfig bridge0 create
ifconfig bridge0 addm em0 addm tap0
ifconfig bridge0 up

oh oh. there is a command that I haven't issued because it's not present on the wiki. it's ifconfig bridge0 up. maybe this is the reason.
 
tap0 interface is brought up when the VM is created it's controlled via sysctl net.link.tap.up_on_open
ifconfig bridge0 up is at the very first row in the handbook

You can type ifconfig and verify the status of the adapters
 
Back
Top