Configuring Logical Interfaces
Logical Interfaces Configurations
Configuration Guide
385
2.2.2 Configuring IPv4 Parameters of the Interface
Follow these steps to configure the IPv4 parameters of the interface.
Step 1
configure
Enter global configuration mode.
Step 2
interface
{
interface-type
} {
interface-number
}
Enter layer 3 interface configuration mode.
interface-type
: Type of the layer 3 interface, including fastEthernet, gigabitEthernet,
ten-gigabitEthernet, loopback and VLAN.
interface-number:
Number of the interface.
Step 3
Automatically assign an IP Address for the interface via DHCP or BOOTP:
ip address-alloc {
dhcp
|
bootp
}
Specify the IP Address assignment mode of the interface.
dhcp:
Specify the Layer 3 interface to obtain an IPv4 address from the DHCP Server.
bootp:
Specify the Layer 3 interface to obtain an IPv4 address from the BOOTP Server.
Manually assign an IP Address for the interface:
ip address {
ip-addr
} {
mask
} [ secondary ]
Configure the IP address and subnet mask for the specified interface manually.
ip-addr
:
Specify thse IP address of the Layer 3 interface.
mask
:
Specify the subnet mask of the Layer 3 interface.
secondary:
Specify the interface’s secondary IP address which allows you to have two
logical subnets using one physical subnet. If this parameter is omitted here, the configured
IP address is the interface’s primary address.
Step 4
show ip interface brief
Verify the summary information of the Layer 3 interfaces.
Step 5
end
Return to privileged EXEC mode.
Step 6
copy running-config startup-config
Save the settings in the configuration file.
The following example shows how to configure the IPv4 parameters of a routed port,
including setting a static IP address for the port and enabling the Layer 3 capabilities:
Switch#configure
Switch(config)#interface gigabitEthernet
1/0/1
Switch(config-if)#no switchport
Switch(config-if)#ip address
192.168.0.100 255.255.255.0
Switch(config-if)#show ip interface brief
Содержание TL-SG2424
Страница 26: ...Part 1 Accessing the Switch CHAPTERS 1 Overview 2 Web Interface Access 3 Command Line Interface Access...
Страница 130: ...Part 4 Configuring LAG CHAPTERS 1 LAG 2 LAG Configuration 3 Configuration Example 4 Appendix Default Parameters...
Страница 147: ...Part 5 Monitoring Traffic CHAPTERS 1 Traffic Monitor 2 Appendix Default Parameters...
Страница 449: ...Part 15 Configuring ARP CHAPTERS 1 Overview 2 ARP Configurations...
Страница 508: ...Configuring Voice VLAN Configuration Guide 485...
Страница 768: ...Configuring SNMP RMON Appendix Default Parameters Configuration Guide 745 Parameter Default Setting Status Disable...