AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题

问题[network-monitoring](ubuntu)

Martin Hope
Rafi
Asked: 2020-11-14 19:10:06 +0800 CST

无法在 ubuntu LTS 20.4 中安装 Angry ipscan

  • 0

我无法在 ubuntu 中安装Angry ipscan。当我尝试安装时显示:Error_Image

但是我已经安装了 Oracle Java JDK。截图:Java_image

我不擅长 nmap 或 arp-scan 并且我已经使用Angry Ipscan和GUI大约 2 年了。因此,如果您有任何选择,请确保它具有GUI或向我展示安装我喜欢的软件包的过程

提前致谢...

network-monitoring ip
  • 2 个回答
  • 2933 Views
Martin Hope
swaplink
Asked: 2020-10-22 09:33:54 +0800 CST

为什么 Gnome System Monitor Network Graph 总是以普通用户的身份显示“0 bits/s”?

  • 1

我正在使用随 Ubuntu 20.04 安装的 gnome-system-monitor,网络图始终显示“0 bits/s”,而 system-monitor 扩展(我顶部栏中的那个)显示了我的实际网络使用情况。网络图发送线也错误闪烁(突然变成几条竖线)。

编辑 0:当我使用 sudo 运行时它工作正常,但我该如何解决呢?

总是说'0 bits/s': 总是说 '0 bits/s'

黄色的发送图每隔一秒突然变成竖线: 黄色的发送图每隔一秒突然变成竖线。

gnome system-monitor network-monitoring
  • 1 个回答
  • 354 Views
Martin Hope
user2315094
Asked: 2019-07-26 03:21:06 +0800 CST

从今天早上开始 Ubuntu 18:04 网络无法访问

  • 2

今天早上,我的 Ubuntu 18.04 服务器版中的网络不再工作了:

marco@pc01:$ sudo lshw -class network
  *-network DISABLED
      description: Ethernet interface
      product: RTL8111/8168/8411 PCI Express 
        Gigabit Ethernet Controller
  *-network DISABLED
      description: Wireles interface
      product: AR9227 Wireless Network Adapter
  *-network:0
       description: Ethernet interface
       physical id: 2
       logical name : docker0
  *-network:1
       description: Ethernet interface
       physical id: 3

须藤纳米 /etc/nework/interfaces :

iface eth0 inet static
    address 192.168.1.7
    netmask 255.255.255.0
    network 192.168.1.1 
    broadcast 192.168.0.255
    post-up iptables-restore <  
      /etc/iptables.up.rules
    gateway 192.168.1.1
    dns-nameservers 192.168.0.5 8.8.8.8

marco@pc01:$ sudo service network-manager restart
 Failed to restart network-manager.service: Unit network-manager.service 
  not found

即使使用 sudo /etc/init.d/networking restart:

marco@pc01:$ sudo /etc/init.d/networking restart
[ok] Restarting networking (via systemctl):
 networking.service

marco@pc01:$ ping 192.168.1.4
 connect: Network is unreachable

我该怎么做才能使网络再次可用?期待您的帮助马可

1°更新:

marco@pc01:$ ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKOWN group
       default qlen 1000
   inet 27.0.0.1/8 scope host lo
     valid_lft forever preferred_lft forever
   inet6 ::1/128 scope host
     valid_lft forever preferred_lft forever
2: enp3s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group 
       default qlen 1000
     link/ether 78:24:af:43:ef:5c brd ff:ff:ff:ff:ff:ff
3: wlp5s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group 
       default qlen 1000
     link/ether c0:4a:00:09:0e:80 brd ff:ff:ff:ff:ff:ff  
4: b3-4f9fe03b1a66: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc 
       noqueue state DOWN group default
     link/ether 02:42:64:29:65:73 brd ff:ff:ff:ff:ff:ff
     inet 172.22.0.1/16 brd 172.22.255.255 scope global br-4f9fe03b1a66
       valid_lft forever preferred_lft forever
5: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue 
      state DOWN group default
    link/Ether 02:42:01:ea:90:66 brd ff:ff:ff:ff:ff:ff
    inet 172.17.0.1/16 brd 172.17.255.255 scoper global docker0
      valid_lft forever preferred_lft forever

2°U日期:

一个)

marco@pc01:$ ifconfig eth0 up eth0: ERROR while getting interface flags: 
  eth0: ERROR while getting interface flgs: No such device
  eth0: Host name lookup failure

marco@pc01:$ ifconfig
br-4f9feo3b1a66: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
    inet 192.22.0.1 netmask 255.255.0.0 broadcast 172.22.255.255
    ether 02:42:4d:c4:bd:62 txqueuelen 0 (Ethernet) 
    RX packets 0 bytes 0 (0.0B)
    RX errors 0 dropped 0 overruns 0 frame 0
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

docker0: flags=4099<,UP,BROADCAST,MULTICAST> mtue 1500
    inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255
    ether 02:42:24:b9:3b:59 txqueuelen 0 (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

l0: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
    inet 127.0.0.1 netmask 255.0.0.0
    inet6 ::1 prefoxlen 128 scopeid 0x10<host>
    loop txqueuelen 1000 (Local Loopback)
    RX packets 258 bytes 32343 (32.3 KB) 
    RX errors 0 dropped 0 overruns 0 frame 0
    TX packets 258 bytes 32343 (32.3 KB)  
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

二)

/etc/network/interfaces:

  auto lo
  iface lo inet loopback

3°更新:

我修改了 /etc/network/interfaces 文件如下:

iface enp3s0 inet static
    address 192.168.1.7
    netmask 255.255.255.0
    network 192.168.1.1 
    broadcast 192.168.0.255
    post-up iptables-restore <  
      /etc/iptables.up.rules
    gateway 192.168.1.1
    dns-nameservers 192.168.0.5 8.8.8.8

但是还是没有网络。

4°更新:

  marco@pc01:$ uname -r
  4.15.0-55-generic

  marco@pc01:$ ls -al /etc/netplan
  total 20
  drwxr-xr-x 2 root root 4096 Jul 25 18:37
  drwxr-xr-x 128 root root 12288 Jul 25 12:51
  -rw-r--r-- 1 root root 616 Jul 25 18:37 30-cloun-init.yaml

   etc/netplan/50-cloud-init.yaml    :

     network:
         renderer: NetworkManager/ networkd
         ethernets:
           enp3s0:
               addresses: [192.168.1.7/24]
               gateway4: 192.168.1.1
               nameservers:
                   addresses: [8.8.8.8,8.8.4.4]
               dhcp4: no
         version: 2

 marco@pc01:$ sudo netplan apply
 sudo: netplan: command not found

对于 sudo llshw -c network :见上文

5° 更新:dpkg -l netplan的结果

marco@pc01:$ dpkg -l *netplan*
Desired=Unknown/Install/Remove/Purge/Hold
  Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-
       pend
    Err?=(none)/Reinst-required (Status,Err: uppercase=bad)

    Name              Version       Architecture  Description
    in netplan.io      <none>          amd64      (no description 
                                                   available)

6° 更新:sudo lshw -c network

marco@pc01:$ sudo lshw -c network
  *-network DISABLED
      description : Ethernet interface
      product: RTL811178168/8411 PCI Express Gigabit Ethernet Controller
      vendor: Realtek Semiconductor CO., Ltd.
      physical id: 0
      bus info: pci@000:03:00.0
      logical name: enp3s0
      version: 11
      serial: 78:24:af:43:ef:5c
      size: 100 Mbit/s
      capacity: 1Gbit/s
      width: 64 bits
      clock: 33 Mhz
      capabilities: pm msi pciexpress msix vpd bus_master cap_list 
                    ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 
                    1000bt 1000bt-fd autonegotiation
      configuration: autonegotiaion=on broadcast=yes driver=r8169 
                     driverversion=2.3LK-NAPI duplex=full latency=0 
                     link=no multcast=yes port=MII speed=100Mbit/s 
      resources: irq:18 ioport:d000(size=256) memory:f7200000-f7200fff 
                 memory:f2100000-f2103fff
   *-network DISABLED
      description: Wireless interface
      product: AR9227 Wireless NEtwork Adapter
      vendor: Qualcomm Atheros
      physical id: 0
      bus info: pci@0000:05:00.0
      logical name: wlp5s0
      version: 01
      serial: c0:4a:00:09:0e:80
      width: 32 bits
      clock: 66MHz
      capabilities: pm bus_master cap_list ethernet physical wireless
      configuration: broadcast=yes driver=ath9k driverversion=3.15.0-55-
                     generic firmware=N/A latency=168 link=no 
                     multicast=yes wireless=IEEE 802.11
      resources: irq:19 memory:f7100000-f10ffff
   *-network:0
      description: Ethernet interface
      physical id: 2
      logical name: docker0
      serial: 02:42:62:12:98:6e
      capabilities: ethernet physical
      configuration: broadcast=yes driver=bridge driverversion=2.3 
                     firmware=N/A ip=172.17.0.1 link=no multicast=yes
   *-network:1
       description: Ethernet interface
       physical id:3
       logical name: br-4f9fe03b1a66
       serial: 01:42:fc:9e:92:1c
       capabilities: ethernet physical
       consiguration: broadcast=yes driver=bridge driverversion=2.3 
                      firmware=N/A ip=172.22.0.1 link=no multicast=yes

7°更新:

Two disks: 
  1° disk: 
    /dev/sda1 1M BIOS boot 
    /dev/sda2 1G Linux filesystem /dev/sda3 232G Linux filesystem 
     with sudo fsck -f : everything ok ;
  2° disk: 
    /dev/sdb1 1M BIOS boot 
    /dev/sdb2 232G Linux filesystem

    sudo fsck -f /dev/sdb1
    fsck from util-linux 2.31.1
    e2fsck 1.44.1 (24-Mar-2018)
    ext2fs_open2: Bad magic number in super-block
    fsck.ext2: Supeblock invalid, trying backup blocks...
    fsck.ext2: Bad magic number in super-block whule trying to open 
               /dev/sdb1
      The superblock could not be read or does not describe a valid 
ext2/ext3/ext4 filesystem (and not swap or ufs or something else), then 
the superblock is corrupt, and you might try running e2fsck with an
alternate superblock:
  e2fsck -b 8193 <device>
or
  e2fsck -b 32768 <device>

即使 /dev/sdb1 可能包含损坏的超级块,我可以安装 netplan 吗?

8°更新:

ubuntu@ubuntu:$ sudo fsck -f /dev/sda2
fsck fromutil-linux 2.31.1
e2fsck 1.44.1 (24-Mar-2018)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/sda2: 309/65536 files (2.9% non-contiguous), 48744/262144 blocks

ubuntu@ubuntu:$ sudo fsck -f /dev/sdb2
fsck from util-linux 2.31.1

9° 更新:修改 /etc/netplan/01-network-manager-all.yaml 后:

ubuntu@ubuntu:/etc/netplan$ sudo netplan --debug generate
DEBUG:command generate: running ['/lib/netplan/generate']
** (generate:4715): DEBUG: 15:57:43.284: Processing input file 
                    /etc/netplan/01-network-manager-all.yaml..
** (generate:4715): DEBUG: 15:57:43.285: starting new processing pass
                    to 1
** (generate:4715): DEBUG: 15:57:43.285: Configuration is valid
** (generate:4715): DEBUG: 15:57:43.285: Generating output files..
** (generate:4715): DEBUG: 15:57:43.285: NetworkManager: definition 
                    enp3s0 is not for us (backend 1) 
networking network-monitoring 18.04
  • 2 个回答
  • 11282 Views
Martin Hope
Sraw
Asked: 2018-07-16 20:04:07 +0800 CST

需要一项服务来监控每个进程的网络流量

  • 1

是否有一种工具即服务可以监控每个进程的网络流量。这样我就可以使用命令行来分析用法了吗?

software-recommendation network-monitoring
  • 1 个回答
  • 789 Views
Martin Hope
Alex
Asked: 2018-05-30 09:36:02 +0800 CST

Ubuntu Bionic 上的网络流量异常高

  • 1

使用nload我的 LAN 连接时,我看到了 2.77MBit/s 的恒定入站流量。

nethogs仅占其中的 0.1KB/s。

尝试重新启动,没有登录到 GUI,并且仍然是相同的入站流量。

用来lsof查看所有对 FS 执行操作的进程,但没有看到我手动安装的任何程序。

如何找到消耗此流量的内容?

networking network-monitoring
  • 1 个回答
  • 340 Views
Martin Hope
ICE
Asked: 2018-05-01 15:11:41 +0800 CST

从终端上的特定日期获取网络使用情况

  • 2

我可以获取月vnstat、日、小时或前 10 天的网络使用情况。无论如何,我可以从终端上的特定日期获取网络使用情况吗?通过 vnstat 或其他工具?

编辑:

我希望使用从特定日期到当前日期或两个日期之间的用法,而不仅仅是特定日期。

networking network-monitoring vnstat
  • 2 个回答
  • 1944 Views
Martin Hope
NullPointer
Asked: 2016-05-22 03:43:01 +0800 CST

airmonn-ng 不创建监视器

  • 0

我有 Ubuntu 16.04 作为在 Windows 主机上运行的来宾 VM。我插入了一个 USB wifi 连接器,这在我的虚拟机中可见并正在工作

现在,我正在尝试运行命令“sudo airmon-ng start wifi0”,其中 wifi0 是我的界面名称

每次我这样做,我都会得到一个错误

> sudo airmon-ng start wifi0
> 
> Found 5 processes that could cause trouble. If airodump-ng,
> aireplay-ng or airtun-ng stops working after a short period of time,
> you may want to run 'airmon-ng check kill'
> 
>    PID Name    962 NetworkManager    973 avahi-daemon   1002
> avahi-daemon   1517 wpa_supplicant   2389 dhclient
> 
> PHY   Interface   Driver      Chipset
> 
> phy1  wifi0       rtl8192cu   Realtek Semiconductor Corp. RTL8192CU 802.11n
> WLAN Adapter cat: /sys/class/ieee80211/phy1/device/net/wifi0mon/type:
> No such file or directory
> 
> Newly created monitor mode interface wifi0mon is *NOT* in monitor
> mode. Removing non-monitor wifi0mon interface...

它创建了一个名为“rename4”的接口,但它在wireshark中无论如何都不起作用

iwconfig
rename4   IEEE 802.11bgn  Mode:Monitor  Tx-Power=20 dBm   
          Retry short limit:7   RTS thr=2347 B   Fragment thr:off
          Power Management:on

wifi0     IEEE 802.11bgn  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=20 dBm   
          Retry short limit:7   RTS thr=2347 B   Fragment thr:off
          Power Management:off

lo        no wireless extensions.

知道如何在监视器模式下创建界面吗?我对这一切都很陌生,所以这很令人困惑。

提前致谢

network-monitoring
  • 1 个回答
  • 200 Views
Martin Hope
Arindom
Asked: 2011-05-05 08:33:31 +0800 CST

如何监控我的无线连接

  • 1

我已经设置了一个家庭 Wifi 区域,并且可以成功地将我的笔记本电脑/手机连接到它。

我想知道,是否有任何工具/命令可以让我轻松监控我的网络连接。例如,我想确保只有我连接到网络。

network-monitoring
  • 3 个回答
  • 6188 Views
Martin Hope
Denwerko
Asked: 2011-05-03 08:04:16 +0800 CST

如何从 cli 获取 wlan0 速率

  • 0

问题在标题中,最好来自 /sys 中的某个文件,而不是解析 iwlist 的输出?

我需要 iwconfig "Bit Rate= 54 Mb/s"的输出中的这个数字。

谢谢

network-monitoring
  • 1 个回答
  • 1026 Views
Martin Hope
Fosscommunity
Asked: 2010-12-24 23:26:15 +0800 CST

网络监控

  • 4

我们有大约 300 台机器。我们如何使用 Ubuntu 机器监控网络,以便我们可以找出哪个节点正在广播,流量监控,也可以尝试 ntop。

networking network-monitoring
  • 5 个回答
  • 932 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve