两个 N1 盒子 IP 怎么才能不一样?

2021-08-27 23:09:58 +08:00
 gatusokaka
家里有两个 N1 盒子,都是 armbian 系统,有一个不带桌面,另外一个带桌面,先用的不带桌面的,用的挺好,一高兴又买了一个,装了个带桌面的 armbian,都用无线和路由器连接,两个的 IP 我都是设置的静态 IP 而且不一样,现在的问题是,带桌面的单独开机后,在路由器里显示的和不带桌面的显示一样,而且 mac 地址显示的也一样,但是我用 ifconfig 查询带桌面的这台 N1,mac 地址实际上和第一台是不一样的,问题出在哪里,N1 配置?路由器配置(用的 tplink )?
我贴一下带桌面这台 N1 的 interface 文件
# be done in an anachronistic way:
#
#allow-hotplug wlan0
auto wlan0
iface wlan0 inet static
address 192.168.0.116
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameservers 8.8.8.8 114.114.114.114
# wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
# Disable power saving on compatible chipsets (prevents SSH/connection dropouts over WiFi)
#wireless-mode Managed
#wireless-power off

# Local loopback
auto lo
iface lo inet loopback

同时查一下 ifconfig
root@aml:/etc/network# ifconfig
eth0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether fc:7c:02:8f:ee:12 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
device interrupt 20

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 4 bytes 156 (156.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 4 bytes 156 (156.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.122 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::ca13:fe6c:bef:9a52 prefixlen 64 scopeid 0x20<link>
ether b8:27:eb:74:f2:6c txqueuelen 1000 (Ethernet)
RX packets 47791 bytes 4998248 (4.7 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 24953 bytes 9910432 (9.4 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

但在 tplink 界面里这台显示的是这个,这个和那个不带界面的单独启动显示的一样?(两台还没有同时开过)
IP:192.168.0.122 | MAC:B8-27-EB-74-F2-6C | 5G 无线连接
1083 次点击
所在节点    问与答
2 条回复
minami
2021-08-27 23:23:58 +08:00
N1 刷 armbian 的话,MAC 都会变成 b8-27-eb-74-f2-6c 这个。恩山上有修复教程贴
gatusokaka
2021-08-28 07:20:44 +08:00
@minami 嗯,已经有了可以了

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/798438

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX