Skip to content

Commit 28c133f

Browse files
authored
Merge pull request #33937 from pacoxu/patch-10
fix wrong number in service-ip-dynamic-and-static-allocation
2 parents 9713692 + 3e809c9 commit 28c133f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

content/en/blog/_posts/2022-05-23-service-ip-dynamic-and-static-allocation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ Examples:
8686
#### Service IP CIDR block: 10.96.0.0/24
8787

8888
Range Size: 2<sup>8</sup> - 2 = 254
89-
Band Offset: `min(max(16,256/16),256)` = `min(16,256)` = 16
89+
Band Offset: `min(max(16, 256/16), 256)` = `min(16, 256)` = 16
9090
Static band start: 10.96.0.1
9191
Static band end: 10.96.0.16
9292
Range end: 10.96.0.254
@@ -101,7 +101,7 @@ pie showData
101101
#### Service IP CIDR block: 10.96.0.0/20
102102

103103
Range Size: 2<sup>12</sup> - 2 = 4094
104-
Band Offset: `min(max(16,256/16),256)` = `min(256,256)` = 256
104+
Band Offset: `min(max(16, 4096/16), 256)` = `min(256, 256)` = 256
105105
Static band start: 10.96.0.1
106106
Static band end: 10.96.1.0
107107
Range end: 10.96.15.254
@@ -116,7 +116,7 @@ pie showData
116116
#### Service IP CIDR block: 10.96.0.0/16
117117

118118
Range Size: 2<sup>16</sup> - 2 = 65534
119-
Band Offset: `min(max(16,65536/16),256)` = `min(4096,256)` = 256
119+
Band Offset: `min(max(16, 65536/16), 256)` = `min(4096, 256)` = 256
120120
Static band start: 10.96.0.1
121121
Static band ends: 10.96.1.0
122122
Range end: 10.96.255.254

0 commit comments

Comments
 (0)