[00:00] nevermind === StathisA_ is now known as StathisA [07:48] Good morning [08:42] fresh install offline of ubuntu server with static ip of 10.10.20.5/24 GW 10.10.20.1 [08:43] plugged onto a netgear switch port 4 [08:43] netgear is uplinked to a fw [08:43] if 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.1 [08:43] BUT my ubuntu says it can't reach its default gateway when plugged onto the same port 4 of netgear switch [08:43] within ubuntu I can ping itself and on the switch port 4 I can see it is up so cable is good [08:43] but why the hell can't i ping my gw from ubuntu? [08:45] Can the laptop and server reach eachother? [08:46] Useful for troubleshooting, run a `tcpdump 'icmp'` on both sides. === denningsrogue68 is now known as denningsrogue6 === cpaelzer__ is now known as cpaelzer [10:06] lordievader: the laptop can ping its gateway 10.10.20.1 but ubuntu server 10.10.20.5 [10:06] which is awkward [10:06] I have configured both ports 3 and 4 the same way on the netgear switch [10:07] laptop when plugged onto either 3 or 4 of netgear, it reaches its gateway [10:07] but not the ubuntu server [10:07] checked ip settings in netplan [10:07] re-generated [10:07] re-applied [10:07] still the same thing [10:07] destination host unreachable [10:08] So nothing can reach the server? Do you see ICMP requests on the tcpdump of the server, or completely nothing? [10:08] no [10:08] i just see that it is 'listening' [10:09] laptop is a win10 machine [10:09] just changed cable [10:10] still the same [10:49] If 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. [12:15] lordievader: fairpoint [12:15] have tried that [12:15] the issue disappears [12:15] Sounds like the problem lies between the laptop and the server (the switch) [12:17] that is the tricky bit [12:18] and if I plug any other device other than the ubuntu server onto the same ports, then the problem isn't there [12:18] because I have checked all configs on the switch dozens of times - all looks good [12:19] is there such a thing is imcompatibility of a netgear switch with ubuntu server? lol [12:22] The switch is a normal layer two switch? Or does it do something special (managed/vlans, etc) [12:22] managed/vlans [12:22] the ports in question 3 and 4 are tagged with vlan 1020 [12:23] they also have pvid of 1020 [12:23] and if a laptop is plugged onto these ports 3 and 4, I can access gw 10.10.20.1 [12:23] BUT if i plug the ubuntu onto 3 or 4 then problem is there [12:24] Destination unreachable [12:24] it makes no sense whatsoever [12:24] i don't even see it hiting the fw [12:29] ThothCastel: if your PVID is 1020, you normally would have VLAN 1020 as *untagged* [12:30] ok let me try that [12:30] sdeziel: hurray! [12:30] that works [12:30] ThothCastel: cool :) [12:30] damm... tried so many options [12:30] except that one :) [12:31] thanks sdeziel [12:31] so if I have pvid for that port 3 and 4 as vlan 1 [12:31] then I will tag vlan 1020 [12:31] correct? [12:31] this is the thing with debugging all attempts fail but the last ;) [12:31] lol [12:33] ThothCastel: 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 untagged [12:34] ThothCastel: 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 handle [12:35] sdeziel: right! [12:36] so 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:37] ThothCastel: 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 1020 [12:43] sdeziel: right makes sense [12:43] thanks loads [12:43] :) [12:43] my pleasure === JanC_ is now known as JanC === Maik is now known as ModeCouse92 === ModeCouse92 is now known as Maik [22:15] im trying to setup a swapfile on my machine but its btrfs at root, is that not possible? i keep getting: [22:15] $ sudo swapon /swapfile [22:15] swapon: /swapfile: swapon failed: Invalid argument [22:22] what happens if you sudo mkswap /swapfile then try to swapon it [22:23] $ sudo mkswap /swapfile [22:23] mkswap: /swapfile: warning: wiping old swap signature. [22:23] Setting up swapspace version 1, size = 4 GiB (4294963200 bytes) [22:23] no label, UUID=180a941b-5d76-4a6f-85bf-39ae4e1245dd [22:23] $ sudo swapon /swapfile [22:23] swapon: /swapfile: swapon failed: Invalid argument [22:24] i originally used fallocate and read that wasnt proper, so i wrote over that with dd. then did mkdswap and swapon. [22:24] hmm, weird. I've never used btrfs though [22:25] i found this: https://askubuntu.com/a/1206161/868274 but im not going to bother if thats the case. [23:51] it is doable, swap on btrfs [23:52] but with some considerations, as you noted [23:52] let me link btrfs wiki, they say something there [23:53] https://btrfs.wiki.kernel.org/index.php/Manpage/btrfs(5)#SWAPFILE_SUPPORT [23:54] I'd rather use a different partition, though