我尝试使用以太网电缆将 Hikvission 摄像机(型号:DS-2CD2043G0-I)直接连接到我的笔记本电脑。我已将摄像机连接到 POE 交换机,然后将以太网电缆从上行链路端口连接到我的系统。
当我在有线设置中分配摄像头的默认 IP 地址时,它显示已连接,但当我尝试访问流的 IP 时,却没有得到任何 IP。以下是有线网络选项卡中的设置。手动添加 IP,我也尝试使用网络掩码:255.255.0.0,仍然没有成功
这是 ifconfig、arp-scan 和 route 命令的输出!
$ ifconfig
enp7s0f1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 169.254.95.70 netmask 255.255.255.0 broadcast 169.254.95.255
inet6 fe80::2e18:dc16:2189:fdb1 prefixlen 64 scopeid 0x20<link>
ether 98:28:a6:1a:36:0d txqueuelen 1000 (Ethernet)
RX packets 22 bytes 5011 (5.0 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 132361 bytes 5632240 (5.6 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: 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 16767 bytes 1328111 (1.3 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 16767 bytes 1328111 (1.3 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlp0s20f3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.100.136 netmask 255.255.255.0 broadcast 192.168.100.255
inet6 fe80::b3e9:da18:da0b:fc39 prefixlen 64 scopeid 0x20<link>
ether c0:b6:f9:93:6f:48 txqueuelen 1000 (Ethernet)
RX packets 52369 bytes 58459180 (58.4 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 22870 bytes 3968202 (3.9 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
$ sudo arp-scan --interface=enp7s0f1 --localnet
Interface: enp7s0f1, type: EN10MB, MAC: 98:28:a6:1a:36:0d, IPv4: 169.254.95.70
Starting arp-scan 1.9.7 with 256 hosts (https://github.com/royhills/arp-scan)
169.254.95.70 58:50:ed:1b:40:1c (Unknown)
1 packets received by filter, 0 packets dropped by kernel
Ending arp-scan 1.9.7: 256 hosts scanned in 2.053 seconds (124.70 hosts/sec). 1 responded
$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default _gateway 0.0.0.0 UG 600 0 0 wlp0s20f3
link-local 0.0.0.0 255.255.0.0 U 1000 0 0 enp7s0f1
169.254.95.0 0.0.0.0 255.255.255.0 U 100 0 0 enp7s0f1
192.168.100.0 0.0.0.0 255.255.255.0 U 600 0 0 wlp0s20f3
我尝试了很多解决方案,但似乎都不起作用。有人能帮帮我吗?我以前没有网络经验。除此之外,我对 Linux 也是新手。所以如果我犯了一些错误,请指出并指导我正确的方向。
提前致谢!
答案1
使用 VLC 媒体播放器。然后单击“媒体”和“打开网络流”。您需要知道要连接的 RTSP URL 是什么。在线搜索。如果它识别 ONVIF,那么您可以直接点击 IP 地址:
rtsp://169.254.95.70/