Quantcast
Channel: Active questions tagged networking - Ask Ubuntu
Viewing all 23488 articles
Browse latest View live

Qualcomm Usb modem not detected

$
0
0

I just installed ubuntu 18.04 and wanted to use internet with my qualcomm usb modem it does'nt detect the modem but when i run 'lsusb' it brings this

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hubBus 001 Device 004: ID 8087:0a2a Intel Corp. Bus 001 Device 003: ID 5986:1135 Acer, Inc Bus 001 Device 006: ID 05c6:1000 Qualcomm, Inc. Mass Storage DeviceBus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

I've tried a method I saw here https://ubuntuforums.org/showthread.php?t=2074129

Here is the report for 'usb_modeswitch -W -v 05c6 -p 1000 -K'

Take all parameters from the command line* usb_modeswitch: handle USB devices with multiple modes * Version 2.5.2 (C) Josua Dietze 2017 * Based on libusb1/libusbx ! PLEASE REPORT NEW CONFIGURATIONS !DefaultVendor=  0x05c6DefaultProduct= 0x1000StandardEject=1Look for default devices ...  found USB ID 1d6b:0003  found USB ID 8087:0a2a  found USB ID 5986:1135  found USB ID 05c6:1000   vendor ID matched   product ID matched  found USB ID 1d6b:0002 Found devices in default mode (1)Access device 006 on bus 001Get the current device configuration ...Current configuration number is 1Use interface number 0 with class 8Use endpoints 0x01 (out) and 0x81 (in)USB description data (for identification)-------------------------Manufacturer: Qualcomm, Incorporated     Product: Qualcomm CDMA Technologies MSM  Serial No.: 351602000025260-------------------------Sending standard EJECT sequenceLooking for active drivers ...Set up interface 0Use endpoint 0x01 for message sending ...Trying to send message 1 to endpoint 0x01 ... OK, message successfully sentRead the response to message 1 (CSW) ... Response successfully read (13 bytes), status 0Trying to send message 2 to endpoint 0x01 ... OK, message successfully sentRead the response to message 2 (CSW) ... Response successfully read (13 bytes), status 0Trying to send message 3 to endpoint 0x01 ... Device seems to have vanished right after sending. Good. Device is gone, skip any further commands-> Run lsusb to note any changes. Bye!

How to restrict bandwidth at system service level? Can each service be routed via a different network interface?

$
0
0

So. Here is what I am trying to do. I have a Ubuntu server (20.04) with the below three systemd services that I created. Each run its own application that keep uploading and downloading data from the internet.

service1, service2, service3

Example of service1 setup

sudo nano /etc/systemd/system/system1.service[Unit]Description=Myapp Service 1After=network.target Wants=network.target[Service]User=user1 Group=user1Type=simpleRestart=alwaysRestartSec=5ExecStart=myapp[Install]WantedBy=default.target

Now, I want the download bandwidth to be unlimited for all services. I want the upload bandwidth to be 1000 kBps for service1, 150 kBps for service2, 15 kBps for service3. I have an onboard ethernet adapter wired to my router and the interface name is eno1. I do not have wifi on this machine and prefer not to use wifi. Want it wired.

I came across wondershaper but it seems like it can only restrict bandwidth at interface level. In my case, for the whole eno1. Is there a way to create new interfaces eno2, eno3 and route traffic for each of those services (service1 and everything else through eno1, service2 through eno2, service3 through eno3) and use wondershaper to restrict bandwidth for eno1/2/3 separately?

Or is there any other option for me thats not too compilcated for a linux beginner?

Get error(115) trying to mount a Windows filesystem from Ubuntu

$
0
0
  • Ubuntu 14.04LTS server, I have no GUI desktop
  • In my example I'll use a fake IP address.
  • Trying to mount from Ubuntu to \1.2.3.4\users\me\subdir. Someone has to put a spreadsheet file on the \1.2.3.4\users\me\subdir and my program on Ubuntu has to read it.
  • I can ping 1.2.3.4 just fine, so it can't be a firewall issue, right?

I have read about 12 pages from my goole search, a few from this forum but I have nothing that works yet. This is what I did.

sudo mount -t cifs '\\1.2.3.4/users/shared/chuck/subdir' /home/comp/mnt/subdir -o username=chuck,password=CR4gilson mount error(115): Operation now in progressRefer to the mount.cifs(8) manual page (e.g. man mount.cifs)

This message is in /var/log/syslog:

Feb 15 09:43:56 ubuntucomp kernel: [7519048.289580] CIFS VFS: Error connecting to socket. Aborting operation.Feb 15 09:43:56 ubuntucomp kernel: [7519048.289872] CIFS VFS: cifs_mount failed w/return code = -115

In my ufw output samba seems to be allowed anywhere:

Samba                      ALLOW       Anywhere

Thank you!

How to install wifi driver (rlt8812bu) for all users?

$
0
0

So after some research I figured out why my TP-Link RE220 wouldnt connect to my Linux. After some tries this finally worked: https://github.com/cilynx/rtl88x2buBut I only managed to get it to work on one of my admin users. Now I am somewhat desperately trying to get it to work on other users too. I tried su and I changed the user rights to admin for these users, but it doesnt work.When I install it on another user it states that everything is fine and the driver is built, etc. But it does not work. Is there anyway to install the driver to all users or to make it work on another user?I am fairly new to askubunutu and to linux, so i appreciate every hint!

Is it possible to set static IP on only for specific network, but use DHCP everywhere else?

$
0
0

I'm asking in cases for laptops when I want to connect to the internet using wired setup. Would it be possible to apply my Netplan settings at one network only (i.e. my home), and have the default everywhere else?

How to configure 2 interfaces without losing Internet connection?

$
0
0

I am using Hyper v for my linux lab.

I have Ubuntu Server 16.04 which contain 2 network cards that shown in the system as 2 Interfaces.

eth0: I configured it to get IP from DHCP server (my dlink router which provides internet access).

eth1: I configured a static IP on it for my internal network.

This is the /etc/network/interfaces file that I edit:

#######Primary Network interfaceAuto eth0Iface eth0 inet DHCP#######The Internal Network interfaceAuto eth1Iface eth1 inet static address 192.168.1.1 netmask 255.255.255.0 gateway 192.168.1.254 dns-nameservers 192.168.1.254

After I finish to edit the configuration file and doing reboot to server - I loses my Internet access.

Even if I try to ping to 8.8.8.8 from eth0 (with ping -I eth0 8.8.8.8 command) it fails.

When I delete the internal network interface from the configuration file and reboot, my internet connection gets restored.

What am I doing wrong? How can I configure my machine so that the eth0 device will use for internet access only, and the eth1 will use for my internal network?

Failed to apply network settings, connect to the Bluetooth network via this machine

$
0
0

After updating to Ubuntu 16.04, from 14 I am getting a

Failed to apply network settings.

I found this https://github.com/blueman-project/blueman/issues/513 but I am running the latest version of Ubuntu. The suggestions I found from stack overflow do not seem related.

The full error:

org.freedesktop.DBus.Python.UnicodeDecodeError: Traceback (most recent call last):   File "/usr/lib/python3/dist-packages/dbus/service.py", line 707, in _message_cb    retval = candidate_method(self, *args, **keywords)   File "/usr/lib/python3/dist-packages/blueman/main/DbusService.py", line 36, in wrapper    return method(*args[1:], **kwargs)   File "/usr/lib/python3/dist-packages/blueman/plugins/mechanism/Network.py", line 63, in ReloadNetwork    nc = NetConf.get_default()   File "/usr/lib/python3/dist-packages/blueman/main/NetConf.py", line 219, in get_default    obj = pickle.load(f) UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in position 0: ordinal not in range(128)

Best vpn for ubunto [closed]


How to add a loopback interface?

$
0
0

I want to add two more loopback interfaces.

I used the following command:

ifconfig lo: 127.0.0.2 netmask 255.0.0.0 up

and type in ifconfig, i can see the loopback address was added.

But if i want to add one more interface... (for example 127.0.0.3) the previous interface (127.0.0.2) was overwritten.

Also when i look in /etc/network/interfaces i see no entry.

How can i add multiple loopback interfaces permanently?

What is MASQUERADE in the context of iptables?

$
0
0

In iptables many times I see the target MASQUERADE. What is that? I searched and found lots of things. But I need someone to explain to me what MASQUERADE is in an easy to understand way?

An example (taken from this answer) is:

sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

A start job is running for wait for network to be configured. Ubuntu server 17.10

$
0
0

i just installed ubuntu server on my laptop and everything works fine except for the fact that at boot if the laptop is not connected to ethernet or in range of my wi-fi i get this message "A start job is running for wait for network to be configured" that stays for about 2 minutes. I looked up online for solutions and i tried to:

  • Disable network manager
  • Edit timeout settings in /etc/systemd/system.conf
  • Disable systemd.networkd-wait-online.service

None of these solutions worked for me. Any possible fixes?

inet 192.168.0.214/24 brd 192.168.0.255 scope global secondary enp3s0

$
0
0

Please advise what is going on here. I configured (in /etc/netplan) a static address as above and now I'm being told it's a "secondary address" with 192.168.0.199 (dchp obtained) being the primary.

If the primary config file in /etc/netplan tells the system a static ip has been assigned, can you please ensure that it over-rides whatever else is contradicting this setting. Or alternatively make clear in documentation ALL the files which need to be changed in order to set a static ip. I'm seeing above I need to go check for yaml files in /lib/netplan and /run/netplan. Oh for goodness sake, why not go back to good old simple /etc/network/interfaces.

frustration in netplan

$
0
0

I've been scratching my head the whole day.I have the following netplan yaml file: (with mac address & ip addresses masked out for privacy)

network:  version: 2  renderer: networkd  ethernets:    enp2s0:      match:        macaddress: "aa:bb:cc:dd:ee:ff"      set-name: enp2s0      dhcp4: no      addresses: [ "10.9.8.7/24" ]      routes:        - to: 0.0.0.0/0          via: 10.9.8.8          metric: 254          table: 253  vlans:    vlan202:      link: enp2s0      id: 202      addresses: [ 75.xxx.yyy.zzz/24 ]      nameservers:        addresses: [ 75.xxx.yyy.111, 75.75.75.75 ]        search: [ example.org, example.com ]      routes:        - to: 0.0.0.0/0          via: 75.xxx.yyy.100          metric: 200          table: 253

then I ran the command netplan try, make sure it doesn't have any errors then netplan generate. I then checked in /etc/systemd/network, it was empty, and I checked in /run/systemd/network, it has 2 files:

10-netplan-enp2s0.link:

[Match]MACAddress=aa:bb:cc:dd:ee:ff[Link]Name=enp2s0WakeOnLan=off

10-netplan-enp2s0.network:

[Match]MACAddress=aa:bb:cc:dd:ee:ffName=enp2s0[Network]DHCP=ipv4LinkLocalAddressing=ipv6DNS=10.9.8.8Domains=lan[DHCP]UseMTU=trueRouteMetric=100ClientIdentifier=macCriticalConnection=true

I though maybe it'll regenerate when I reboot the system, so I did, but the systemd config files still the same and complete ignore my custom settings. Am I doing something wrong or netplan is just a complete piece of garbage? that I should just go back to ifupdown?

Wireguard handshake works but no internet access

$
0
0

First off: this is not a duplicate. I've tried everything except OpenVPN or IPSec. I'm receiving a handshake between the client and server, and SSH and Ping work between clients, but I cannot access the global internet or even have access to the server's public IP. My config is just the usual, keys, endpoints, I followed the Linode guide exactly. My client is openSUSE but my server is ubuntu, which I'm assuming is the chokepoint.

Netplan configuration is not persistent

$
0
0

I have configured my network interfaces in my Ubuntu bionic (18.04) server using netplan, and afterwords I ran netplan apply and the configuration kicked in.In particular, I configured the DNS servers, and my server did resolved ips with the nameservers I configured in my netplan configuration.

But, after reboot, the configuration didn't last and any resolving was by default to the 127.0.0.53 nameserver. Only after running netplan apply the configuration kicked in again.

How can I make the netplan configuration persistent to reboots?

Output of cat /etc/*-release:

DISTRIB_ID=UbuntuDISTRIB_RELEASE=18.04DISTRIB_CODENAME=bionicDISTRIB_DESCRIPTION="Ubuntu 18.04.2 LTS"NAME="Ubuntu"VERSION="18.04.2 LTS (Bionic Beaver)"ID=ubuntuID_LIKE=debianPRETTY_NAME="Ubuntu 18.04.2 LTS"VERSION_ID="18.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=bionicUBUNTU_CODENAME=bionic

Output of cat /etc/network/interfaces:

# ifupdown has been replaced by netplan(5) on this system.  See# /etc/netplan for current configuration.# To re-enable ifupdown on this system, you can run:#    sudo apt install ifupdown

My netplan yaml files:

10-nameservers.yaml:

network:    version: 2    ethernets:        ens160:            nameservers:                addresses: [127.0.0.1]

50-cloud-init.yaml

# This file is generated from information provided by# the datasource.  Changes to it will not persist across an instance.# To disable cloud-init's network configuration capabilities, write a file# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:# network: {config: disabled}network:    ethernets:        ens160:            addresses: []            dhcp4: true            dhcp-identifier: mac    version: 2

interfaces_ens160.yaml

network:  ethernets:    ens160:      addresses: [172.16.0.1/16]      dhcp4: 'no'      dhcp6: 'no'      gateway4: 172.16.100.1      nameservers:        addresses: [10.0.0.8, 8.8.8.8, 10.15.0.18]  version: 2

Ubuntu 20.04 LTS server cannot be ping after no operation for a while

$
0
0

My new server has installed Ubuntu 20.04 LTS without GUI. And we make it a Jupyter Server in our Local Area Network. All setups about Jupyter have done, and it works. But after no operation for a while, server cannot be linked. I try to ping the ip address of server, there is no reply.
However, when I look up the server, processes of Jupyter are all ok. I try to ping another server, it can ping. And after this ping, this Jupyter server can work.

WiFi does not work on Vostro 1015 with Ubuntu 20.04

$
0
0

I have installed Ubuntu 20.04 today on my old Dell Vostro 1015 and WiFi does not work. It cannot be seen in the system menu either. Bluetooth and wired connections are active.I have checked in the BIOS and WiFi is enabled and tried. I tried to boot from DVD and I have the same problem.Can anyone help me with ideas what to do?

Setting up barrier to run on startup

$
0
0

Barrier is a free popular KVM software that enables mouse/keyboard sharing across several devices.

I've been fiddling with it for a few hours and I can't seem to get it right.

I have a barrier server running on my Windows machine.I've downloaded the git repository and built the binaries. I've copied barrier, barrierc and barriers into /usr/bin.

If I run barrier GUI, specify the server IP and enable the server, it works. I can do it with and without SSL (as long as both the client and the server have the same setting set). I would prefer to use SSL though.

I've then tried running barrierc --enable-crypto <ip>. The server acknowledges the connection, but says it's not secure and it doesn't work. However, if I run the same command with the -f flag barrierc -f --enable-crypto <ip> which makes it run in the foreground, it all works dandy.

Since I'm on Ubuntu 18.04, I've setup a systemd service like so:

[Unit]Description=Barrier mouse/keyboard shareRequires=display-manager.serviceAfter=display-manager.serviceStartLimitIntervalSec=0[Service]Type=simpleExecStart=/usr/bin/barrierc -f --enable-crypto 192.168.12.96Restart=alwaysRestartSec=1User=karlovsky120[Install]WantedBy=multi-user.target

I've named it barrier.service and copied it into /etc/systemd/system/.

I've tried starting it manually, but it refuses to work. From what I can tell from systemctl status, it looks like systemd runs the client, but the client exits immediately and then it restarts it. I've tried with and without the -f flag, but the result is the same.

The server also complains that the client connection might not be secure, which is the same error you get when you try to connect with a non SSL client to an SSL server. It does so with and without the -f flag.

I know I have to enable the service to have it run on startup, but how do I get it to work at all?

Use webcam from laptop on desktop pc

$
0
0

I want to use the webcam on my laptop as video device on my pc to use it for video conferencing etc.

So I not just want to stream the video. I actually want to "stream" the entire device over network.

So, two computers, one streams its webcam, the other picks it up as video device.

Both computes run normal Ubuntu 18.04 however I will soon upgrade to 20.04

Can't get RTL8125B working on 20.04

$
0
0

So I did a fresh install of Ubuntu 20.04 on a computer with the new RTL8125B Realtek network card and I cannot get the network to work.

I was very suprised since this is supposed to be the new feature of the 5.4 kernel (I have 5.4.0-26-generic installed).

Does anyone have any idea on how to get it working? Thank you.

$ lspci -knn | grep Eth -A306:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller [10ec:8125] (rev 04)Subsystem: ASUSTeK Computer Inc. RTL8125 2.5GbE Controller [1043:87d7]Kernel modules: r816907:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] [1002:67df] (rev e7)$ dmesg | grep -i r8169[    0.911236] r8169 0000:06:00.0: unknown chip XID 641
Viewing all 23488 articles
Browse latest View live


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