3com 8807 참조 가이드

다운로드
페이지 1099
102
C
HAPTER
 7: IP A
DDRESS
 C
ONFIGURATION
 C
OMMANDS
By default, a VLAN interface/loopback interface/console interface does not have 
an IP address configured.
Normally, a VLAN interface/loopback interface/console interface only needs to be 
configured with one IP address. But you can also assign up to 21 IP addresses to a 
VLAN interface/loopback interface/console interface to enable it to connect to 
multiple subnets. Of all the IP addresses assigned to a VLAN interface/loopback 
interface/console interface, one is the primary IP address, and the other are 
secondary IP addresses. The relationship between primary and secondary 
addresses is:
When you configure a primary IP address for an interface already has a primary 
IP address configured, the newly configured one replaces the old one.
If you execute the undo ip address command without providing any 
parameter, the switch removes both primary and secondary IP addresses of the 
interface. The undo ip address [ ip-address { mask | mask-length } command 
can be used to delete the primary IP address, while the undo ip address [ 
ip-address { mask | mask-length } sub command can be used to delete the 
secondary IP address.
When you use the ip address command to configure IP addresses of VLAN 
interfaces, the system will prompts if you continue if the IP address you configure 
is in different network segment from the existing IP address. If you do continue, 
the IP address of the VLAN interface will be modified. In addition, if the ARP 
entries (including dynamic ARP entries and static ARP entries) in the original 
network segment match the new network segment, they will not be removed; 
otherwise, the ARP entries in the original network segment will be removed.
Related command: display ip interface.
Example
# Assign 129.12.0.1 to VLAN interface 1, with a subnet mask of 255.255.255.0.
<SW8800> system-view
 
System View: return to User View with Ctrl+Z.
 
[SW8800] interface vlan-interface 1 
 
[3Com-Vlan-interface1] ip address 129.12.0.1 255.255.255.0 
# Assign 129.12.0.10 to Ethernet4/0/0, with a 24-bit subnet mask.
<SW8800> system-view
 
System View: return to User View with Ctrl+Z.
 
[SW8800] interface M-Ethernet4/0/0
 
[3Com-M-Ethernet4/0/0] ip address 129.12.0.10 24 
ip host
Syntax
ip host hostname ip-address
undo ip host hostname [ ip-address ]
View
System view