Quantcast
Channel: Ubuntu Forums - Networking & Wireless
Viewing all 23300 articles
Browse latest View live

[ubuntu_mate] @25sec to get Connection

$
0
0
I've recently attempted to connect (to the internet) via a Bridge connection rather than my wired Ethernet connection (Desktop). I have done this so that all my kvm guests have bridge connections and are in the same ip range as my host (followed various posts on web). Everything appears ok (everything in same ip range and has connectivity) except that when I first boot to my Desktop I have no internet connectivity for about 25secs - and then bang, I'm on. Is this normal in that I'm now using a software virtual bridge device so it takes time (@25 secs) to sort everything out?
Attached Images

pass traffic between 2 interfaces on same box

$
0
0
Hello. I'm asking for some networking expertise, please.
I have set up a small DLNA server, on a NanoPi NEO3, running Ubuntu Core 18.04.
On the NEO3 I have successfully set up the DLNA server (minidlna), samba, a wifi interface, an ethernet interface, and a DHCP server running on the ethernet interface.
The ethernet interface is connected to the DLNA endpoint device (an Audio Pro C5). I have set a static IP address for this interface of 10.0.0.1, and its DHCP server hands out IP address 10.0.0.2 to the DLNA endpoint device.

The NEO3's wifi interface is configured to connect to my home router, with a static IP address of 192.168.1.102.
I'm running a DLNA controller app (BubbleUPnP) on my Android phone, connected to this same wifi router.

So far, so good. The stumbling block is that I need to pass network traffic between the two interfaces (eth0 and wlan0) of my NEO3 for this to all work. After reading many HOWTO's on the web, I tried two different approaches:

i) creating static routes with "ip route"
Code:

sudo ip route add 10.0.0.0/24 via 192.168.1.102 dev wlan0
sudo ip route add 192.168.1.0/24 via 10.0.0.1 dev eth0

then added this to /etc/sysctl.conf
Code:

net.ipv4.ip_forward=1
ii) Network Address Translation with iptables
Code:

sudo iptables -A FORWARD -i eth0 -j ACCEPT
sudo iptables -A FORWARD -i wlan0 -j ACCEPT
sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
sudo iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE

In both cases, from my phone (or any other device on the 192.168.1.x network) I could not ping 10.0.0.1.
Can anyone please tell me which way to go with this?
Thanks.

WiFi issues Ubuntu 20.04 Dell XPS 15 (9570)

$
0
0
Hi all,

some times ago, I've installed Ubuntu (18.04) on my Dell XPS 15 and everything was fine.
After upgrading to 20.04 I'm having some serious issues with the Wireless interface.
Basically after some random period the wifi is connected, it crashes and I cannot do anything else other than reboot the system.

If I go to the WiFi settings it appears "NetworkManager is not running".
If I try to input the following command "lshw -C network" it gets stuck and I have to close the terminal.

I don't know how to troubleshoot this issue.

the product is the ACA6174 802.11ac Wireless Network Adapter (I saw this because immediately after I boot the system, the command "lshw -C network" works properly).

Thank you in advance

[ubuntu] VLANs advantages for Private Users

$
0
0
I have just started experimenting with VLAN on my router.

With the exponential growth of IoT now it is not unusual for a family household to have 30+ (That may be low a estimate) devices connected to the LAN. All needed routing, most DHCP, broadcast messages etc. I do find with mine on occasions a device is connected to the internet but won't respond locally. Sometimes clearing the router's ARP record clears it but usually a reboot is required.

So am wondering; for a home network is a VLAN a good idea? Would a normal user notice any difference? Appreciate the security aspect of isolating certain machines of devices but just curious what other forum members think.

Geoff

[ubuntu_studio] NetworkManager fails to start

$
0
0
Ubuntu 20. Up until 06:18 EST on Feb 13, 2021, NetworkManager was running fine, getting an IP from DHCP on my router. Here is output from journalctl for hostname coot

Code:

Feb 13 06:18:57 coot systemd[1]: NetworkManager.service: Main process exited, code=dumped, status=11/SEGV
Feb 13 06:18:57 coot systemd[1]: NetworkManager.service: Failed with result 'core-dump'.
Feb 13 06:18:57 coot systemd[1]: NetworkManager.service: Scheduled restart job, restart counter is at 1.
Feb 13 06:18:57 coot systemd[1]: Stopped Network Manager.
Feb 13 06:18:57 coot systemd[1]: Starting Network Manager...
Feb 13 06:18:58 coot NetworkManager[229188]: Inconsistency detected by ld.so: ../sysdeps/x86_64/dl-machine.h: 541: elf_machine_rela_relative: Assertion
 `ELFW(R_TYPE) (reloc->r_info) == R_X86_64_RELATIVE' failed!
Feb 13 06:18:58 coot systemd[1]: NetworkManager.service: Main process exited, code=exited, status=127/n/a
Feb 13 06:18:58 coot systemd[1]: NetworkManager.service: Failed with result 'exit-code'.
Feb 13 06:18:58 coot systemd[1]: Failed to start Network Manager.
Feb 13 06:18:58 coot systemd[1]: NetworkManager.service: Scheduled restart job, restart counter is at 2.
Feb 13 06:18:58 coot systemd[1]: Stopped Network Manager.

Every attempt to start NetworkManager since then has failed. The next day, I noticed that the connection light on the ethernet switch was not lit for the cable to my machine. I tried a usb-to-ethernet adapter and the switch port lit up just fine. Without a NetworkManager, I still didn't have connectivity.

I bought a PCI ethernet card with an Intel chip. Installed it, plugged in the cable and the port lit up as it should. When I rebooted (approx. noon local time on Feb 15) I had no connectivity. After some hours I saw an article describing how to run dhclient manually. dhclient got the network going again, routes and all. My new card is working, and I'm online again. I have rebooted several times since then, and I have repeatedly tried restarting NetworkManager with systemctl. BUT NetworkManager still won't start. The same error message appears in journalctl output. I have to run dhclient manually every reboot.

Do I need NetworkManager running? My new ethernet card is visible in 'lshw' output, but dhclient doesn't start until I run it manually.

What do I do next?

[ubuntu] Wireless and internet conection

$
0
0
Hi, I've just installed Ubuntu in my laptop, it is sharing disk with windows 10.
But there is the problem it does not detect any internet signal, nor wired nor wireless.

I've tried apt update and apt update, but it does not work, I tried apt-get install net-tool, sudo dpkg -i dkms, changing my IP.
But nothing seems to work.

How can I do it?

I will aprecciate a lot your help.

Cannot pair bluetooth mouse

$
0
0
I haven't found any solution yet so I am posting this.

Problem: I cannot pair my Logitech MX Master mouse via bluetooth to my new laptop with a fresh install of Ubuntu 20.04.2.

I believe the problem is not related to the specific mouse since it has always worked on Ubuntu 18.04 (other machine) and it is working on this same machine under Windows.

Other bluetooth devices (phone, earbuds) have been detected and paired without any problems.

Code:

$ sudo lsusb |grep Bluetooth
Bus 003 Device 003: ID 1358:c123 Realtek Bluetooth Radio

[...]

blueman-assistant 08.10.59 ERROR    blueman-assistant:197 err      :  Authentication Canceled

[...]

$ bluetoothctl
Agent registered
[bluetooth]# devices
Device FE:45:2F:B4:76:B9 MX Master
[bluetooth]# pair FE:45:2F:B4:76:B9
Attempting to pair with FE:45:2F:B4:76:B9
[CHG] Device FE:45:2F:B4:76:B9 Connected: yes
[CHG] Device FE:45:2F:B4:76:B9 Connected: no
Failed to pair: org.bluez.Error.AuthenticationCanceled

Thank you in advance for any help you can provide.

Fran

Can't broswe Windows Shares from Ubuntu

$
0
0
Hi

I'm running Ubuntu 20.04.2 LTS

I can connect to a Windows server to display the shares, but I cant browse any of them. It says:
Unable to access locations: Failed to mount Windows share: Invalid argument.

From researching it, I've made lots of tweaks to /etc/samba/smb.conf - I've lost track of all the changes. I wish I made a backup of the original file so I could start again, but below is a paste of the exact contents right now.

https://pastebin.com/mn6ce2QM

Thanks for helping!

[ubuntu] Using Pi-Hole within a VLAN

$
0
0
Folks,

Had Pi-Hole running on my network for some time with no issues. I have started experimenting with VLAN which, I am assuming this is the norm, creates another subnet.

If I create the VLAN without enabling isolate then Pi-Hole is seen, if I choose to isolate then it is not seen on the VLAN but obviously is on the original subnet.

Being new to VLAN I am not sure why one would create a VLAN and then not isolate but I may be missing some pros and cons.

Now I've tried using ip addr add to give the adapter a second IP address but, although it works fine if second address within same subnet it does not appear to work if the extra IP is within the second VLAN subnet.

There do not appear any obvious router settings to achieve this, any suggestions appreciated.

Geoff Lane

IPv6 on Ubuntu router; can't access LAN

$
0
0
Hey all,

I have a router running Ubuntu 20.04 that is statically configured via netplan for the LAN interface and dhcp/dhcp6 for the WAN interface. Everything works as expected EXCEPT the router itself cannot use/ping via IPv6 on the LAN side.

To be clear: IPv6 and IPv4 work to WAN side for the router, machines on the LAN side have fully working IPv6 and IPv4, and the router has working IPv4 on the LAN, it is only the router that is unable to use IPv6 on the LAN side. My ISP has provided a /64 for IPv6 usage and I have dhcp (IPv4), dhcp6 (IPv6), and radvd all set up and working.

I've tried assigning a gateway6 address to eno1 (the LAN side) but networkctl tells me "eno1: Could not set route: Gateway can not be a local address. Invalid argument"

If I leave gateway6 out of the config there are no errors but the router can't use IPv6 on the LAN yet machines on the LAN can. It seems like the router can't figure out it is it's own route for the /64.

My netplan config looks like this:
network:
version: 2
renderer: networkd
ethernets:
enp2s0:
macaddress: XX:XX:XX:XX:XX:XX
dhcp4: true
dhcp6: true
dhcp4-overrides:
use-dns: false
dhcp6-overrides:
use-dns: false
nameservers:
search: [my local domain]
addresses: [127.0.0.1]
eno1:
macaddress: XX:XX:XX:XX:XX:1
dhcp4: false
dhcp6: false
addresses:
- 192.168.13.1/24
- XXXX:XXX:XXX:XXX::1/64
nameservers:
search: [my local domian]
addresses: [127.0.0.1]




Any help would be greatly appreciated! Thank you!

[ubuntu] Unable to Connect Via Samba After Reinstalling Ubuntu

$
0
0
I reinstalled Ubuntu 20.04 and applied all updates on my server and shared some folders (reinstalling Samba), but now whenever I try to access a folder remotely, I log in with the password, then the connect dialog keeps popping up, but everything is grayed out except the Connect button. What is wrong here?

[ubuntu] Ubuntu Linux 20.04 - Bluetooth neckband microphone not working

$
0
0
Hi all,

I own a Dell Inspiron 3543 laptop since June 2015. This laptop came with an integrated microphone. Recently, in Oct. 2020 IIRC, I had to record a short video message and I realized that the footage has static. My laptop currently has Ubuntu Linux 20.04 64 bit.

I used a pair of headphones + microphone to record a short video message. When I play back the footage, it has static. Maybe, behind the scenes, my headphones + microphone use the same integrated microphone and/or its drivers to record. So, no wonder the footage has static. BTW, I use application guvcview to access my integrated webcam to record footage. To me, it feels like the integrated microphone has a driver issue. I looked around in Google to see if there is a solution to my problem. Some posters suggested killing PulseAudio, specify the correct audio sample rate etc. I did these things and the static may have reduced but it is still there.

So, to circumvent the usage of the integrated microphone, I ordered a Bluetooth neckband with earphones and microphone. I could connect the neckband to my laptop effortlessly. The earphones work fine but the microphone doesn't. I recorded video footage but the footage has no audio; looks like no input to the microphone. I thought I received a defective neckband but when I paired the it with my Android mobile and made a call, the other person confirmed she could hear me. So, the microphone in the neckband works fine.

My configuration is -
Laptop hardware: Dell Inspiron 3543 Intel(R) Core i5-5200U CPU @ 2.2 GHz x 4; 8GB RAM; 1 TB HDD
Neckband: Boult Audio ProBass FlowX, Bluetooth 5.0
Software: Ubuntu Linux 20.04 (64 bit), guvcview, VLC 3.0.12.1

When I look at arecord, I see
Code:

$arecord -l
**** List of CAPTURE Hardware Devices ****
card 1: PCH [HDA Intel PCH], device 0: ALC3234 Analog [ALC3234 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

So, is this a Bluetooth driver issue? How do I resolve this issue? Please let me know if you need more information. I appreciate any suggestions/pointers/insights. Thanks in advance for your help!

issues with NFS

$
0
0
I am working on setting up a NFS Server and Client for a project and it used to work just like it but it is no longer and I dont understand what am I missing. Here is what I did:
sudo apt update
sudo apt upgrade
sudo apt install nfs-kernel-server
sudo mkdir /var/nfs/myshare -p
sudo chown nobody:nogroup /var/nfs -R
sudo vim /etc/exports
/var/nfs/myshare *(rw,sync,no_subtree_check)
sudo systemctr restart nfs-kernel-server
sudo exportfs -a

and on the client side:
sudo apt update
sudo apt upgrade
sudo apt install nfs-common
mkdir /home/username/nfs-share
sudo mount server_ip_address:/var/nfs/myshare /home/username/nfs-share
so far all good but when I try to run: "touch /home/username/nfs-share/test.txt " then I get: "touch: cannot touch 'home/username/nfs-share/test.txt': Permission Denied"

Client Side: nfs mounted folder drwnr-xr-x 2 nobody nogroup
Server Side: nfs share folder myshare: drwxr-xr-x nobody nogroup

What am I missing?

[lubuntu] RTL8188FU - no automatic connect

$
0
0
Lubuntu 20.04

After compiling drivers, it started to work and I can see the SSID networks in the range, I can connect to my network. However, if I turn off or reboot the system, it does not auto reconnects to my network.

I have to select my network and enter with my login and password every time.

[lubuntu] System CPU locksup

$
0
0
I get a message like this: "kernel: NMI watchdog: Watchdog detected hard LOCKUP on cpu 1". This is about the third time or so that this has happened now. I have a Dell XPS 9550. I am running Lubuntu.


I hope this helps:
Code:

Feb 19 10:56:43 <hostname> kernel: iwlwifi 0000:02:00.0: Error sending STATISTICS_CMD: time out after 2000ms.
Feb 19 10:56:43 <hostname> kernel: iwlwifi 0000:02:00.0: Current CMD queue read_ptr 116 write_ptr 117
Feb 19 10:56:43 <hostname> kernel: iwlwifi 0000:02:00.0: HW error, resetting before reading
Feb 19 10:56:43 <hostname> kernel: iwlwifi 0000:02:00.0: Microcode SW error detected. Restarting 0xA5A50002.
Feb 19 10:56:43 <hostname> kernel: BUG: kernel NULL pointer dereference, address: 0000000000000008
Feb 19 10:56:43 <hostname> kernel: #PF: supervisor read access in kernel mode
Feb 19 10:56:43 <hostname> kernel: #PF: error_code(0x0000) - not-present page
Feb 19 10:56:43 <hostname> kernel: PGD 0 P4D 0 
Feb 19 10:56:43 <hostname> kernel: Oops: 0000 [#1] SMP PTI
Feb 19 10:56:43 <hostname> kernel: CPU: 1 PID: 967 Comm: irq/152-iwlwifi Tainted: G        W  OE    5.4.0-65-generic #73-Ubuntu
Feb 19 10:56:43 <hostname> kernel: Hardware name: Dell Inc. XPS 15 9550/0N7TVV, BIOS 1.12.0 10/03/2019
Feb 19 10:56:43 <hostname> kernel: RIP: 0010:iwl_pcie_irq_msix_handler+0x1ec/0x4a0 [iwlwifi]
Feb 19 10:56:43 <hostname> kernel: Code: 34 ff ff ff 49 8b 44 24 30 a8 02 0f 84 27 ff ff ff 49 8b 36 4c 89 e7 e8 42 d3 ff ff e9 17 ff ff >
Feb 19 10:56:43 <hostname> kernel: RSP: 0018:ffffa3b100dcfe38 EFLAGS: 00010202
Feb 19 10:56:43 <hostname> kernel: RAX: 0000000000000000 RBX: 0000000024000182 RCX: ffff8b93c06b1e00
Feb 19 10:56:43 <hostname> kernel: RDX: 0000000000000001 RSI: 0000000000000246 RDI: ffff8b93d951b0b0
Feb 19 10:56:43 <hostname> kernel: RBP: ffffa3b100dcfe70 R08: 0000000000000000 R09: ffffa3b100dcfd98
Feb 19 10:56:43 <hostname> kernel: R10: ffffffff863971a8 R11: ffffa3b100dcfb00 R12: ffff8b93c06b0018
Feb 19 10:56:43 <hostname> kernel: R13: 00000000a5a50002 R14: ffff8b93c06b0318 R15: ffff8b93c06b1eb0
Feb 19 10:56:43 <hostname> kernel: FS:  0000000000000000(0000) GS:ffff8b93dde40000(0000) knlGS:0000000000000000
Feb 19 10:56:43 <hostname> kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Feb 19 10:56:43 <hostname> kernel: CR2: 0000000000000008 CR3: 000000087d4ee002 CR4: 00000000003606e0
Feb 19 10:56:43 <hostname> kernel: DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
Feb 19 10:56:43 <hostname> kernel: DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Feb 19 10:56:43 <hostname> kernel: Call Trace:
Feb 19 10:56:43 <hostname> kernel:  ? irq_finalize_oneshot.part.0+0xf0/0xf0
Feb 19 10:56:43 <hostname> kernel:  irq_thread_fn+0x28/0x60
...
Feb 19 10:56:43 <hostname> kernel: BUG: kernel NULL pointer dereference, address: 0000000000000001
Feb 19 10:56:43 <hostname> kernel: #PF: supervisor instruction fetch in kernel mode
Feb 19 10:56:43 <hostname> kernel: #PF: error_code(0x0010) - not-present page
Feb 19 10:56:43 <hostname> kernel: PGD 0 P4D 0
Feb 19 10:56:43 <hostname> kernel: Oops: 0010 [#2] SMP PTI
Feb 19 10:56:43 <hostname> kernel: CPU: 1 PID: 967 Comm: irq/152-iwlwifi Tainted: G      D W  OE    5.4.0-65-generic #73-Ubuntu
Feb 19 10:56:43 <hostname> kernel: Hardware name: Dell Inc. XPS 15 9550/0N7TVV, BIOS 1.12.0 10/03/2019
Feb 19 10:56:43 <hostname> kernel: RIP: 0010:0x1
Feb 19 10:56:43 <hostname> kernel: Code: Bad RIP value.
Feb 19 10:56:43 <hostname> kernel: RSP: 0018:ffffa3b100dcfea0 EFLAGS: 00010286
Feb 19 10:56:43 <hostname> kernel: RAX: 0000000000000001 RBX: 0000000000000001 RCX: 0000000000000000
Feb 19 10:56:43 <hostname> kernel: RDX: ffffa3b100dcfec0 RSI: 0000000000000000 RDI: ffffa3b100dcfec0
Feb 19 10:56:43 <hostname> kernel: RBP: ffffa3b100dcfed0 R08: ffffffff85e5ece0 R09: 0000000000000000
Feb 19 10:56:43 <hostname> kernel: R10: ffffffff863971a8 R11: ffffa3b100dcf9e8 R12: ffff8b93c8ed5f00
Feb 19 10:56:43 <hostname> kernel: R13: ffff8b93c8ed6a64 R14: ffff8b93c8ed6a28 R15: 0000000000000000
Feb 19 10:56:43 <hostname> kernel: FS:  0000000000000000(0000) GS:ffff8b93dde40000(0000) knlGS:0000000000000000
Feb 19 10:56:43 <hostname> kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Feb 19 10:56:43 <hostname> kernel: CR2: ffffffffffffffd7 CR3: 000000087d4ee002 CR4: 00000000003606e0
Feb 19 10:56:43 <hostname> kernel: DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000


Feb 19 11:06:57 <hostname> avahi-daemon[1227]: Registering new address record for <redacted> on lo.*.
Feb 19 11:06:57 <hostname> avahi-daemon[1227]: Withdrawing address record for ::1 on lo.
Feb 19 11:06:57 <hostname> avahi-daemon[1227]: Registering new address record for <redacted> on lo.*.
Feb 19 11:06:57 <hostname> kernel: [  25.353639] ------------[ cut here ]------------
Feb 19 11:06:57 <hostname> kernel: [  25.353640] General protection fault in user access. Non-canonical address?
Feb 19 11:06:57 <hostname> kernel: [  25.353646] WARNING: CPU: 7 PID: 1898 at arch/x86/mm/extable.c:126 ex_handler_uaccess+0x52/0x60
Feb 19 11:06:57 <hostname> kernel: [  25.353646] Modules linked in: xt_conntrack xt_MASQUERADE nf_conntrack_netlink nfnetlink xfrm_user xfrm_algo xt_addrtype iptable_filter iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 bpfilter br_netfilter bridge stp llc nls_utf8 cifs fscache libdes ccm aufs overlay bluetooth ecdh_generic ecc sch_fq_codel binfmt_misc mei_hdcp intel_rapl_msr snd_hda_codec_hdmi intel_hid dell_laptop snd_hda_codec_realtek snd_hda_codec_generic ledtrig_audio uvcvideo videobuf2_vmalloc cdc_mbim videobuf2_memops snd_hda_intel videobuf2_v4l2 snd_intel_dspcfg cdc_wdm x86_pkg_temp_thermal videobuf2_common intel_powerclamp coretemp snd_hda_codec snd_usb_audio videodev snd_hda_core kvm_intel cdc_ncm snd_usbmidi_lib snd_hwdep snd_seq_midi usbnet snd_seq_midi_event kvm mii snd_rawmidi mc iwlmvm snd_pcm rapl snd_seq mac80211 joydev snd_seq_device dell_wmi usblp intel_cstate libarc4 snd_timer dell_smbios dcdbas input_leds sparse_keymap serio_raw wmi_bmof iwlwifi dell_wmi_descriptor intel_wmi_thunderbolt snd
Feb 19 11:06:57 <hostname> kernel: [  25.353679]  mei_me rtsx_pci_ms cfg80211 soundcore memstick hid_multitouch mei intel_pch_thermal processor_thermal_device intel_rapl_common intel_soc_dts_iosf int3403_thermal int3402_thermal int340x_thermal_zone int3400_thermal mac_hid acpi_thermal_rel acpi_pad evdi(OE) ppdev lp parport ip_tables x_tables autofs4 btrfs xor zstd_compress raid6_pq libcrc32c dm_crypt dm_mirror dm_region_hash dm_log usbhid hid_generic crct10dif_pclmul crc32_pclmul ghash_clmulni_intel rtsx_pci_sdmmc nouveau i915 aesni_intel crypto_simd cryptd mxm_wmi glue_helper ttm psmouse i2c_algo_bit i2c_i801 drm_kms_helper nvme syscopyarea sysfillrect sysimgblt rtsx_pci fb_sys_fops drm ahci nvme_core intel_lpss_pci intel_lpss libahci idma64 virt_dma i2c_hid hid video wmi [last unloaded: parport_pc]
Feb 19 11:06:57 <hostname> kernel: [  25.353698] CPU: 7 PID: 1898 Comm: auditbeat Tainted: G          OE    5.4.0-65-generic #73-Ubuntu
Feb 19 11:06:57 <hostname> kernel: [  25.353698] Hardware name: Dell Inc. XPS 15 9550/0N7TVV, BIOS 1.12.0 10/03/2019
Feb 19 11:06:57 <hostname> kernel: [  25.353700] RIP: 0010:ex_handler_uaccess+0x52/0x60
...


Uname -r: 5.4.0-65-generic


cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.2 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.2 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

[ubuntu] Wired Ethernet not connecting to Ubuntu 18.04 server (wifi works)

$
0
0
Trying to determine the issue behind why my server (18.04) cannot connect to through the ethernet cable. It was was working fine a few days ago but after I attempted to do some re-wiring, the server could no longer connect to my network. I checked the wiring and did not see anything misplaced and even made sure everything was plugged in properly. What should I be looking for in the machine? Is there something simple I am over looking? My network provider is comcast business. Any help is appreciated.

Output of ifconfig
Code:

  eno1: flags=4163<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 10.1.10.201 netmask 255.255.255.0 broadcast 10.1.10.255
        inet6 fe80::a6ba:dbff:fe2e:1c63 prefixlen64 scopeid 0x20<link>
        ether a4:ba:db:2e:1c:63  txqueuelen 1000  (Ethernet)
        RX packets 11617  bytes 1969830 (1.9 MB)
        RX errors 0  dropped 1  overruns 0  frame 0
        TX packets 65450  bytes 4492101 (4.4 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 36 
  swlo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 302383  bytes 28242833 (28.2 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 302383  bytes 28242833 (28.2 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

  eno2: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
       
        ether a4:ba:db:2e:1c:65 txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Output of lshw -C network
Code:

*-network:0             
      description: Ethernet interface
      product: NetXtreme II BCM5709 Gigabit Ethernet
      vendor: Broadcom Inc. and subsidiaries
      physical id: 0
      bus info: pci@0000:01:00.0
      logical name: en01
      version: 20
      serial: a4:ba:db:2e:1c:63
      capacity: 1Gbit/s
      width: 64 bits
      clock: 33MHz
      capabilities: pm vpd msi msix pciexpress bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
      configuration: autonegotiation=on broadcast=yes driver=bnx2 driverversion=2.2.6 duplex=full firmware=17=7.12.19 bc 7.10.0 NCSI 2.0.13 ip=10.1.10.201 latency=0 link=no multicast=yes port=twisted pair
      resources: irq:32 memory:d6000000-d7ffffff

*-network:1                     
      description: Ethernet interface

      product: NetXtreme II BCM5709 Gigabit Ethernet
      vendor: Broadcom Inc. and subsidiaries
      physical id: 0.1
      bus info: pci@0000:01:00.1
      logical name: en02
      version: 20
      serial: a4:ba:db:2e:1c:65
      capacity: 1Gbit/s
      width: 64 bits
      clock: 33MHz
      capabilities: pm vpd msi msix pciexpress bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
      configuration: autonegotiation=on broadcast=yes driver=bnx2 driverversion=2.2.6 duplex=full firmware=17=7.12.19 bc 7.10.0 NCSI 2.0.13 latency=0 link=no multicast=yes port=twisted pair
      resources: irq:32 memory:d8000000-d9ffffff



*-network:0 DISABLED                   
      description: Ethernet interface

      product: NetXtreme II BCM5709 Gigabit Ethernet
      vendor: Broadcom Inc. and subsidiaries
      physical id: 0.1
      bus info: pci@0000:01:00.1
      logical name: en03
      version: 20
      serial: a4:ba:db:2e:1c:67
      capacity: 1Gbit/s
      width: 64 bits
      clock: 33MHz

SCP command hanging after completing file transfer

$
0
0
Hello all! I am trying to SCP a file from a machine running Ubuntu Server 20.04 to a windows 10 machine. My issue is that when SCP finishes transferring the file, it hangs and doesn't return the prompt until I press Ctrl+C. The file is successfully delivered to the destination. I've tried sending a file from the windows machine to the linux machine, and it works fine.

I've tried uninstalling and reinstalling openssh-client on the linux machine - no luck.

Running scp -vvv filename.txt usr@hostname.com:/file/dest yields:

Code:

Executing: program /usr/bin/ssh host 192.168.0.213, user reid_, command scp -v -t C:/Users/reid_/Downloads
OpenSSH_8.2p1 Ubuntu-4ubuntu0.1, OpenSSL 1.1.1f  31 Mar 2020
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug2: resolve_canonicalize: hostname 192.168.0.213 is address
debug2: ssh_connect_direct
debug1: Connecting to 192.168.0.213 [192.168.0.213] port 22.
debug1: Connection established.
debug1: identity file /home/eber/.ssh/id_rsa type -1
debug1: identity file /home/eber/.ssh/id_rsa-cert type -1
debug1: identity file /home/eber/.ssh/id_dsa type -1
debug1: identity file /home/eber/.ssh/id_dsa-cert type -1
debug1: identity file /home/eber/.ssh/id_ecdsa type 2
debug1: identity file /home/eber/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/eber/.ssh/id_ecdsa_sk type -1
debug1: identity file /home/eber/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /home/eber/.ssh/id_ed25519 type -1
debug1: identity file /home/eber/.ssh/id_ed25519-cert type -1
debug1: identity file /home/eber/.ssh/id_ed25519_sk type -1
debug1: identity file /home/eber/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /home/eber/.ssh/id_xmss type -1
debug1: identity file /home/eber/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.2p1 Ubuntu-4ubuntu0.1
debug1: Remote protocol version 2.0, remote software version OpenSSH_for_Windows_8.1
debug1: match: OpenSSH_for_Windows_8.1 pat OpenSSH* compat 0x04000000
debug2: fd 3 setting O_NONBLOCK
debug1: Authenticating to 192.168.0.213:22 as 'reid_'
debug3: hostkeys_foreach: reading file "/home/eber/.ssh/known_hosts"
debug3: record_hostkey: found key type ECDSA in file /home/eber/.ssh/known_hosts:4
debug3: load_hostkeys: loaded 1 keys from 192.168.0.213
debug3: order_hostkeyalgs: prefer hostkeyalgs: ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
debug3: send packet: type 20
debug1: SSH2_MSG_KEXINIT sent
debug3: receive packet: type 20
debug1: SSH2_MSG_KEXINIT received
debug2: local client KEXINIT proposal
debug2: KEX algorithms: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,ext-info-c
debug2: host key algorithms: ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ecdsa-sha2-nistp256-cert-v01@openssh.com,ssh-ed25519-cert-v01@openssh.com,sk-ssh-ed25519-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,sk-ecdsa-sha2-nistp256@openssh.com,ssh-ed25519,sk-ssh-ed25519@openssh.com,rsa-sha2-512,rsa-sha2-256,ssh-rsa
debug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
debug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
debug2: MACs ctos: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: MACs stoc: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: compression ctos: none,zlib@openssh.com,zlib
debug2: compression stoc: none,zlib@openssh.com,zlib
debug2: languages ctos:
debug2: languages stoc:
debug2: first_kex_follows 0
debug2: reserved 0
debug2: peer server KEXINIT proposal
debug2: KEX algorithms: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1
debug2: host key algorithms: rsa-sha2-512,rsa-sha2-256,ssh-rsa,ecdsa-sha2-nistp256,ssh-ed25519
debug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
debug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
debug2: MACs ctos: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: MACs stoc: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: compression ctos: none,zlib@openssh.com
debug2: compression stoc: none,zlib@openssh.com
debug2: languages ctos:
debug2: languages stoc:
debug2: first_kex_follows 0
debug2: reserved 0
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug3: send packet: type 30
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug3: receive packet: type 31
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:krsbzotBOrITkQclXuttTiwhQg+3T3uhlPBvzd/z8c4
debug3: hostkeys_foreach: reading file "/home/eber/.ssh/known_hosts"
debug3: record_hostkey: found key type ECDSA in file /home/eber/.ssh/known_hosts:4
debug3: load_hostkeys: loaded 1 keys from 192.168.0.213
debug1: Host '192.168.0.213' is known and matches the ECDSA host key.
debug1: Found key in /home/eber/.ssh/known_hosts:4
debug3: send packet: type 21
debug2: set_newkeys: mode 1
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug3: receive packet: type 21
debug1: SSH2_MSG_NEWKEYS received
debug2: set_newkeys: mode 0
debug1: rekey in after 134217728 blocks
debug1: Will attempt key: /home/eber/.ssh/id_rsa
debug1: Will attempt key: /home/eber/.ssh/id_dsa
debug1: Will attempt key: /home/eber/.ssh/id_ecdsa ECDSA SHA256:1hIbHjir112cziUNICNHOJrQ1dpDk06WUEvppLAyuSM
debug1: Will attempt key: /home/eber/.ssh/id_ecdsa_sk
debug1: Will attempt key: /home/eber/.ssh/id_ed25519
debug1: Will attempt key: /home/eber/.ssh/id_ed25519_sk
debug1: Will attempt key: /home/eber/.ssh/id_xmss
debug2: pubkey_prepare: done
debug3: send packet: type 5
debug3: receive packet: type 7
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521>
debug3: receive packet: type 6
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug3: send packet: type 50
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug3: start over, passed a different list publickey,password,keyboard-interactive
debug3: preferred gssapi-with-mic,publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Trying private key: /home/eber/.ssh/id_rsa
debug3: no such identity: /home/eber/.ssh/id_rsa: No such file or directory
debug1: Trying private key: /home/eber/.ssh/id_dsa
debug3: no such identity: /home/eber/.ssh/id_dsa: No such file or directory
debug1: Offering public key: /home/eber/.ssh/id_ecdsa ECDSA SHA256:1hIbHjir112cziUNICNHOJrQ1dpDk06WUEvppLAyuSM
debug3: send packet: type 50
debug2: we sent a publickey packet, wait for reply
debug3: receive packet: type 60
debug1: Server accepts key: /home/eber/.ssh/id_ecdsa ECDSA SHA256:1hIbHjir112cziUNICNHOJrQ1dpDk06WUEvppLAyuSM
debug3: sign_and_send_pubkey: ECDSA SHA256:1hIbHjir112cziUNICNHOJrQ1dpDk06WUEvppLAyuSM
debug3: sign_and_send_pubkey: signing using ecdsa-sha2-nistp521 SHA256:1hIbHjir112cziUNICNHOJrQ1dpDk06WUEvppLAyuSM
debug3: send packet: type 50
debug3: receive packet: type 52
debug1: Authentication succeeded (publickey).
Authenticated to 192.168.0.213 ([192.168.0.213]:22).
debug2: fd 4 setting O_NONBLOCK
debug2: fd 5 setting O_NONBLOCK
debug1: channel 0: new [client-session]
debug3: ssh_session2_open: channel_new: 0
debug2: channel 0: send open
debug3: send packet: type 90
debug1: Requesting no-more-sessions@openssh.com
debug3: send packet: type 80
debug1: Entering interactive session.
debug1: pledge: network
debug3: receive packet: type 80
debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0
debug3: receive packet: type 91
debug2: channel_input_open_confirmation: channel 0: callback start
debug2: fd 3 setting TCP_NODELAY
debug3: ssh_packet_set_tos: set IP_TOS 0x08
debug2: client_session2_setup: id 0
debug1: Sending environment.
debug3: Ignored env SHELL
debug3: Ignored env PWD
debug3: Ignored env LOGNAME
debug3: Ignored env XDG_SESSION_TYPE
debug3: Ignored env MOTD_SHOWN
debug3: Ignored env HOME
debug1: Sending env LANG = en_US.UTF-8
debug2: channel 0: request env confirm 0
debug3: send packet: type 98
debug3: Ignored env LS_COLORS
debug3: Ignored env SSH_CONNECTION
debug3: Ignored env LESSCLOSE
debug3: Ignored env XDG_SESSION_CLASS
debug3: Ignored env TERM
debug3: Ignored env LESSOPEN
debug3: Ignored env USER
debug3: Ignored env SHLVL
debug3: Ignored env XDG_SESSION_ID
debug3: Ignored env XDG_RUNTIME_DIR
debug3: Ignored env SSH_CLIENT
debug3: Ignored env XDG_DATA_DIRS
debug3: Ignored env PATH
debug3: Ignored env DBUS_SESSION_BUS_ADDRESS
debug3: Ignored env SSH_TTY
debug3: Ignored env _
debug1: Sending command: scp -v -t C:/Users/reid_/Downloads
debug2: channel 0: request exec confirm 1
debug3: send packet: type 98
debug2: channel_input_open_confirmation: channel 0: callback done
debug2: channel 0: open confirm rwindow 0 rmax 32768
debug2: channel 0: rcvd adjust 2097152
debug3: receive packet: type 99
debug2: channel_input_status_confirm: type 99 id 0
debug2: exec request accepted on channel 0
Sending file modes: C0664 10 test.txt
test.txt                                                                              100%  10    5.1KB/s  00:00
debug2: channel 0: read<=0 rfd 4 len 0
debug2: channel 0: read failed
debug2: channel 0: chan_shutdown_read (i0 o0 sock -1 wfd 4 efd 6 [write])
debug2: channel 0: input open -> drain
debug2: channel 0: ibuf empty
debug2: channel 0: send eof
debug3: send packet: type 96
debug2: channel 0: input drain -> closed

If more information is required please let me know! Thanks for the help it's greatly appreciated! Also I apologize if this is in the wrong location.

[server] Desconfigurada red al reiniciar maquina

$
0
0
Saludos amigos, un buen día para todos.

Deseo consultar sobre el siguiente problema:

Tengo un servidor con 4 tarjetas de red, ubuntu server 20.04, tres de ellas en uso, cada una con ip statica, y conectadas a un proveedor de internet diferente. Cada vez que reinicio la maquina la configuración de red al parecer cambia, pues debo cambiar físicamente los cables de red entre tarjetas hasta dar con la ubicación correcta de cada cable para que las tres conexiones de red funciones.

Acudo a ustedes solicitado ayuda para dar solución a este problema y poder reiniciar la maquina sin que la configuración de red cambie. Adjunto configuración actual de red.

auto lo ens1 eth0 eth2


iface lo inet loopback


# The primary network interface
allow-hotplug ens1 eth0 eth2

# Red fibra optica
iface ens1 inet static
address 192.168.1.100
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 190.157.8.33 181.48.0.233


# Red proveedor 1
iface eth0 inet static
address 192.168.0.4
netmask 255.255.255.0
broadcast 192.168.0.255


# Red proveedor 2
iface eth1 inet static
address 192.168.2.1
netmask 255.255.255.0
broadcast 192.168.2.255

Logging Connection to a Website

$
0
0
I have a problem connecting to a particular website. IS there a way to get meaningful logs of the interaction between my browser (I don't care which one) and the web sites.

SSH to virtual machine works only in one specific way

$
0
0
I have Ubuntu 20.04 installed on VMware Workstation 16 Player. I installed SSH server. To test it I did not use any key-pair, but only password.
From the Windows host the only way I can SSH into the machine is by using the command "ssh username@<LAN IP address*>" (*address as seen in ip a near inet)

If I try to use the same command from another PC I will get "ssh: connect to host localhost port 22: Connection timed out" (But that's obvious, because the IP is internal for the same network of the virtual machine and the Windows host)
But, If I try to use "ssh username@localhost" (from the Windows host)I get "ssh: connect to host localhost port 22: Connection refused"

Also, If I try to use "ssh username@<public IP address>" I get"ssh: connect to host localhost port 22: Connection refused"

To sum it up, the only way I can SSH to this virtual machine is from the host it runs from, and only using "ssh username@<LAN IP address*>"
*address as seen in ip a near inet


How to fix it? how to be able to SSH to it from other PCs on the internet as well?

Thanks
Viewing all 23300 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>