bootpc: [no cksum] opt82

IPoE related questions
Post Reply
sendmail
Posts: 4
Joined: 10 Mar 2015, 15:21

bootpc: [no cksum] opt82

Post by sendmail »

Пытаюсь подружить свич ZTE2928 c accel-м. Не получается...

Прошивка коммутатора (пришлось перепрошить с V2.0.12.G):

Code: Select all

ZXR10 2928-SI Version Number   : 29SI Series V2.0.12.V
Проверялось на: 1.9.0 и c5e859f1d3a4317f304366e5f083ef4ff7828e5d

Результаты:
Accel (отключенная opt82 на свиче) - все ок:

Code: Select all

[2015-03-15 14:17:27.276] em1.555: : recv [DHCPv4 Discover xid=57a87918 chaddr=00:26:82:51:ed:85 <Message-Type Discover> <Max-Message-Size 1024> <Client-ID 0100268251ed
85> <Host-Name TL-WR741ND> <Vendor-Class 4d53465420352e30> <Request-IP 172.16.40.2> <Request-List Subnet,Router,DNS,Domain-Name,Route,Vendor-Specific,44,46,47,Classless
-Route,249>]

[2015-03-15 14:17:27.276] ipoe0: 19142ecf755f3f0d: create interface ipoe0 parent em1.555

[2015-03-15 14:17:27.281] ipoe0: 19142ecf755f3f0d: em1.555: authentication succeeded

[2015-03-15 14:17:27.281] ipoe0: 19142ecf755f3f0d: send [DHCPv4 Offer xid=57a87918 yiaddr=172.16.40.2 chaddr=00:26:82:51:ed:85 <Message-Type Offer> <Server-ID 172.16.40
.1> <Lease-Time 180> <Router 172.16.40.1> <Subnet 255.255.255.0> <DNS 8.8.8.8,8.8.4.4>]

[2015-03-15 14:17:27.282] ipoe0: 19142ecf755f3f0d: recv [DHCPv4 Request xid=57a87918 chaddr=00:26:82:51:ed:85 <Message-Type Request> <Max-Message-Size 1024> <Client-ID
0100268251ed85> <Host-Name TL-WR741ND> <Vendor-Class 4d53465420352e30> <Request-IP 172.16.40.2> <Server-ID 172.16.40.1> <Request-List Subnet,Router,DNS,Domain-Name,Rout
e,Vendor-Specific,44,46,47,Classless-Route,249>]

[2015-03-15 14:17:27.282] ipoe0: 19142ecf755f3f0d: send [DHCPv4 Ack xid=57a87918 yiaddr=172.16.40.2 chaddr=00:26:82:51:ed:85 <Message-Type Ack> <Server-ID 172.16.40.1>
<Lease-Time 180> <Router 172.16.40.1> <Subnet 255.255.255.0> <DNS 8.8.8.8,8.8.4.4>]

[2015-03-15 14:17:27.285] ipoe0: 19142ecf755f3f0d: ipoe: session started
Accel (включена opt82 на свиче) - не работает, до клиента Offer-ы не доходят (сброс ч-з 10 сек. по таймауту)

Code: Select all

[2015-03-15 17:08:11.090] em1.555: : recv [DHCPv4 Discover xid=377e1747 chaddr=00:26:82:51:ed:85 <Message-Type Discover> <Max-Message-Size 1024> <Client-ID 0100268251ed
85> <Host-Name TL-WR741ND> <Vendor-Class 4d53465420352e30> <Request-IP 172.16.40.2> <Request-List Subnet,Router,DNS,Domain-Name,Route,Vendor-Specific,44,46,47,Classless
-Route,249> <Relay-Agent {Agent-Circuit-ID _0004022b0001} {Agent-Remote-ID _00060019c632990c}>]

[2015-03-15 17:08:11.091] ipoe0: 19142ecf755f42f6: create interface ipoe0 parent em1.555

[2015-03-15 17:08:11.097] ipoe0: 19142ecf755f42f6: em1.555: authentication succeeded

[2015-03-15 17:08:11.097] ipoe0: 19142ecf755f42f6: send [DHCPv4 Offer xid=377e1747 yiaddr=172.16.40.2 chaddr=00:26:82:51:ed:85 <Message-Type Offer> <Server-ID 172.16.40
.1> <Lease-Time 180> <Router 172.16.40.1> <Subnet 255.255.255.0> <DNS 8.8.8.8,8.8.4.4>]

[2015-03-15 17:08:13.094] ipoe0: 19142ecf755f42f6: recv [DHCPv4 Discover xid=377e1747 chaddr=00:26:82:51:ed:85 <Message-Type Discover> <Max-Message-Size 1024> <Client-I
D 0100268251ed85> <Host-Name TL-WR741ND> <Vendor-Class 4d53465420352e30> <Request-IP 172.16.40.2> <Request-List Subnet,Router,DNS,Domain-Name,Route,Vendor-Specific,44,4
6,47,Classless-Route,249> <Relay-Agent {Agent-Circuit-ID _0004022b0001} {Agent-Remote-ID _00060019c632990c}>]

[2015-03-15 17:08:13.094] ipoe0: 19142ecf755f42f6: send [DHCPv4 Offer xid=377e1747 yiaddr=172.16.40.2 chaddr=00:26:82:51:ed:85 <Message-Type Offer> <Server-ID 172.16.40
.1> <Lease-Time 180> <Router 172.16.40.1> <Subnet 255.255.255.0> <DNS 8.8.8.8,8.8.4.4>]

[2015-03-15 17:08:15.098] ipoe0: 19142ecf755f42f6: recv [DHCPv4 Discover xid=377e1747 chaddr=00:26:82:51:ed:85 <Message-Type Discover> <Max-Message-Size 1024> <Client-I
D 0100268251ed85> <Host-Name TL-WR741ND> <Vendor-Class 4d53465420352e30> <Request-IP 172.16.40.2> <Request-List Subnet,Router,DNS,Domain-Name,Route,Vendor-Specific,44,4
6,47,Classless-Route,249> <Relay-Agent {Agent-Circuit-ID _0004022b0001} {Agent-Remote-ID _00060019c632990c}>]

[2015-03-15 17:08:15.098] ipoe0: 19142ecf755f42f6: send [DHCPv4 Offer xid=377e1747 yiaddr=172.16.40.2 chaddr=00:26:82:51:ed:85 <Message-Type Offer> <Server-ID 172.16.40
.1> <Lease-Time 180> <Router 172.16.40.1> <Subnet 255.255.255.0> <DNS 8.8.8.8,8.8.4.4>]

[2015-03-15 17:08:19.109] ipoe0: 19142ecf755f42f6: recv [DHCPv4 Discover xid=377e1747 chaddr=00:26:82:51:ed:85 <Message-Type Discover> <Max-Message-Size 1024> <Client-I
D 0100268251ed85> <Host-Name TL-WR741ND> <Vendor-Class 4d53465420352e30> <Request-IP 172.16.40.2> <Request-List Subnet,Router,DNS,Domain-Name,Route,Vendor-Specific,44,4
6,47,Classless-Route,249> <Relay-Agent {Agent-Circuit-ID _0004022b0001} {Agent-Remote-ID _00060019c632990c}>]

[2015-03-15 17:08:19.109] ipoe0: 19142ecf755f42f6: send [DHCPv4 Offer xid=377e1747 yiaddr=172.16.40.2 chaddr=00:26:82:51:ed:85 <Message-Type Offer> <Server-ID 172.16.40
.1> <Lease-Time 180> <Router 172.16.40.1> <Subnet 255.255.255.0> <DNS 8.8.8.8,8.8.4.4>]

[2015-03-15 17:08:21.097] ipoe0: 19142ecf755f42f6: ipoe: session timed out
[2015-03-15 17:08:21.097] ipoe0: 19142ecf755f42f6: terminate
[2015-03-15 17:08:21.097] ipoe0: 19142ecf755f42f6: ipoe: session finished
ISC (включена opt82 на свиче) - все ок!!!

В результате анализа tcpdump-ом была обнаружена одна деталь(единственное различие):
ISC:

Code: Select all

bootps > 255.255.255.255.bootpc: [udp sum ok]
Accel:

Code: Select all

bootps > 255.255.255.255.bootpc: [no cksum]
По факту получается, что коммутатор не пропускает через себя DHCP ответы от accel без контрольных сумм.
Таких коммутаторов на сети около 70%, решения нет?

!
!
!
Подробный дамп accel:

Code: Select all

[root@nas1 ~]#  tcpdump -vvi em1.555
tcpdump: listening on em1.555, link-type EN10MB (Ethernet), capture size 65535 bytes
18:30:26.803580 IP (tos 0x0, ttl 64, id 35803, offset 0, flags [none], proto UDP (17), length 596)
    0.0.0.0.bootpc > 255.255.255.255.bootps: [udp sum ok] BOOTP/DHCP, Request from 00:26:82:51:ed:85 (oui Unknown), length 568, xid 0x445c6e2f, Flags [Broadcast] (0x8000)
          Client-Ethernet-Address 00:26:82:51:ed:85 (oui Unknown)
          Vendor-rfc1048 Extensions
            Magic Cookie 0x63825363
            DHCP-Message Option 53, length 1: Discover
            MSZ Option 57, length 2: 1024
            Client-ID Option 61, length 7: ether 00:26:82:51:ed:85
            Hostname Option 12, length 10: "TL-WR741ND"
            Vendor-Class Option 60, length 8: "MSFT 5.0"
            Requested-IP Option 50, length 4: 172.16.40.2
            Parameter-Request Option 55, length 11:
              Subnet-Mask, Default-Gateway, Domain-Name-Server, Domain-Name
              Static-Route, Vendor-Option, Netbios-Name-Server, Netbios-Node
              Netbios-Scope, Classless-Static-Route, Classless-Static-Route-Microsoft
            Agent-Information Option 82, length 18:
              Circuit-ID SubOption 1, length 6: ^@^D^B+^@^A
              Remote-ID SubOption 2, length 8: ^@^F^@^YM-F2M-^Y^L
			  
18:30:26.809364 IP (tos 0x10, ttl 128, id 0, offset 0, flags [none], proto UDP (17), length 306)
    172.16.40.1.bootps > 255.255.255.255.bootpc: [no cksum] BOOTP/DHCP, Reply, length 278, xid 0x445c6e2f, Flags [Broadcast] (0x8000)
          Your-IP 172.16.40.2
          Client-Ethernet-Address 00:26:82:51:ed:85 (oui Unknown)
          Vendor-rfc1048 Extensions
            Magic Cookie 0x63825363
            DHCP-Message Option 53, length 1: Offer
            Server-ID Option 54, length 4: 172.16.40.1
            Lease-Time Option 51, length 4: 180
            Default-Gateway Option 3, length 4: 172.16.40.1
            Subnet-Mask Option 1, length 4: 255.255.255.0
            Domain-Name-Server Option 6, length 8: google-public-dns-a.google.com,google-public-dns-b.google.com

			18:30:28.807302 IP (tos 0x0, ttl 64, id 42090, offset 0, flags [none], proto UDP (17), length 596)
    0.0.0.0.bootpc > 255.255.255.255.bootps: [udp sum ok] BOOTP/DHCP, Request from 00:26:82:51:ed:85 (oui Unknown), length 568, xid 0x445c6e2f, Flags [Broadcast] (0x8000)
          Client-Ethernet-Address 00:26:82:51:ed:85 (oui Unknown)
          Vendor-rfc1048 Extensions
            Magic Cookie 0x63825363
            DHCP-Message Option 53, length 1: Discover
            MSZ Option 57, length 2: 1024
            Client-ID Option 61, length 7: ether 00:26:82:51:ed:85
            Hostname Option 12, length 10: "TL-WR741ND"
            Vendor-Class Option 60, length 8: "MSFT 5.0"
            Requested-IP Option 50, length 4: 172.16.40.2
            Parameter-Request Option 55, length 11:
              Subnet-Mask, Default-Gateway, Domain-Name-Server, Domain-Name
              Static-Route, Vendor-Option, Netbios-Name-Server, Netbios-Node
              Netbios-Scope, Classless-Static-Route, Classless-Static-Route-Microsoft
            Agent-Information Option 82, length 18:
              Circuit-ID SubOption 1, length 6: ^@^D^B+^@^A
              Remote-ID SubOption 2, length 8: ^@^F^@^YM-F2M-^Y^L
18:30:28.807669 IP (tos 0x10, ttl 128, id 0, offset 0, flags [none], proto UDP (17), length 306)
    172.16.40.1.bootps > 255.255.255.255.bootpc: [no cksum] BOOTP/DHCP, Reply, length 278, xid 0x445c6e2f, Flags [Broadcast] (0x8000)
          Your-IP 172.16.40.2
          Client-Ethernet-Address 00:26:82:51:ed:85 (oui Unknown)
          Vendor-rfc1048 Extensions
            Magic Cookie 0x63825363
            DHCP-Message Option 53, length 1: Offer
            Server-ID Option 54, length 4: 172.16.40.1
            Lease-Time Option 51, length 4: 180
            Default-Gateway Option 3, length 4: 172.16.40.1
            Subnet-Mask Option 1, length 4: 255.255.255.0
            Domain-Name-Server Option 6, length 8: google-public-dns-a.google.com,google-public-dns-b.google.com
18:30:30.811543 IP (tos 0x0, ttl 64, id 46129, offset 0, flags [none], proto UDP (17), length 596)
    0.0.0.0.bootpc > 255.255.255.255.bootps: [udp sum ok] BOOTP/DHCP, Request from 00:26:82:51:ed:85 (oui Unknown), length 568, xid 0x445c6e2f, Flags [Broadcast] (0x8000)
          Client-Ethernet-Address 00:26:82:51:ed:85 (oui Unknown)
          Vendor-rfc1048 Extensions
            Magic Cookie 0x63825363
            DHCP-Message Option 53, length 1: Discover
            MSZ Option 57, length 2: 1024
            Client-ID Option 61, length 7: ether 00:26:82:51:ed:85
            Hostname Option 12, length 10: "TL-WR741ND"
            Vendor-Class Option 60, length 8: "MSFT 5.0"
            Requested-IP Option 50, length 4: 172.16.40.2
            Parameter-Request Option 55, length 11:
              Subnet-Mask, Default-Gateway, Domain-Name-Server, Domain-Name
              Static-Route, Vendor-Option, Netbios-Name-Server, Netbios-Node
              Netbios-Scope, Classless-Static-Route, Classless-Static-Route-Microsoft
            Agent-Information Option 82, length 18:
              Circuit-ID SubOption 1, length 6: ^@^D^B+^@^A
              Remote-ID SubOption 2, length 8: ^@^F^@^YM-F2M-^Y^L
Подробный дамп ISC:

Code: Select all

[root@nas1 ~]#  tcpdump -vvi em1.555
tcpdump: listening on em1.555, link-type EN10MB (Ethernet), capture size 65535 bytes
18:21:30.667451 IP (tos 0x0, ttl 64, id 59391, offset 0, flags [none], proto UDP (17), length 596)
    0.0.0.0.bootpc > 255.255.255.255.bootps: [udp sum ok] BOOTP/DHCP, Request from 00:26:82:51:ed:85 (oui Unknown), length 568, xid 0x5978cdb0, Flags [Broadcast] (0x8000)
          Client-Ethernet-Address 00:26:82:51:ed:85 (oui Unknown)
          Vendor-rfc1048 Extensions
            Magic Cookie 0x63825363
            DHCP-Message Option 53, length 1: Discover
            MSZ Option 57, length 2: 1024
            Client-ID Option 61, length 7: ether 00:26:82:51:ed:85
            Hostname Option 12, length 10: "TL-WR741ND"
            Vendor-Class Option 60, length 8: "MSFT 5.0"
            Requested-IP Option 50, length 4: 172.16.40.2
            Parameter-Request Option 55, length 11:
              Subnet-Mask, Default-Gateway, Domain-Name-Server, Domain-Name
              Static-Route, Vendor-Option, Netbios-Name-Server, Netbios-Node
              Netbios-Scope, Classless-Static-Route, Classless-Static-Route-Microsoft
            Agent-Information Option 82, length 18:
              Circuit-ID SubOption 1, length 6: ^@^D^B+^@^A
              Remote-ID SubOption 2, length 8: ^@^F^@^YM-F2M-^Y^L

18:21:31.836163 IP (tos 0x10, ttl 128, id 0, offset 0, flags [none], proto UDP (17), length 328)
    172.16.40.1.bootps > 255.255.255.255.bootpc: [udp sum ok] BOOTP/DHCP, Reply, length 300, xid 0x5978cdb0, Flags [Broadcast] (0x8000)
          Your-IP 172.16.40.2
          Client-Ethernet-Address 00:26:82:51:ed:85 (oui Unknown)
          Vendor-rfc1048 Extensions
            Magic Cookie 0x63825363
            DHCP-Message Option 53, length 1: Offer
            Server-ID Option 54, length 4: 172.16.40.1
            Lease-Time Option 51, length 4: 600
            Subnet-Mask Option 1, length 4: 255.255.255.0
            Domain-Name Option 15, length 11: "example.org"
            Agent-Information Option 82, length 18:
              Circuit-ID SubOption 1, length 6: ^@^D^B+^@^A
              Remote-ID SubOption 2, length 8: ^@^F^@^YM-F2M-^Y^L
			  
18:21:31.846215 IP (tos 0x0, ttl 64, id 20680, offset 0, flags [none], proto UDP (17), length 596)
    0.0.0.0.bootpc > 255.255.255.255.bootps: [udp sum ok] BOOTP/DHCP, Request from 00:26:82:51:ed:85 (oui Unknown), length 568, xid 0x5978cdb0, Flags [Broadcast] (0x8000)
          Client-Ethernet-Address 00:26:82:51:ed:85 (oui Unknown)
          Vendor-rfc1048 Extensions
            Magic Cookie 0x63825363
            DHCP-Message Option 53, length 1: Request
            MSZ Option 57, length 2: 1024
            Client-ID Option 61, length 7: ether 00:26:82:51:ed:85
            Hostname Option 12, length 10: "TL-WR741ND"
            Vendor-Class Option 60, length 8: "MSFT 5.0"
            Requested-IP Option 50, length 4: 172.16.40.2
            Server-ID Option 54, length 4: 172.16.40.1
            Parameter-Request Option 55, length 11:
              Subnet-Mask, Default-Gateway, Domain-Name-Server, Domain-Name
              Static-Route, Vendor-Option, Netbios-Name-Server, Netbios-Node
              Netbios-Scope, Classless-Static-Route, Classless-Static-Route-Microsoft
            Agent-Information Option 82, length 18:
              Circuit-ID SubOption 1, length 6: ^@^D^B+^@^A
              Remote-ID SubOption 2, length 8: ^@^F^@^YM-F2M-^Y^L
18:21:31.878529 IP (tos 0x10, ttl 128, id 0, offset 0, flags [none], proto UDP (17), length 328)
    172.16.40.1.bootps > 255.255.255.255.bootpc: [udp sum ok] BOOTP/DHCP, Reply, length 300, xid 0x5978cdb0, Flags [Broadcast] (0x8000)
          Your-IP 172.16.40.2
          Client-Ethernet-Address 00:26:82:51:ed:85 (oui Unknown)
          Vendor-rfc1048 Extensions
            Magic Cookie 0x63825363
            DHCP-Message Option 53, length 1: ACK
            Server-ID Option 54, length 4: 172.16.40.1
            Lease-Time Option 51, length 4: 600
            Subnet-Mask Option 1, length 4: 255.255.255.0
            Domain-Name Option 15, length 11: "example.org"
            Agent-Information Option 82, length 18:
              Circuit-ID SubOption 1, length 6: ^@^D^B+^@^A
              Remote-ID SubOption 2, length 8: ^@^F^@^YM-F2M-^Y^L
18:21:31.890024 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has 172.16.40.2 tell 172.16.40.2, length 46
Post Reply