Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
3
votes
1
answers
3913
views
Cannot connect Pantum P2500W Laser printer to my network
The manual says my Pantum P2500W Laserjet printer supports WiFi connection, but the only way I've been able to print to it is by using the Pantum Android app. I've tried every variation I can think of of pressing the 2 buttons on the printer and starting WPS on router via its admin interface but the...
The manual says my Pantum P2500W Laserjet printer supports WiFi connection, but the only way I've been able to print to it is by using the Pantum Android app.
I've tried every variation I can think of of pressing the 2 buttons on the printer and starting WPS on router via its admin interface but the router never sees the printer.
DocSalvager
(2312 rep)
May 9, 2024, 01:08 PM
• Last activity: Jun 30, 2024, 11:17 PM
0
votes
0
answers
471
views
How to route traffic to a gateway on a VPN network?
I'm in a Docker container, on a host connected to a remote network via VPN, and want to route all traffic to `10.43.0.0/16` to `10.148.185.170` (host on the VPN network). sudo ip route add 10.43.0.0/16 via 10.148.185.170 dev enp0s5 Error: Nexthop has invalid gateway. $ ip route show default via 10.2...
I'm in a Docker container, on a host connected to a remote network via VPN, and want to route all traffic to
10.43.0.0/16
to 10.148.185.170
(host on the VPN network).
sudo ip route add 10.43.0.0/16 via 10.148.185.170 dev enp0s5
Error: Nexthop has invalid gateway.
$ ip route show
default via 10.211.55.1 dev enp0s5 proto dhcp metric 100
10.211.55.0/24 dev enp0s5 proto kernel scope link src 10.211.55.3 metric 100
169.254.0.0/16 dev enp0s5 scope link metric 1000
172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1 linkdown
The error I get is that "Nexthop has invalid gateway", which probably means I cannot specify 10.148.185.170
as the gateway, since it's on the VPN network and requires an extra hop (VPN TUN interface)? If that's correct, **how can I tell the operating system to send network packets to 10.43.0.0/16
through the VPN network with 10.148.185.170
as the gateway**?
**Note**: All traffic from the container to hosts on the VPN network are notmally routed correctly, e.g.:
$ nc -vvv 10.148.185.170 443
Connection to 10.148.185.170 443 port [tcp/https] succeeded!
Shuzheng
(4931 rep)
Mar 25, 2021, 08:27 AM
• Last activity: Jan 19, 2023, 01:00 PM
0
votes
0
answers
31
views
two interface with the same network configurations
Is it possible to have two interfaces (eth0, eth1) that are connected to different networks but the same IP configurations? For example: NETWORK0 (10.0.0.1/24) eth0 (10.0.0.100/24) eth1 (10.0.0.100/24) NETWORK1 (10.0.0.1/24)
Is it possible to have two interfaces (eth0, eth1) that are connected to different networks but the same IP configurations? For example:
NETWORK0 (10.0.0.1/24) eth0 (10.0.0.100/24)
eth1 (10.0.0.100/24) NETWORK1 (10.0.0.1/24)
gxor
(111 rep)
Oct 1, 2021, 06:12 AM
2
votes
1
answers
96
views
When using net -W WORKGROUP -n HOSTNAME getting "Invalid Command"
Running Debian Linux with `samba`, `smbclient` and `samba-common-bin` packages installed. I am trying to run the command (as root for now and adding response) root@machine:/# net -W WORKGROUP -n HOSTNAME Invalid command: net Usage... and all the options and I am getting the response "Invalid Command...
Running Debian Linux with
samba
, smbclient
and samba-common-bin
packages installed. I am trying to run the command (as root for now and adding response)
root@machine:/# net -W WORKGROUP -n HOSTNAME
Invalid command: net
Usage... and all the options
and I am getting the response "Invalid Command" even though this should be the correct usage. Running man net
gets me all the man pages and net help
gives all possible options including the the above.
The intent is to configure a Debian Mini-Linux USB stick for a Clonezilla cloning operation. Our Intrusion Detection System is set up to recognize the workgroup as WORKGROUP and CLONEZILLA (hostname) along with a particular brand of NIC card to allow it on the network.
After more research, I found that smb.conf is configured for workgroup = WORKGROUP and I have put CLONEZILLA in the hostname file in the stick. I was going to use the command line above to set those in the Clonezilla environment. Now I have to test against the IDS.
DubyaG
(21 rep)
Feb 11, 2021, 03:20 PM
• Last activity: Feb 11, 2021, 06:14 PM
0
votes
1
answers
2122
views
Internet Connection slow with Linux
I have a problem with my new internet connection. This is a symmetric 500Mbs connection but i only get 50M in my linux computer (fedora 30). In windows I get 500Mb for up and down with other computer. I know that the problem is in my ethernet connection in linux because my speed in ethernet card is...
I have a problem with my new internet connection. This is a symmetric 500Mbs connection but i only get 50M in my linux computer (fedora 30). In windows I get 500Mb for up and down with other computer. I know that the problem is in my ethernet connection in linux because my speed in ethernet card is 100Mb. I don't know why.
This is the ethernet card values (it supports 1Gb)
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supported pause frame use: Symmetric Receive-only
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: Symmetric Receive-only
Advertised auto-negotiation: No
Advertised FEC modes: Not reported
Speed: 100Mb/s
Duplex: Half
Port: MII
PHYAD: 0
Transceiver: internal
Auto-negotiation: off
Supports Wake-on: pumbg
Wake-on: d
Current message level: 0x00000033 (51)
drv probe ifdown ifup
Link detected: yes
I tried with ethtool but when I try to change to 1000Mb/s with
$ sudo ethtool -s enp3s0 speed 1000 duplex full
Settings for enp3s0:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supported pause frame use: Symmetric Receive-only
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 1000baseT/Full
Advertised pause frame use: Symmetric Receive-only
Advertised auto-negotiation: No
Advertised FEC modes: Not reported
Speed: 1000Mb/s
Duplex: Full
Port: MII
PHYAD: 0
Transceiver: internal
Auto-negotiation: off
Supports Wake-on: pumbg
Wake-on: d
Current message level: 0x00000033 (51)
drv probe ifdown ifup
Link detected: no
but I get no link connection
If I try to up the enp3s0 the 1000Mb speed disappears and I get 100M again
$ sudo ifup enp3s0
$
Settings for enp3s0:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supported pause frame use: Symmetric Receive-only
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 1000baseT/Full
Advertised pause frame use: Symmetric Receive-only
Advertised auto-negotiation: No
Advertised FEC modes: Not reported
Speed: 100Mb/s
Duplex: Half
Port: MII
PHYAD: 0
Transceiver: internal
Auto-negotiation: off
Supports Wake-on: pumbg
Wake-on: d
Current message level: 0x00000033 (51)
drv probe ifdown ifup
Link detected: yes
enp3s0: 100 Mbit, half duplex, link ok
$
I don't know what else to try.
Thanks
estonolose
(155 rep)
Feb 11, 2020, 06:29 PM
• Last activity: Feb 11, 2020, 07:40 PM
2
votes
1
answers
1438
views
Netinstall without a network connection
If I want to install a debian with a debian netinstaller image, but have no internet connection during the installation progress, what has to be done afterwards? To be more concise: - What steps (configurations etc.) are performed by the installer? - Which packages are installed by the installer? -...
If I want to install a debian with a debian netinstaller image, but have no internet connection during the installation progress, what has to be done afterwards?
To be more concise:
- What steps (configurations etc.) are performed by the installer?
- Which packages are installed by the installer?
- other issues?
Is there a common way to perform needed steps to get the same installation result as if installing with a available network connection?
furthermore
(21 rep)
Jan 10, 2020, 03:53 PM
• Last activity: Jan 10, 2020, 07:57 PM
0
votes
1
answers
2031
views
How to take number of bytes transmitted and received from /net/proc/dev
I want to take the number of bytes transmitted and received from `/proc/net/dev` in this format: `num_ofbytesTransmitted,num_ofbytesReceived`. This was my approach: cat /net/proc/dev | grep enp0s3 | cut -f5 -d' ' and cat /net/proc/dev | grep enp0s3 | cut -f48 -d' ' but the problem here is that I can...
I want to take the number of bytes transmitted and received from
/proc/net/dev
in this format: num_ofbytesTransmitted,num_ofbytesReceived
.
This was my approach:
cat /net/proc/dev | grep enp0s3 | cut -f5 -d' '
and
cat /net/proc/dev | grep enp0s3 | cut -f48 -d' '
but the problem here is that I can't always use these constants on cut since the numbers can get big and that number has to change... What can I do in these circumstances?
C. Cristi
(228 rep)
Nov 21, 2018, 06:59 AM
• Last activity: Nov 21, 2018, 07:41 AM
0
votes
0
answers
618
views
Running dot net application as daemon
I have been trying to run a simple dot net application as a daemon. I took a help from many of the below given links and did as suggested. Links: 1. http://pmcgrath.net/running-a-simple-dotnet-core-linux-daemon 2. https://developers.redhat.com/blog/2017/06/07/writing-a-linux-daemon-in-c/ 3. https://...
I have been trying to run a simple dot net application as a daemon. I took a help from many of the below given links and did as suggested.
Links:
1. http://pmcgrath.net/running-a-simple-dotnet-core-linux-daemon
2. https://developers.redhat.com/blog/2017/06/07/writing-a-linux-daemon-in-c/
3. https://stackoverflow.com/questions/50514114/dotnet-app-started-as-daemon-doesnt-working-properly
I have followed all the standard steps given in all the above links but received a common error in all and couldn't find any resolution online.
Below is the log which I get when I run the command:
*sudo systemctl status console1.service*
If anyone having any idea why I am getting these it would be of great help. I am stuck here for last 2 days.

Himanshu Singh
(1 rep)
Jun 27, 2018, 11:45 AM
• Last activity: Oct 21, 2018, 02:01 PM
0
votes
2
answers
1999
views
/proc/net/netstat not found
I am trying to compile my own Linux for embededd devices, using the OpenWRT distribution. I am trying to get some Multicast information using the `/proc/net/netstat` interface but it is not found (normally this is available on my desktop). If I am right this should be enabled in the `kernel_menuconf...
I am trying to compile my own Linux for embededd devices, using the OpenWRT distribution. I am trying to get some Multicast information using the
/proc/net/netstat
interface but it is not found (normally this is available on my desktop).
If I am right this should be enabled in the kernel_menuconfig
but I am not able to find any option related to this.
**UPDATE**: i was trying with kernel 3.10.49
and 4.4.14
. In both cases proc.c
is compiled (proc.o
is available in my build_dir
, /proc
is mounted, but /proc/net/netstat
does not exists.
molnarg
(141 rep)
Feb 10, 2017, 04:24 PM
• Last activity: Sep 21, 2017, 06:18 AM
4
votes
1
answers
7182
views
Purpose of /net directory
I notice on my system (Manjaro Linux) that: 1. I have an empty directory named `/net` 1. This directory is not mentioned in the [Filesystem Hierarchy Standard](http://www.pathname.com/fhs/pub/fhs-2.3.html) What is the intention behind this directory (quoting chapter and verse)? --- Is it like `/mnt`...
I notice on my system (Manjaro Linux) that:
1. I have an empty directory named
/net
1. This directory is not mentioned in the [Filesystem Hierarchy Standard](http://www.pathname.com/fhs/pub/fhs-2.3.html)
What is the intention behind this directory (quoting chapter and verse)?
---
Is it like /mnt
([which is for temporary mounts](http://www.pathname.com/fhs/pub/fhs-2.3.html#MNTMOUNTPOINTFORATEMPORARILYMOUNT)) but for network (eg sshfs
, nfs
) mountpoints?
Or, in other words, is it like /media
, but for non-removable non-temporary mount points?
Tom Hale
(32892 rep)
Apr 15, 2017, 05:01 AM
• Last activity: Jul 16, 2017, 12:41 PM
2
votes
1
answers
243
views
Micnet and bitnet,do you know them?
I like old stuff of 80 and 90's and sometimes i like to study old technologies(some of them still used..) like SYSTEMV,SCO-UNIX,Xenix,etc.. Reading a book about Sco Unix on a page i see.. mail support uucp and networks like bitnet micnet and internet I know internet and uucp,but what are/was bitnet...
I like old stuff of 80 and 90's
and sometimes i like to study old technologies(some of them still used..)
like SYSTEMV,SCO-UNIX,Xenix,etc..
Reading a book about Sco Unix on a page i see..
mail support uucp and networks like bitnet micnet and
internet
I know internet and uucp,but what are/was bitnet and micnet?
elbarna
(13690 rep)
Dec 8, 2016, 01:30 AM
• Last activity: Jun 29, 2017, 07:35 PM
2
votes
3
answers
21169
views
The mysterious open port 554 tcp on every machine of my network!
Very strange,i have 4 machine,some machines are real hw(slack64 and slackware) one is a phone android,and last is virtual machine. From slack64 to every machine... for i in oracle slackware android;do nmap -p554 -sT -P0 $i;done|grep open 554/tcp open rtsp 554/tcp open rtsp 554/tcp open rtsp I can te...
Very strange,i have 4 machine,some machines are real hw(slack64 and slackware) one is a phone android,and last is virtual machine.
From slack64 to every machine...
for i in oracle slackware android;do nmap -p554 -sT -P0 $i;done|grep open
554/tcp open rtsp
554/tcp open rtsp
554/tcp open rtsp
I can telnet it from slack64
telnet oracle 554
Trying 192.168.0.21...
Connected to oracle.
Escape character is '^]'.
But if I do ssh to machine..for example oracle..
netstat -na|grep 554
return..empty!
Same thing with other machines
If I did telnet oracle from oracle..
telnet oracle 554
Trying 192.168.0.21...
telnet: connect to address 192.168.0.21: Connection refused
What the hell is this?
I investigate..very strange.
elbarna
(13690 rep)
Feb 13, 2017, 12:45 AM
• Last activity: Feb 24, 2017, 12:46 PM
0
votes
0
answers
707
views
Why ad-hoc network devices do not see each other?
I have 3 devices. On one tetwork one device can see another, yet they both can not see the third one. They are in same wi-fi ad-hoc network. 2 of them see each other and one does not see no one. Devices are in cl.ose proximity (10cm). How to figure out why? For one That does not play with others: ==...
I have 3 devices. On one tetwork one device can see another, yet they both can not see the third one. They are in same wi-fi ad-hoc network. 2 of them see each other and one does not see no one. Devices are in cl.ose proximity (10cm). How to figure out why?
For one That does not play with others:
====
Here is ifconfig:
root@edison:~# ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 78:4b:87:a9:87:53
inet addr:192.168.2.50 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::7a4b:87ff:fea9:8753/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1528 Metric:1
RX packets:1342297 errors:0 dropped:852312 overruns:0 frame:0
TX packets:158162 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:80024954 (76.3 MiB) TX bytes:10973582 (10.4 MiB)
Here is iwconfig:
root@edison:~# iwconfig wlan0
wlan0 IEEE 802.11abgn ESSID:"pi-ad-hoc"
Mode:Ad-Hoc Frequency:2.427 GHz Cell: 3A:41:3D:F5:20:A2
Tx-Power=31 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:on
Here is iwlist scan (strangly it shows **more then one network** with same name):
Cell 01 - Address: 3A:41:3D:F5:20:A2
Channel:4
Frequency:2.427 GHz (Channel 4)
Quality=70/70 Signal level=-4 dBm
Encryption key:off
ESSID:"pi-ad-hoc"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
24 Mb/s; 36 Mb/s; 54 Mb/s
Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
Mode:Ad-Hoc
Extra:tsf=0000002153a8a359
Extra: Last beacon: 90ms ago
IE: Unknown: 000970692D61642D686F63
IE: Unknown: 010882848B962430486C
IE: Unknown: 030104
...
Cell 06 - Address: 2E:5D:62:E8:17:46
Channel:4
Frequency:2.427 GHz (Channel 4)
Quality=70/70 Signal level=0 dBm
Encryption key:off
ESSID:"pi-ad-hoc"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
24 Mb/s; 36 Mb/s; 54 Mb/s
Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
Mode:Ad-Hoc
Extra:tsf=00000021521e98ce
Extra: Last beacon: 25920ms ago
IE: Unknown: 000970692D61642D686F63
IE: Unknown: 010882848B962430486C
IE: Unknown: 030104
...
Cell 08 - Address: 0A:27:49:3D:49:E9
Channel:4
Frequency:2.427 GHz (Channel 4)
Quality=70/70 Signal level=0 dBm
Encryption key:off
ESSID:"pi-ad-hoc"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
24 Mb/s; 36 Mb/s; 54 Mb/s
Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
Mode:Ad-Hoc
Extra:tsf=0000002153313756
Extra: Last beacon: 7920ms ago
IE: Unknown: 000970692D61642D686F63
IE: Unknown: 010882848B962430486C
IE: Unknown: 030104
...
Cell 09 - Address: E2:32:E6:6A:CC:A9
Channel:4
Frequency:2.427 GHz (Channel 4)
Quality=70/70 Signal level=0 dBm
Encryption key:off
ESSID:"pi-ad-hoc"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
24 Mb/s; 36 Mb/s; 54 Mb/s
Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
Mode:Ad-Hoc
Extra:tsf=0000002153a96297
Extra: Last beacon: 40ms ago
IE: Unknown: 000970692D61642D686F63
Here is ping:
root@edison:~# ping 192.168.2.2
PING 192.168.2.2 (192.168.2.2): 56 data bytes
^C
--- 192.168.2.2 ping statistics ---
8 packets transmitted, 0 packets received, 100% packet loss
root@edison:~# ping 192.168.2.1
PING 192.168.2.1 (192.168.2.1): 56 data bytes
^C
--- 192.168.2.1 ping statistics ---
7 packets transmitted, 0 packets received, 100% packet loss
root@edison:~#
And here for the one of that do work:
====
ping:
pi@pi3-2:~ $ ping 192.168.2.1
PING 192.168.2.1 (192.168.2.1) 56(84) bytes of data.
64 bytes from 192.168.2.1: icmp_seq=1 ttl=64 time=8.13 ms
64 bytes from 192.168.2.1: icmp_seq=2 ttl=64 time=6.99 ms
64 bytes from 192.168.2.1: icmp_seq=3 ttl=64 time=7.80 ms
64 bytes from 192.168.2.1: icmp_seq=4 ttl=64 time=7.39 ms
^C
--- 192.168.2.1 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3004ms
rtt min/avg/max/mdev = 6.998/7.584/8.138/0.441 ms
pi@pi3-2:~ $ ping 192.168.2.50
PING 192.168.2.50 (192.168.2.50) 56(84) bytes of data.
^C
--- 192.168.2.50 ping statistics ---
9 packets transmitted, 0 received, 100% packet loss, time 7999ms
ifconfig:
pi@pi3-2:~ $ ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr b8:27:eb:67:07:fc
inet addr:192.168.2.2 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::ac7f:b393:aac1:78bf/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1528 Metric:1
RX packets:1287637 errors:0 dropped:158601 overruns:0 frame:0
TX packets:487835 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:91775299 (87.5 MiB) TX bytes:46478896 (44.3 MiB)
iwconfig
pi@pi3-2:~ $ iwconfig
wlan0 IEEE 802.11bgn ESSID:"pi-ad-hoc"
Mode:Ad-Hoc Frequency:2.427 GHz Cell: 3A:41:3D:F5:20:A2
Tx-Power=31 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:on
iwlist wlan0 scan
pi@pi3-2:~ $ iwlist wlan0 scan
wlan0 Scan completed :
Cell 01 - Address: 3A:41:3D:F5:20:A2
Channel:4
Frequency:2.427 GHz (Channel 4)
Quality=70/70 Signal level=-35 dBm
Encryption key:off
ESSID:"pi-ad-hoc"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
9 Mb/s; 12 Mb/s; 18 Mb/s
Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
24 Mb/s; 36 Mb/s; 54 Mb/s
Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
Mode:Ad-Hoc
Extra:tsf=0000000000000000
Extra: Last beacon: 154751220ms ago
IE: Unknown: 000970692D61642D686F63
IE: Unknown: 010882848B960C121824
IE: Unknown: 030104
IE: Unknown: 06020000
IE: Unknown: 32043048606C
IE: Unknown: DD070050F202000100
IE: Unknown: 010882848B962430486C
IE: Unknown: 2A0100
IE: Unknown: 32040C121860
IE: Unknown: 2D1A21001FFF00000000000000000000000000000000000000000000
IE: Unknown: 3D1604001300000000000000000000000000000000000000
IE: Unknown: DD09001018020010000000
DuckQueen
(105 rep)
Nov 30, 2016, 09:52 AM
• Last activity: Dec 3, 2016, 10:22 AM
0
votes
1
answers
316
views
Network down: Card not present on Slot(1)
My netcard stopped working. This then started spamming into the log: pciehp 0000:00:1c.5:pcie04: Card not present on Slot(1) pciehp 0000:00:1c.5:pcie04: Card present on Slot(1) How do I get the netcard working again?
My netcard stopped working. This then started spamming into the log:
pciehp 0000:00:1c.5:pcie04: Card not present on Slot(1)
pciehp 0000:00:1c.5:pcie04: Card present on Slot(1)
How do I get the netcard working again?
Ole Tange
(37348 rep)
Sep 25, 2016, 04:47 PM
Showing page 1 of 14 total questions