/srv/irclogs.ubuntu.com/2021/04/16/#ubuntu-server.txt

tewardnevermind00:00
=== StathisA_ is now known as StathisA
lordievaderGood morning07:48
ThothCastelfresh install offline of ubuntu server with static ip of 10.10.20.5/24 GW 10.10.20.108:42
ThothCastelplugged onto a netgear switch port 408:43
ThothCastelnetgear is uplinked to a fw08:43
ThothCastelif I plug a laptop with static ip address onto port 4 of netgear switch, then I am able to ping its gw 10.10.20.108:43
ThothCastelBUT my ubuntu says it can't reach its default gateway when plugged onto the same port 4 of netgear switch08:43
ThothCastelwithin ubuntu I can ping itself and on the switch port 4 I can see it is up so cable is good08:43
ThothCastelbut why the hell can't i ping my gw from ubuntu?08:43
lordievaderCan the laptop and server reach eachother?08:45
lordievaderUseful for troubleshooting, run a `tcpdump 'icmp'` on both sides.08:46
=== denningsrogue68 is now known as denningsrogue6
=== cpaelzer__ is now known as cpaelzer
ThothCastellordievader: the laptop can ping its gateway 10.10.20.1 but ubuntu server 10.10.20.510:06
ThothCastelwhich is awkward10:06
ThothCastelI have configured both ports 3 and 4 the same way on the netgear switch10:06
ThothCastellaptop when plugged onto either 3 or 4 of netgear, it reaches its gateway10:07
ThothCastelbut not the ubuntu server10:07
ThothCastelchecked ip settings in netplan10:07
ThothCastelre-generated10:07
ThothCastelre-applied10:07
ThothCastelstill the same thing10:07
ThothCasteldestination host unreachable10:07
lordievaderSo nothing can reach the server? Do you see ICMP requests on the tcpdump of the server, or completely nothing?10:08
ThothCastelno10:08
ThothCasteli just see that it is 'listening'10:08
ThothCastellaptop is a win10 machine10:09
ThothCasteljust changed cable10:09
ThothCastelstill the same10:10
lordievaderIf you see nothing on the server it is likely a problem outside of the server. You can try connecting the laptop and server directly, to fully rule out the server itself.10:49
ThothCastellordievader: fairpoint12:15
ThothCastelhave tried that12:15
ThothCastelthe issue disappears12:15
lordievaderSounds like the problem lies between the laptop and the server (the switch)12:15
ThothCastelthat is the tricky bit12:17
ThothCasteland if I plug any other device other than the ubuntu server onto the same ports, then the problem isn't there12:18
ThothCastelbecause I have checked all configs on the switch dozens of times - all looks good12:18
ThothCastelis there such a thing is imcompatibility of a netgear switch with ubuntu server? lol12:19
lordievaderThe switch is a normal layer two switch? Or does it do something special (managed/vlans, etc)12:22
ThothCastelmanaged/vlans12:22
ThothCastelthe ports in question 3 and 4 are tagged with vlan 102012:22
ThothCastelthey also have pvid of 102012:23
ThothCasteland if a laptop is plugged onto these ports 3 and 4, I can access gw 10.10.20.112:23
ThothCastelBUT if i plug the ubuntu onto 3 or 4 then problem is there12:23
ThothCastelDestination unreachable12:24
ThothCastelit makes no sense whatsoever12:24
ThothCasteli don't even see it hiting the fw12:24
sdezielThothCastel: if your PVID is 1020, you normally would have VLAN 1020 as *untagged*12:29
ThothCastelok let me try that12:30
ThothCastelsdeziel: hurray!12:30
ThothCastelthat works12:30
sdezielThothCastel: cool :)12:30
ThothCasteldamm... tried so many options12:30
ThothCastelexcept that one :)12:30
ThothCastelthanks sdeziel12:31
ThothCastelso if I have pvid for that port 3 and 4 as vlan 112:31
ThothCastelthen I will tag vlan 102012:31
ThothCastelcorrect?12:31
sdezielthis is the thing with debugging all attempts fail but the last ;)12:31
ThothCastellol12:31
sdezielThothCastel: when untagged packet enter a switch port, they get assigned the PVID VLAN. Since you want the return packets on that VLAN to be handed over without VLAN tag, you need to make that VLAN untagged12:33
sdezielThothCastel: failing to do the last part means the switch was handing over the return packets with a VLAN 1020 tag the PC wasn't ready to handle12:34
ThothCastelsdeziel: right!12:35
ThothCastelso if I was to set ports 3 and 4 with pvid as vlan 1 and TAG vlan 1020, that would give me similar positive result right?12:36
sdezielThothCastel: you'd need an untagged VLAN 1 on ports 3 and 4. With that, what's hooked to either of those port could communicate "normally" on VLAN 1 but would require VLAN configuration to handle VLAN 102012:37
ThothCastelsdeziel: right makes sense12:43
ThothCastelthanks loads12:43
ThothCastel:)12:43
sdezielmy pleasure12:43
=== JanC_ is now known as JanC
=== Maik is now known as ModeCouse92
=== ModeCouse92 is now known as Maik
kinghatim trying to setup a swapfile on my machine but its btrfs at root, is that not possible? i keep getting:22:15
kinghat$ sudo swapon /swapfile22:15
kinghatswapon: /swapfile: swapon failed: Invalid argument22:15
mybalzitchwhat happens if you sudo mkswap /swapfile then try to swapon it22:22
kinghat$ sudo mkswap /swapfile22:23
kinghatmkswap: /swapfile: warning: wiping old swap signature.22:23
kinghatSetting up swapspace version 1, size = 4 GiB (4294963200 bytes)22:23
kinghatno label, UUID=180a941b-5d76-4a6f-85bf-39ae4e1245dd22:23
kinghat$ sudo swapon /swapfile22:23
kinghatswapon: /swapfile: swapon failed: Invalid argument22:23
kinghati originally used fallocate and read that wasnt proper, so i wrote over that with dd.  then did mkdswap and swapon.22:24
mybalzitchhmm, weird. I've never used btrfs though22:24
kinghati found this: https://askubuntu.com/a/1206161/868274 but im not going to bother if thats the case.22:25
ivo_cavalcanteit is doable, swap on btrfs23:51
ivo_cavalcantebut with some considerations, as you noted23:52
ivo_cavalcantelet me link btrfs wiki, they say something there23:52
ivo_cavalcantehttps://btrfs.wiki.kernel.org/index.php/Manpage/btrfs(5)#SWAPFILE_SUPPORT23:53
ivo_cavalcanteI'd rather use a different partition, though23:54

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!