zoukankan      html  css  js  c++  java
  • 裸金属 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"
  • 相关阅读:
    标准差、方差、协方差的简单说明
    样本的均值和方差的无偏估计
    Network In Network——卷积神经网络的革新
    Rethinking the inception architecture for computer vision的 paper 相关知识
    VIM的自动补全
    substitute 命令与 global 命令
    两个月全马训练参照表
    初跑者秘诀
    python3入门教程
    使用Python3.x抓取58同城(南京站)的演出票的信息
  • 原文地址:https://www.cnblogs.com/dream397/p/13054202.html
Copyright © 2011-2022 走看看