- Print
- PDF
Configuring IP address for an Interface
Configuring IP address for an Interface configures the IP address which will be used for sending and receiving the packets.
Note: To log in, enter your username (default is root) and password (default is admin123).
- Execute the following commands to configure an IP address for a VLAN interface. Enter the Global Configuration mode:
Your Product# configure terminal
Enter the Interface Configuration mode.
Your Product(config)# interface vlan 1
Shut down the VLAN interface.
Your Product(config-if)# shutdown
Configure the IP address and subnet mask.
Your Product(config-if)# ip address 10.0.0.100 255.0.0.0
Bring up the VLAN interface.
Your Product(config-if)#no shutdown
Exit from the Interface Configuration mode.
Your Product(config)#end
Configuring the IP address for an Interface requires the interface to be shutdown prior to the configuration.
- View the configured interface IP address by executing the following show command:
Your Product# show ip interface
Configuring an Interface to Acquire Dynamic IP
An interface can be configured to acquire the dynamic IP address either from DHCP or from RARP. The default value is DHCP.
- Execute the following commands to acquire dynamic IP for VLAN 1 through DHCP. Enter the Global Configuration mode:
Your Product# configure terminal
Enter the Interface Configuration mode.
Your Product(config)# interface vlan 1
Configure the VLAN interface to dynamically acquire an IP address through the Dynamic Host Configuration Protocol
Your Product(config-if)#ip address dhcp
Exit from configuration mode.
Your Product(config)#end
- View the configured IP address by executing the following show command:
Your Product# show ip interface
Note: A DHCP server must exist in the network to allocate dynamic IP through DHCP mechanism.
© 2024 Cisco and/or its affiliates. All rights reserved.
For more information about trademarks, please visit: Cisco trademarks
For more information about legal terms, please visit: Cisco legal terms
For legal information about Accedian Skylight products, please visit: Accedian legal terms and tradmarks