Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure two network cards #328

Open
pat0x0 opened this issue Jan 7, 2022 · 8 comments
Open

Configure two network cards #328

pat0x0 opened this issue Jan 7, 2022 · 8 comments

Comments

@pat0x0
Copy link

pat0x0 commented Jan 7, 2022

Hello! I've been trying for hours and still can't find the right option.
I'm running Minix3.4 RC6 on VMware Cloud Director and everything is working like a charm, except for something that for sure is my error in the configuration:
I have configured 2 network cards, one with internet access (10.X.X.X) and the other only for internal use (172.16.X.X). When I put the one that has internet access as the main one, absolutely everything works, WAN and LAN, but when I do it the other way around, the one for internal use as the main one, I can only ping the LAN, without an internet connection.
Is there any way to fix this? I am sure it is a problem of a bad configuration and not of Minix. Thanks!

@pat0x0
Copy link
Author

pat0x0 commented Jan 7, 2022

UPDATE:
I just tried using ifconfig metrics and it doesn't work either... This learning got interesting 🥲

@petershh
Copy link

petershh commented Jan 7, 2022

Hello,
How did you configure these cards in Cloud Director (is it NAT, or bridged network, or whatever)?

@pat0x0
Copy link
Author

pat0x0 commented Jan 7, 2022

Hello Peter! The cards are configured in NAT. Unfortunately my provider does not offer me more options.

@petershh
Copy link

petershh commented Jan 7, 2022

Did you try to reconfigure interfaces from scratch? You might need to reboot the system.

@pat0x0
Copy link
Author

pat0x0 commented Jan 7, 2022

Yes, I deleted them and reconfigured them from scratch, then restart the network service and it's the same. I also deleted them again, reconfiguring everything from scratch, but this time restarting minix and I got the same result.
But there is something that catches my attention: when I run the command to define the metric:

ifconfig emX metric n

the command shows no errors, however when I look at the interface file in /etc/ifconfig.emX, it makes no mention of the metric. Shouldn't it be defined within the file?

@pat0x0
Copy link
Author

pat0x0 commented Jan 7, 2022

I answer to myself: yes, it is misconfigured. You have to add the metric manually to the file idiot!!!.
Well, I did, I restarted the server and...

#ping google.com
ping: Cannot resolve "google.com" (Host name lookup failure)

But no, it's not that because the resolv.conf is well configured

@petershh
Copy link

petershh commented Jan 7, 2022

Don't call yourself an idiot. I think that command should set specified metric, and I'll investigate that later.

Can you ping, for example, 1.1.1.1?

@pat0x0
Copy link
Author

pat0x0 commented Jan 7, 2022

Ping does not resolve neither by domain nor by IP, except for the IP range configured with the other card.
It's weird... I'm starting to believe it's more of a VMware issue than Minix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants