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
    • 最新
    • 标签
主页 / server / 问题 / 503519
Accepted
Sirch
Sirch
Asked: 2013-04-30 04:01:48 +0800 CST2013-04-30 04:01:48 +0800 CST 2013-04-30 04:01:48 +0800 CST

永久 ARP 条目变为未解析

  • 772

我们有一个解决方案,其中许多 Solaris 服务器位于一个专用 VLAN 中,并且该 VLAN 中不存在 arp 代理,因此要到达相邻服务器,我们必须添加静态 arp 条目。此私有 vlan 上的子网中的每个其他服务器必须指向网关的 mac 地址。

例如

#!/sbin/sh

ARP=/usr/sbin/arp

${ARP} -s  10.1.2.1 00:10:20:30:40:50 permanent
${ARP} -s  10.1.2.2 00:10:20:30:40:50 permanent
${ARP} -s  10.1.2.3 00:10:20:30:40:50 permanent
${ARP} -s  10.1.2.4 00:10:20:30:40:50 permanent
${ARP} -s  10.1.2.5 00:10:20:30:40:50 permanent

给我们 arp 条目:

arp -an
Net to Media Table: IPv4
Device   IP Address               Mask      Flags      Phys Addr
------ -------------------- --------------- -------- ---------------
oce1   10.1.2.1         255.255.255.255 SA       00:10:20:30:40:50
oce1   10.1.2.2         255.255.255.255 SA       00:10:20:30:40:50
oce1   10.1.2.3         255.255.255.255 SA       00:10:20:30:40:50
oce1   10.1.2.4         255.255.255.255 SA       00:10:20:30:40:50
oce1   10.1.2.5         255.255.255.255 SA       00:10:20:30:40:50

我们遇到的问题是,由于某种原因,很快条目将标记为“U”,然后变得不可用,然后从 ARP 表中消失。在通常的日志文件中看不到任何原因。系统日志配置:

*.info;auth.none                /var/adm/messages

关于问题可能是什么的任何建议,所有帮助都感激不尽。Solaris 10,x86 是操作系统。

solaris
  • 1 1 个回答
  • 2150 Views

1 个回答

  • Voted
  1. Best Answer
    Signal15
    2013-08-22T10:06:28+08:002013-08-22T10:06:28+08:00

    我的第一个建议是将脚本更改为“永久酒吧”,而不仅仅是“永久”。

    所以从这个;

    #!/sbin/sh
    ARP=/usr/sbin/arp
    ${ARP} -s  10.1.2.1 00:10:20:30:40:50 permanent
    ${ARP} -s  10.1.2.2 00:10:20:30:40:50 permanent
    ${ARP} -s  10.1.2.3 00:10:20:30:40:50 permanent
    ${ARP} -s  10.1.2.4 00:10:20:30:40:50 permanent
    ${ARP} -s  10.1.2.5 00:10:20:30:40:50 permanent
    

    对此;

    #!/sbin/sh
    ARP=/usr/sbin/arp
    ${ARP} -s  10.1.2.1 00:10:20:30:40:50 permanent pub
    ${ARP} -s  10.1.2.2 00:10:20:30:40:50 permanent pub
    ${ARP} -s  10.1.2.3 00:10:20:30:40:50 permanent pub
    ${ARP} -s  10.1.2.4 00:10:20:30:40:50 permanent pub
    ${ARP} -s  10.1.2.5 00:10:20:30:40:50 permanent pub
    

    或者只是更改脚本以按预期使用“arp -f文件名”。来自 Solaris 10 arp 手册页;

     OPTIONS ...
     -f    Read the file named filename and set multiple  entries
           in  the  ARP  tables. Entries in the file should be of
           the form:
               hostname MACaddress [temp] [pub] [trail] [permanent]
           See the -s option for argument definitions.
    

    其次,通过更改设置暂时增加系统日志的详细程度syslog.conf并查看正在发生的事情。

    syslog.conf从此改变;

    *.info;auth.none /var/adm/messages

    对此;

    *.info;auth.none;*.debug /var/adm/messages

    然后刷新syslog服务; svcadm -v refresh svc:/system/system-log:default

    ProTIP: 如果你在日志中看到这个;

    ar_entry_query: Could not find the ace for source address #.#.#.#"

    那么这意味着 arp 正在删除您的物理接口的条目。大约一个月前,我在一些接口有问题的服务器上遇到了同样的问题,内核补丁 (120012-14) 解决了这个问题。

    如果有问题的系统配置了虚拟 IP 和/或端口绑定,则还需要一些其他补丁。

    • 1

相关问题

  • 从现有目录创建 zfs 的正确方法?

  • 在 Solaris lp 或 lpr 上打印

  • 如何将 ZFS ACL 从一个文件克隆到另一个文件?

  • Solaris DNS

  • 在 solaris 10 上为 mysql 设置 max_allowed_pa​​cket

Sidebar

Stats

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

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

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

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve