DGS-1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide
112
9-4
ip address
This command is used to set a primary or secondary IPv4 address for an interface, or acquire an IP
address on an interface from the DHCP. Use the
no
form of this command to remove the
configuration of an IP address or disable DHCP on the interface.
ip address {IP-ADDRESS SUBNET-MASK [secondary] | dhcp}
no ip address [IP-ADDRESS SUBNET-MASK | dhcp]
Parameters
IP-ADDRESS
Specifies the IP address.
SUBNET-MASK
Specifies the subnet mask for the associated IP address.
secondary
(Optional) Specifies that the configured address is a secondary IP
address. If this keyword is not specified, the configured address is
the primary IP address.
dhcp
Specifies to acquire an IP address configuration on an interface
from the DHCP protocol.
Default
The default IP address for VLAN 1 is 10.90.90.90/8.
Command Mode
Interface Configuration Mode.
Command Default Level
Level: 12.
Usage Guideline
The IPv4 address of an interface can be either manually assigned by the user or dynamically
assigned by the DHCP server. For manual assignment, the user can assign multiple networks to a
VLAN, each with an IP address. Among these multiple IP addresses, one of them must be the primary
IP address and the rest are secondary IP address. The primary address will be used as the source IP
address for SNMP trap messages or SYSLOG messages that are sent out from the interface. Use the
no ip address
command to delete the configured IP address entry.
Example
This example shows how to set 10.108.1.27 is the primary address and 192.31.7.17 and 192.31.8.17
are secondary addresses for VLAN 100.
Switch# configure terminal
Switch(config)# interface vlan100
Switch(config-if)# ip address 10.108.1.27 255.255.255.0
Switch(config-if)# ip address 192.31.7.17 255.255.255.0 secondary
Switch(config-if)# ip address 192.31.8.17 255.255.255.0 secondary
Switch(config-if)#
9-5
ip proxy-arp
This command is used to enable the proxy ARP option for an interface. Use the
no
form of this
command to revert to the default setting.
ip proxy-arp
no ip proxy-arp
Содержание DGS-510
Страница 1: ...1 ...
Страница 287: ...DGS 1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide 284 ...
Страница 321: ...DGS 1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide 318 ...
Страница 493: ...DGS 1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide 490 ...
Страница 733: ...DGS 1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide 730 ...