Subnet Commands

subnet-create

To facilitate optimal east-west routing while supporting transparent virtual machine mobility, leaf switches are assigned the same gateway IP and MAC address for each locally defined subnet. Having the same gateway IP and MAC address helps ensure a default gateway presence across all leaf switches. It removes the suboptimal routing inefficiencies associated with separate centralized gateways.

This command allows you to assign subnets to VLANs and VXLANs.

Syntax   subnet-create

name name-string

Specify the name for the subnet.

scope local|cluster|fabric

Specify the scope of the subnet.

vnet vnet name 

Specify the VNET name to assign to the subnet.

vlan vlan id

Specify the VLAN to assign to the subnet.

vxlan vlan vxlan

Specify the VXLAN to assign to the subnet

network ip-address

Specify the IP address to assign to the subnet.

netmask netmask

Specify the netmask of the IP address.

vrf vrf name

Specify the VRF  to assign to the subnet.

anycast-gw-ip ip-addresss

Specify the IP address for the anycast gateway.

network6 ip-address

Specify the IPv6 subnet address.

netmask6 netmask

Specify the IPv6 netmask.

anycast-gw-ip6 ip-address

Specify the IPv6 address for the anycast gateway.

packet-relay enable|disable|none

Specify the packet relay as enabled, disabled, or none.

forward-proto dhcp

Specify the forwarding packet protocol. The parameter only accepts DHCP as the protocol.

forward-ip ip-address

Specify the IPv4 address for forwarding the packet.

forward-ip2 ip-address

Specify the second IPv4 address for forwarding the packet.

forward-ip6 ip-address

Specify the IPv6 address for forwarding the packet.

forward-ip6-2 ip-address

Specify the second IPv6 address for forwarding the packet.

enable|disable

Enable or disable the subnet.

Defaults   None

Access   Network Administrator

History   

Version 3.0.0

Command introduced.

Version 3.1.0

The parameters, network6, netmask6, anycast-gw-ip6, packet-relay, forward-proto, forward-ip, forward-ip6, and enable|disabled added.

Version 5.1.0

The following parameters added:

• forward-ip2

forward-ip6-2 ip-address

Usage   Use this command to create a subnet.

Examples  To create a subnet, subnet-one, use the following syntax:

CLI network-admin@switch > subnet-create name subnet-one scope fabric vnet vnet-1 vlan 35 vxlan 1001 network 172.21.16.23 netmask 255.255.255.0 vrf vrf-1 anycast-gw-ip 10.1.1.1

subnet-delete

To facilitate optimal east-west routing while supporting transparent virtual machine mobility, leaf switches are assigned the same gateway IP and MAC address for each locally defined subnet. Having the same gateway IP and MAC address helps ensure a default gateway presence across all leaf switches. It removes the suboptimal routing inefficiencies associated with separate centralized gateways.

This command allows you to delete a subnet.

Syntax   subnet-delete

name name-string

Specify the name of the subnet.

vnet vnet name 

Specify the VNET name to assign to the subnet.

vrf vrf name

Specify the VRF  to assign to the subnet.

Defaults   None

Access   Network Administrator

History   Command introduced in Version 3.0.0.

Usage   Use this command to remove a subnet.

Examples  To remove a subnet, subnet-one, use the following syntax:

CLI network-admin@switch > subnet-delete name subnet-one vnet vnet-1 vrf vrf-1

subnet-modify

To facilitate optimal east-west routing while supporting transparent virtual machine mobility, leaf switches are assigned the same gateway IP and MAC address for each locally defined subnet. Having the same gateway IP and MAC address helps ensure a default gateway presence across all leaf switches, and  removes the suboptimal routing inefficiencies associated with separate centralized gateways.

This command allows you to modify a subnet.

Syntax   subnet-modify

name name-string

Specify the name for the subnet.

scope local|cluster|fabric

Specify the scope of the subnet.

vnet vnet name 

Specify the VNET name to assign to the subnet.

vlan vlan id

Specify the VLAN to assign to the subnet.

vxlan vlan vxlan

Specify the VXLAN to assign to the subnet

network ip-address

Specify the IP address to assign to the subnet.

netmask netmask

Specify the netmask of the IP address.

vrf vrf name

Specify the VRF  to assign to the subnet.

anycast-gw-ip ip-addresss

Specify the IP address for the anycast gateway.

network6 ip-address

Specify the IPv6 subnet address.

netmask6 netmask

Specify the IPv6 netmask.

anycast-gw-ip6 ip-address

Specify the IPv6 address for the anycast gateway.

packet-relay enable|disable|none

Specify the packet relay as enabled, disabled, or none.

forward-proto dhcp

Specify the forwarding packet protocol. The parameter only accepts DHCP as the protocol.

forward-ip ip-address

Specify the IPv4 address for forwarding the packet.

forward-ip2 ip-address

Specify the second IPv4 address for forwarding the packet.

forward-ip6 ip-address

Specify the IPv6 address for forwarding the packet.

forward-ip6-2 ip-address

Specify the second IPv6 address for forwarding the packet.

enable|disable

Enable or disable the subnet.

Defaults   None

Access   Network Administrator

History   

Version 3.0.0

Command introduced.

Version 3.1.0

The parameters, network6, netmask6, anycast-gw-ip6, packet-relay, forward-proto, forward-ip, forward-ip6, and enable|disabled added.

Version 5.1.0

The following parameters added:

• forward-ip2

forward-ip6-2 ip-address

Usage   Use this command to modify a subnet configuration.

Examples  To modify the subnet, subnet-one, and change the scope to local, use the following syntax:

CLI network-admin@switch > subnet-modify name subnet-one scope local

subnet-show

To facilitate optimal east-west routing while supporting transparent virtual machine mobility, leaf switches are assigned the same gateway IP and MAC address for each locally defined subnet. Having the same gateway IP and MAC address helps ensure a default gateway presence across all leaf switches. It removes the suboptimal routing inefficiencies associated with separate centralized gateways.

This command allows you to display subnet configurations.

Syntax   subnet-show

name name-string

Specify the name for the subnet.

scope local|cluster|fabric

Specify the scope of the subnet.

vnet vnet name 

Specify the VNET name to assign to the subnet.

vlan vlan id

Specify the VLAN to assign to the subnet.

vxlan vlan vxlan

Specify the VXLAN to assign to the subnet

network ip-address

Specify the IP address to assign to the subnet.

netmask netmask

Specify the netmask of the IP address.

vrf vrf name

Specify the VRF  to assign to the subnet.

anycast-gw-ip ip-addresss

Specify the IP address for the anycast gateway.

network6 ip-address

Specify the IPv6 subnet address.

netmask6 netmask

Specify the IPv6 netmask.

anycast-gw-ip6 ip-address

Specify the IPv6 address for the anycast gateway.

packet-relay enable|disable|none

Specify the packet relay as enabled, disabled, or none.

forward-proto dhcp

Specify the forwarding packet protocol. The parameter only accepts DHCP as the protocol.

forward-ip ip-address

Specify the IPv4 address for forwarding the packet.

forward-ip2 ip-address

Specify the second IPv4 address for forwarding the packet.

forward-ip6 ip-address

Specify the IPv6 address for forwarding the packet.

forward-ip6-2 ip-address

Specify the second IPv6 address for forwarding the packet.

enable|disable

Enable or disable the subnet.

Defaults   None

Access   Network Administrator

History   

Version 3.0.0

Command introduced.

Version 3.1.0

The parameters, network6, netmask6, anycast-gw-ip6, packet-relay, forward-proto, forward-ip, forward-ip6, and enable|disabled added.

Version 5.1.0

The following parameters added:

• forward-ip2

forward-ip6-2 ip-address

Usage   Use this command to display a subnet configuration.

Examples  To display a subnet  configuration, subnet-one, use the following syntax:

CLI network-admin@switch > subnet-show name subnet-one