Skip to content

Commit 22129b0

Browse files
Merge pull request #293748 from stegag/patch-66
Update vpn-gateway-modify-ip-prefix-cli-include.md
2 parents a42689a + ebe6bb3 commit 22129b0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

includes/vpn-gateway-modify-ip-prefix-cli-include.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ If you want to add or remove IP address prefixes and your gateway doesn't have a
1313
Each time you make a change, the entire list of prefixes must be specified, not just the prefixes that you want to change. Specify only the prefixes that you want to keep. In this case, 10.0.0.0/24 and 10.3.0.0/16
1414

1515
```azurecli
16-
az network local-gateway create --gateway-ip-address 23.99.221.164 --name Site2 -g TestRG1 --local-address-prefixes 10.0.0.0/24 10.3.0.0/16
16+
az network local-gateway create --gateway-ip-address 203.0.113.34 --name Site2 -g TestRG1 --local-address-prefixes 10.0.0.0/24 10.3.0.0/16
1717
```
1818

1919
### <a name="withconnection"></a>To modify local network gateway IP address prefixes - existing gateway connection
@@ -24,4 +24,4 @@ Each time you make a change, the entire list of prefixes must be specified, not
2424

2525
```azurecli
2626
az network local-gateway update --local-address-prefixes 10.0.0.0/24 10.3.0.0/16 10.5.0.0/16 10.6.0.0/16 --name VNet1toSite2 -g TestRG1
27-
```
27+
```

includes/vpn-gateway-modify-lng-gateway-ip-cli-include.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ If you change the public IP address for your VPN device, you need to modify the
1212
To modify the gateway IP address, replace the values 'Site2' and 'TestRG1' with your own using the [az network local-gateway update](/cli/azure/network/local-gateway) command.
1313

1414
```azurecli-interactive
15-
az network local-gateway update --gateway-ip-address 23.99.222.170 --name Site2 --resource-group TestRG1
15+
az network local-gateway update --gateway-ip-address 203.0.113.170 --name Site2 --resource-group TestRG1
1616
```
1717

1818
Verify that the IP address is correct in the output:
1919

2020
```azurecli-interactive
21-
"gatewayIpAddress": "23.99.222.170",
22-
```
21+
"gatewayIpAddress": "203.0.113.170",
22+
```

0 commit comments

Comments
 (0)