V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
gatusokaka
V2EX  ›  问与答

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

  •  
  •   gatusokaka · 2021-08-27 23:09:58 +08:00 · 1058 次点击
    这是一个创建于 944 天前的主题,其中的信息可能已经有所发展或是发生改变。
    家里有两个 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 无线连接
    2 条回复    2021-08-28 07:20:44 +08:00
    minami
        1
    minami  
       2021-08-27 23:23:58 +08:00   ❤️ 1
    N1 刷 armbian 的话,MAC 都会变成 b8-27-eb-74-f2-6c 这个。恩山上有修复教程贴
    gatusokaka
        2
    gatusokaka  
    OP
       2021-08-28 07:20:44 +08:00 via iPhone
    @minami 嗯,已经有了可以了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2884 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 14:23 · PVG 22:23 · LAX 07:23 · JFK 10:23
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.