• 裸金属 dhcp无法获取ip


     ip netns exec qdhcp-1fcf749d-8e67-40ad-8718-e5daa85453fc  ip a

     tap1ea4dc8e-63没有网桥

    [root@bogon ~]# ip netns exec qdhcp-e00c4e3a-3634-4c59-8ce9-c09221cf684b ip a
    1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
        link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
        inet 127.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: ns-10dcfcba-44@if8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
        link/ether fa:16:3e:4a:3c:59 brd ff:ff:ff:ff:ff:ff link-netnsid 0
        inet 172.16.100.100/24 brd 172.16.100.255 scope global ns-10dcfcba-44
           valid_lft forever preferred_lft forever
        inet 169.254.169.254/16 brd 169.254.255.255 scope global ns-10dcfcba-44
           valid_lft forever preferred_lft forever
     
    [root@bogon ~]# brctl delif brqe00c4e3a-36 tap10dcfcba-44
    [root@bogon ~]# brctl addif brqe00c4e3a-36  tap1ea4dc8e-63
    [root@bogon ~]# 
    [root@bogon ~]# ip netns exec qdhcp-1fcf749d-8e67-40ad-8718-e5daa85453fc tcpdump -i ns-1ea4dc8e-63 udp and port 67 or port 68 or port  69 and ether src ac:8d:34:89:ae:ec -env 
    tcpdump: listening on ns-1ea4dc8e-63, link-type EN10MB (Ethernet), capture size 262144 bytes
    12:16:32.425031 ac:8d:34:89:ae:ec > Broadcast, ethertype IPv4 (0x0800), length 389: (tos 0x0, ttl 64, id 6746, offset 0, flags [none], proto UDP (17), length 375)
        0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from ac:8d:34:89:ae:ec, length 347, xid 0x8ebd671, Flags [Broadcast]
              Client-Ethernet-Address ac:8d:34:89:ae:ec
              Vendor-rfc1048 Extensions
                Magic Cookie 0x63825363
                DHCP-Message Option 53, length 1: Discover
                MSZ Option 57, length 2: 1472
                Parameter-Request Option 55, length 35: 
                  Subnet-Mask, Time-Zone, Default-Gateway, Time-Server
                  IEN-Name-Server, Domain-Name-Server, Hostname, BS
                  Domain-Name, RP, EP, RSZ
                  TTL, BR, YD, YS
                  NTP, Vendor-Option, Requested-IP, Lease-Time
                  Server-ID, RN, RB, Vendor-Class
                  TFTP, BF, GUID, Option 128
                  Option 129, Option 130, Option 131, Option 132
                  Option 133, Option 134, Option 135
                GUID Option 97, length 17: 0.225.23.144.142.233.48.169.144.234.17.119.96.0.134.81.125
                NDI Option 94, length 3: 1.3.0
                ARCH Option 93, length 2: 11
                Vendor-Class Option 60, length 32: "HW-Client:Arch:00011:UNDI:003000"
    12:16:36.006052 ac:8d:34:89:ae:ec > Broadcast, ethertype IPv4 (0x0800), length 401: (tos 0x0, ttl 64, id 6747, offset 0, flags [none], proto UDP (17), length 387)
        0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from ac:8d:34:89:ae:ec, length 359, xid 0x8ebd671, Flags [Broadcast]
              Client-Ethernet-Address ac:8d:34:89:ae:ec
              Vendor-rfc1048 Extensions
                Magic Cookie 0x63825363
                DHCP-Message Option 53, length 1: Request
                Server-ID Option 54, length 4: 172.16.100.100
                Requested-IP Option 50, length 4: 172.16.100.101
                MSZ Option 57, length 2: 65280
                Parameter-Request Option 55, length 35: 
                  Subnet-Mask, Time-Zone, Default-Gateway, Time-Server
                  IEN-Name-Server, Domain-Name-Server, Hostname, BS
                  Domain-Name, RP, EP, RSZ
                  TTL, BR, YD, YS
                  NTP, Vendor-Option, Requested-IP, Lease-Time
                  Server-ID, RN, RB, Vendor-Class
                  TFTP, BF, GUID, Option 128
                  Option 129, Option 130, Option 131, Option 132
                  Option 133, Option 134, Option 135
                GUID Option 97, length 17: 0.225.23.144.142.233.48.169.144.234.17.119.96.0.134.81.125
                NDI Option 94, length 3: 1.3.0
                ARCH Option 93, length 2: 11
                Vendor-Class Option 60, length 32: "HW-Client:Arch:00011:UNDI:003000"
  • 相关阅读:
    基于curl 的zabbix API调用
    zabbix 安装错误汇总
    Zabbix 命令:zabbix_get
    zabbix主动被动模式说明/区别
    zabbix监控托管主机遇到问题
    centOS7服务管理与启动流程
    CentOS 6和CentOS 7防火墙的关闭
    linux 系统安装配置 zabbix服务(源码安装)
    如何配置这个maven仓库的源http://mvnrepository.com/repos
    Intellij IDEA最全的热键表(default keymap)
  • 原文地址:https://www.cnblogs.com/dream397/p/13054202.html
Copyright © 2020-2023  润新知