HP 6125G HP 6125G & 6125G/XG Blade Switches Layer 3 - IP Services Comm - Page 28
ip address
View all HP 6125G manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 28 highlights
ip address Syntax ip address ip-address { mask-length | mask } [ sub ] View undo ip address [ ip-address { mask-length | mask } [ sub ] ] Interface view Default level 2: System level Parameters ip-address: Specifies the IP address of an interface, in dotted decimal notation. mask-length: Specifies the subnet mask length, the number of consecutive ones in the mask. mask: Specifies the subnet mask in dotted decimal notation. sub: Specifies the secondary IP address for the interface. Description Use ip address to assign an IP address and mask to the interface. Use undo ip address to remove all IP addresses from the interface. Use undo ip address ip-address { mask | mask-length } to remove the primary IP address. Use the undo ip address ip-address { mask | mask-length } sub command to remove a secondary IP address. By default, no IP address is assigned to any interface. When assigning IP addresses to an interface, consider the following: • You can assign only one primary IP address to an interface. • The primary and secondary IP addresses can be located in the same network segment. • Before removing the primary IP address, remove all secondary IP addresses. • You cannot assign a secondary IP address to the interface that is configured to obtain one through BOOTP or DHCP. Related commands: display ip interface. Examples # Assign VLAN-interface 1 a primary IP address 129.12.0.1 and a secondary IP address 202.38.160.1, with subnet masks being 255.255.255.0. system-view [Sysname] interface vlan-interface 1 [Sysname-Vlan-interface1] ip address 129.12.0.1 255.255.255.0 [Sysname-Vlan-interface1] ip address 202.38.160.1 255.255.255.0 sub 21