CmdID / aws / aws directconnect
aws directconnect update-virtual-interface-attributes
Updates the specified attributes of the specified virtual private interface. AWS CLI reference
1 example 7 options Its page in the AWS CLI reference
Examples
To update the MTU of a virtual interface
The following update-virtual-interface-attributes example updates the MTU of the specified virtual interface.
aws directconnect update-virtual-interface-attributes --virtual-interface-id dxvif-fEXAMPLE --mtu 1500Identify--virtual-interface-idThe ID of the virtual private interface.--mtuThe maximum transmission unit (MTU), in bytes.Its output, shortened
{
"ownerAccount": "1111222233333",
"virtualInterfaceId": "dxvif-fEXAMPLE",
"location": "loc1",
"connectionId": "dxlag-fEXAMPLE",
"virtualInterfaceType": "transit",
"virtualInterfaceName": "example transit virtual interface",
"vlan": 125,
"asn": 650001,
"amazonSideAsn": 64512,
"authKey": "0xzxgA9YoW9h58u8SEXAMPLE",
"amazonAddress": "169.254.248.1/30",
"customerAddress": "169.254.248.2/30",
"addressFamily": "ipv4",
"virtualInterfaceState": "down",
"customerRouterConfig": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<logical_connection id=\"dxvif-fEXAMPLE\">\n <vlan>125</vlan>\n <customer_address>169.254.248.2/30</customer_address>\n <amazon_address>169.254.248.1/30</amazon_address>\n <bgp_asn>650001</bgp_asn>\n <bgp_auth_key>0xzxgA9YoW9h58u8SEXAMPLE</bgp_auth_key>\n <amazon_bgp_asn>64512</amazon_bgp_asn>\n <connection_type>transit</connection_type>\n</logical_connection>\n",
"mtu": 1500,
"jumboFrameCapable": true,
"virtualGatewayId": "",
"directConnectGatewayId": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
"routeFilterPrefixes": [],
"bgpPeers": [
{
"bgpPeerId": "dxpeer-fEXAMPLE",
"asn": 650001,
"authKey": "0xzxgA9YoW9h58u8SEXAMPLE",
"addressFamily": "ipv4",
"amazonAddress": "169.254.248.1/30",
"customerAddress": "169.254.248.2/30",
"bgpPeerState": "available",
… 8 more linesFor more information, see Direct Connect virtual interfaces and hosted virtual interfaces in the AWS Direct Connect User Guide.
Options
--enable-site-linkIndicates whether to enable or disable SiteLink.--mtuThe maximum transmission unit (MTU), in bytes.--prefix-pool-allocated-count-ipv4The number of inbound IPv4 route prefixes to allocate to the virtual interface.--prefix-pool-allocated-count-ipv6The number of inbound IPv6 route prefixes to allocate to the virtual interface.--rate-limitThe rate limit (bandwidth allocation) to apply to the virtual interface.--virtual-interface-idThe ID of the virtual private interface.--virtual-interface-nameThe name of the virtual private interface.