So right before the hand in date of my big debian server task, that is like 50% of my grade, my teacher wanted to have a look at my server, which I allowed him to. He said that he was fixing some miner bugs he had spotted earlier, which I was fine with. And in the end, after toying around with bind9(named), the ens33(my 1st network card) doesn't have any connection to the outside world when it is configured in dhcp. How could I fix this, since I really can't hand him a completly borked (connection wise) server
๐
#[GIVEN UP]My teacher broke my debian server, 2 days before hand in date, can someone help me?
308 messages ยท Page 1 of 1 (latest)
I have tried to give it a static ip adress, but to no avail
So I have 2 network cards right
ens 33 and 36
33 is meant to connect to the outside wolr
world
while 36 is meant to be a lan seggment in vmware
on which I would put other virtual machines, to then get them to get dhcp and dns trough my ens33
if someone could help, I would be extremly gratefull
when starting my server this is the error I get
I have also tried to set my ens33 card to bridged and NAT, both didn't work
lmao isnt that his fault?
i know this isnt the solution you want, but the easiest way to fix it 2 days before hand in date would be to back up everything relevant and then reinstall the server
ajajaja
thank you
i'il do that
but I hoped I could get it fixed, but thanks anyways
you could probably fix it but idk if you will be able to find the issue in time
fair enough, but do you have a direction I could starting looking into?
is where i would start
google things related to ens33, vmware, and dhcp
the internal card works right?
try running dhclient manually?
dhclient <interface_name>
I think that is the syntax
hopefully a dhcp server is running somewhere to which you're connecting...
thank you, i'il try looking more into it
reaI received a thank you cookie!
the internal stuff is working right?
just using ping and stuff
but it is running on a lan segment I created myself
so it is logicall it can't connect
well under extreme conditions you can download the pkg file(.deb on debian) to your pc and transfer it to the server... and install it there...
?
ping the host (172.19.0.1) from inside the vm
ping the vm (find out ip from inside) from the host?
since you can only ping that ip if you are connected to the lan seggmen
maybe i misphrased somewhere, but there is only 1 vm
Ohhh. I server=vm?
yea
the server needs to be in a vm
so we can deliver it to the teacher
and the vm is connected to what?
the vm itself is running on my host machine
which is connected via an ethernet cable
that clearly works
(I am here)
classic brainrot smh
and he wants uniformity when testing our servers
so he doesn't need to spin up multiply programs
ok so go to your host and ping that 172 thing?
translation
Your computer with vmware
internet connection
server
and line B is the secondary network that we create (ens36, with the lan seggmen)
and on our segment that we create we need to add a client (easy)
and due to our (hopefully) correct configuration the client should have a dhcp connection trough ens36, that is on our lan segment LANconnectie
but the problem is
that I don't have a internet connection with vmware
what is that client? another vm?
yea
for example (his example)
a windows 10 virtual machine
that just has 1 network card
that is set on the lan segment
so in total there should be 2 vm's
that won't work, since that only works if
one of you network adapters (inside vmware) is set in the lan segment
which is configured via ens36
so that should work even without an internet connection (ens33 I believe)
yea
the dhcp server(on the 'server')
still servers ip's
they just can't connect to the internet
so host <-> server (ens33) is bridged networking
server <-> client (ens36) is the lan segment?
imo. both should work independently. I'd suggest going about it one by one.
and ens36 that is for other clients to connect to only
fair.
but atm, ens36 is working as it should be
but ens33 doesn't get an ip adress
to connect to the real internet
I have tried both
and they both don't work
but i'il change it to nat real quick
and show
btw how do you connect your host computer to the ethernet?
I mean what's the connnecting software
since I am here chatting on my host
NetworkManager?
cuz in bridged both are vm and host are exactly equivalent
why don't you use network manager on you server-vm then?
okay leave it for now
for everyone in my class it isn't borked
the only thing I think maybe is borked
is my /etc/resolv.conf
that I know
(this is ens33 configured to try dhcp)
and the first card trying to use nat
oh this is 100% fucked
(pdc/pdc.local)
is the domain that my school servers us up
and where I was working on before coming home
do you know how to configure /etc/resolv.conf?
that is the whole question
ip dev ens33 set up
*dev -> link
yeah now it's up
you now need something like dhclient to run dhclient to get an ip from the dhcp servers your school lan has...
this is still bridged right?
or did you switch to nat?
nat
oh then I think you can just assign an ip and it should work
goto host
do ifconfig
see what's the nat interface and ip subnet
and add an ip
using ip addr
on my host?
yeah
then nat isn't getting created.
Super thanks for devoting your time to thi
solvargi received a thank you cookie!
okay. you can check what your prof did with history
he just configured stuff in my dns server
bind9
which Is weard
weird
because when I DISABLE THE SERVICE
it still doesn't work
nat is something like a virtual interface vms can tap into.
it's created like this:
yeah
I should probs remove the first two lines?
idk
yeah do that lol
How'd your teacher broke your server
comment them out
I really don't know
Damn
are you connected to the ethernet now?
Teacher only ever used windows server before
I think you're close.
virt-manager has a connection pane where you have to start the nat iface
maybe that's the case?
I am using vmware
because if nat is running it should show up in ifconfig
like so.
that was the simplest part
Okay uhhhh
try pinging 192.168.189.1
that is most probably your own host ๐
the host has
post the entire output of ip a?
yes from the host
(I am only windows though) I know I know
this is my 'school' partitiohn
since I also need to code in c#
post your /etc/network/interfaces?
add before that
.
ip route add default via <insert gateway IP> dev enp33
not to sound super stupid
but how can i obtain that ip?
is that just
192.168.189.1 ?
It's .2 i think
But goto Vmnet 8 and check in nat settings?
Send screenshot of when you click vmnet8?
Okay set that.
Ummmm,
ip route add <gateway IP> dev <interface on which it should be reachable>
Then the above command?
Can you ping the gateway from the host?
SUPER SUPER THANKS YOU
solvargi received a thank you cookie!
thanks for trying to help me
but i'il just try to port everything to a new vm
much thanks for you time and dedication
you are my hero of the day
much appreciation for you,
and altough 'we'(you! ๐ ) didn't succeed, you really taught me a lot
and thank you for your patience with me
Lesson of the day don't give your pc to professors. Or atleast keep a snapshot of the working state.
LoL
indeed
๐
[GIVEN UP]My teacher broke my debian server, 2 days before hand in date, can someone help me?
That's a new tag